Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_OpenCircuit.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001386/0.001386, allocations: 123.4 kB / 17.79 MB, free: 5.281 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001535/0.001535, allocations: 204.3 kB / 20.74 MB, free: 2.34 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.507/1.507, allocations: 230.6 MB / 254.1 MB, free: 15.07 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_OpenCircuit,fileNamePrefix="Modelica_4_1_0_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMPM_OpenCircuit",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_OpenCircuit,fileNamePrefix="Modelica_4_1_0_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMPM_OpenCircuit",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001546/0.001546, allocations: 55.92 kB / 373 MB, free: 10.19 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1046/0.1061, allocations: 53.32 MB / 426.3 MB, free: 4.766 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_OpenCircuit): time 0.2375/0.3436, allocations: 31.1 MB / 457.4 MB, free: 7.547 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.02198/0.3656, allocations: 8.923 MB / 466.4 MB, free: 1.105 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.007729/0.3733, allocations: 222.2 kB / 466.6 MB, free: 1.039 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0137/0.387, allocations: 4.999 MB / 471.6 MB, free: 13.99 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01142/0.3984, allocations: 3.066 MB / 474.6 MB, free: 11.54 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00599/0.4044, allocations: 1.632 MB / 476.3 MB, free: 10.23 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.01637/0.4208, allocations: 8.809 MB / 485.1 MB, free: 4.84 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01966/0.4405, allocations: 9.952 MB / 495 MB, free: 12.17 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.008563/0.449, allocations: 4.324 MB / 499.4 MB, free: 7.832 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.009016/0.458, allocations: 4.889 MB / 0.4924 GB, free: 2.926 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.003356/0.4614, allocations: 1.164 MB / 0.4936 GB, free: 1.762 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005532/0.4669, allocations: 1.543 MB / 0.4951 GB, free: 224 kB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.004034/0.471, allocations: 2.427 MB / 0.4974 GB, free: 13.79 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.009816/0.4808, allocations: 4.669 MB / 0.502 GB, free: 9.098 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0241/0.5049, allocations: 15.88 MB / 0.5175 GB, free: 9.168 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.434e-06/0.5049, allocations: 4 kB / 0.5175 GB, free: 9.164 MB / 430.1 MB Notification: Performance of FrontEnd: time 2.655e-06/0.5049, allocations: 3.938 kB / 0.5175 GB, free: 9.16 MB / 430.1 MB Notification: Performance of Transformations before backend: time 0.0004817/0.5054, allocations: 0 / 0.5175 GB, free: 9.16 MB / 430.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1994 * Number of variables: 1994 Notification: Performance of Generate backend data structure: time 0.03249/0.5379, allocations: 9.971 MB / 0.5273 GB, free: 15.08 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.154e-05/0.5379, allocations: 8.031 kB / 0.5273 GB, free: 15.07 MB / 446.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.004005/0.5419, allocations: 1.152 MB / 0.5284 GB, free: 13.91 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03076/0.5727, allocations: 5.224 MB / 0.5335 GB, free: 8.676 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01295/0.5856, allocations: 5.146 MB / 0.5385 GB, free: 3.449 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0007048/0.5863, allocations: 0.5338 MB / 0.539 GB, free: 2.914 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003132/0.5895, allocations: 0.7069 MB / 0.5397 GB, free: 2.207 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0313/0.6208, allocations: 11.36 MB / 0.5508 GB, free: 6.77 MB / 462.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004007/0.6212, allocations: 19.91 kB / 0.5508 GB, free: 6.75 MB / 462.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002655/0.6238, allocations: 299.9 kB / 0.5511 GB, free: 6.457 MB / 462.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000644/0.6245, allocations: 451 kB / 0.5516 GB, free: 6.016 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02831/0.6528, allocations: 10.87 MB / 0.5622 GB, free: 11.14 MB / 478.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.08171/0.7345, allocations: 38.59 MB / 0.5999 GB, free: 3.246 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.2478/0.9822, allocations: 27.98 MB / 0.6272 GB, free: 141.8 MB / 0.5137 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.004621/0.9869, allocations: 2.447 MB / 0.6296 GB, free: 141.7 MB / 0.5137 GB Notification: Performance of preOpt evalFunc (simulation): time 0.01551/1.002, allocations: 8.465 MB / 0.6378 GB, free: 138.3 MB / 0.5137 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.862e-05/1.002, allocations: 54.94 kB / 0.6379 GB, free: 138.3 MB / 0.5137 GB Notification: Performance of pre-optimization done (n=217): time 5.4e-06/1.002, allocations: 0 / 0.6379 GB, free: 138.3 MB / 0.5137 GB Notification: Performance of matching and sorting (n=233): time 0.02563/1.028, allocations: 10.47 MB / 0.6481 GB, free: 134.1 MB / 0.5137 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.001971/1.03, allocations: 2.008 MB / 0.6501 GB, free: 132.3 MB / 0.5137 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006578/1.037, allocations: 3.848 MB / 0.6538 GB, free: 130.8 MB / 0.5137 GB Notification: Performance of collectPreVariables (initialization): time 0.0004715/1.037, allocations: 66.52 kB / 0.6539 GB, free: 130.8 MB / 0.5137 GB Notification: Performance of collectInitialEqns (initialization): time 0.002136/1.039, allocations: 3.687 MB / 0.6575 GB, free: 128.3 MB / 0.5137 GB Notification: Performance of collectInitialBindings (initialization): time 0.0008994/1.04, allocations: 0.8633 MB / 0.6584 GB, free: 127.7 MB / 0.5137 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001335/1.041, allocations: 0.9699 MB / 0.6593 GB, free: 127.2 MB / 0.5137 GB Notification: Performance of setup shared object (initialization): time 4.911e-05/1.041, allocations: 302.6 kB / 0.6596 GB, free: 126.9 MB / 0.5137 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002735/1.044, allocations: 1.891 MB / 0.6614 GB, free: 126.1 MB / 0.5137 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003461/1.048, allocations: 4.398 MB / 0.6657 GB, free: 122.1 MB / 0.5137 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.006727/1.054, allocations: 6.798 MB / 0.6724 GB, free: 116.6 MB / 0.5137 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.476e-05/1.055, allocations: 22.97 kB / 0.6724 GB, free: 116.6 MB / 0.5137 GB Notification: Performance of matching and sorting (n=627) (initialization): time 0.01103/1.066, allocations: 7.003 MB / 0.6792 GB, free: 113.7 MB / 0.5137 GB Notification: Performance of prepare postOptimizeDAE: time 6.467e-05/1.066, allocations: 39 kB / 0.6793 GB, free: 113.7 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001228/1.066, allocations: 88.44 kB / 0.6793 GB, free: 113.7 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.00192/1.068, allocations: 0.7429 MB / 0.6801 GB, free: 113.6 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003405/1.071, allocations: 1.117 MB / 0.6812 GB, free: 113.4 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006445/1.077, allocations: 5.642 MB / 0.6867 GB, free: 110.1 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005249/1.083, allocations: 313 kB / 0.687 GB, free: 110 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008934/1.084, allocations: 275.7 kB / 0.6872 GB, free: 109.7 MB / 0.5137 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 393 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (590): * Single equations (assignments): 587 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 2 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 2 systems {(2,100.0%), (2,100.0%)} * Non-linear Jacobian (size): 0 systems * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(4,32,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.004948/1.089, allocations: 2.522 MB / 0.6897 GB, free: 107.5 MB / 0.5137 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001402/1.09, allocations: 413.2 kB / 0.6901 GB, free: 107.1 MB / 0.5137 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008442/1.098, allocations: 4.256 MB / 0.6942 GB, free: 103 MB / 0.5137 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.244e-05/1.098, allocations: 24 kB / 0.6943 GB, free: 103 MB / 0.5137 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.183e-05/1.098, allocations: 4 kB / 0.6943 GB, free: 103 MB / 0.5137 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.925e-05/1.099, allocations: 18.95 kB / 0.6943 GB, free: 103 MB / 0.5137 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02748/1.126, allocations: 14.31 MB / 0.7083 GB, free: 88.48 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.643e-05/1.126, allocations: 11.98 kB / 0.7083 GB, free: 88.47 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002045/1.128, allocations: 483.2 kB / 0.7087 GB, free: 88 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002164/1.13, allocations: 0.7018 MB / 0.7094 GB, free: 87.29 MB / 0.5137 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004653/1.131, allocations: 71.97 kB / 0.7095 GB, free: 87.22 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008226/1.139, allocations: 7.501 MB / 0.7168 GB, free: 79.45 MB / 0.5137 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.001501/1.14, allocations: 1.956 MB / 0.7187 GB, free: 77.34 MB / 0.5137 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01033/1.151, allocations: 6.754 MB / 0.7253 GB, free: 70.3 MB / 0.5137 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002369/1.153, allocations: 0.8145 MB / 0.7261 GB, free: 69.47 MB / 0.5137 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001244/1.154, allocations: 64.86 kB / 0.7262 GB, free: 69.41 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002724/1.157, allocations: 163.9 kB / 0.7263 GB, free: 69.25 MB / 0.5137 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005445/1.158, allocations: 229.3 kB / 0.7266 GB, free: 69.02 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002436/1.158, allocations: 95.97 kB / 0.7267 GB, free: 68.93 MB / 0.5137 GB Notification: Performance of sorting global known variables: time 0.004677/1.163, allocations: 2.518 MB / 0.7291 GB, free: 66.39 MB / 0.5137 GB Notification: Performance of sort global known variables: time 9e-08/1.163, allocations: 0 / 0.7291 GB, free: 66.39 MB / 0.5137 GB Notification: Performance of remove unused functions: time 0.006187/1.169, allocations: 1.293 MB / 0.7304 GB, free: 65.1 MB / 0.5137 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 49 * Number of states: 1 ($STATESET1.x) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (241): * Single equations (assignments): 238 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 1 system {(2,100.0%)} * Non-linear Jacobian (size): 0 systems * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(4,32,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(3,3)} Notification: Performance of Backend phase and start with SimCode phase: time 0.01036/1.179, allocations: 7.457 MB / 0.7377 GB, free: 57.37 MB / 0.5137 GB Notification: Performance of simCode: created initialization part: time 0.007754/1.187, allocations: 4.969 MB / 0.7425 GB, free: 52.36 MB / 0.5137 GB Notification: Performance of simCode: created event and clocks part: time 1.374e-05/1.187, allocations: 4.188 kB / 0.7425 GB, free: 52.35 MB / 0.5137 GB Notification: Performance of simCode: created simulation system equations: time 0.003789/1.191, allocations: 2.268 MB / 0.7447 GB, free: 50.04 MB / 0.5137 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007079/1.198, allocations: 0.9935 MB / 0.7457 GB, free: 49.09 MB / 0.5137 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0809/1.279, allocations: 46.16 MB / 0.7908 GB, free: 15.25 MB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00795/1.287, allocations: 4.513 MB / 0.7952 GB, free: 10.69 MB / 0.5294 GB Notification: Performance of simCode: alias equations: time 0.004545/1.291, allocations: 1.364 MB / 0.7965 GB, free: 9.324 MB / 0.5294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004685/1.296, allocations: 2.561 MB / 0.799 GB, free: 6.762 MB / 0.5294 GB Notification: Performance of SimCode: time 1.273e-06/1.296, allocations: 0 / 0.799 GB, free: 6.762 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3941/1.69, allocations: 105.1 MB / 0.9017 GB, free: 126.6 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate platform static: time 21.31/23, allocations: 20.06 kB / 0.9017 GB, free: 126.6 MB / 0.545 GB " [Timeout remaining time 637] (rm -f Modelica_4.1.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_OpenCircuit.pipe ; mkfifo Modelica_4.1.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_OpenCircuit.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_OpenCircuit.pipe >> ../files/Modelica_4.1.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_OpenCircuit.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.1.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_OpenCircuit_res.mat --tempDir=temp_Modelica_4_1_0_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMPM_OpenCircuit_fmu --startTime=0 --stopTime=0.1 --stepSize=0.0001 --timeout=50 --tolerance=1e-06 Modelica_4_1_0_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMPM_OpenCircuit.fmu > Modelica_4.1.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_OpenCircuit.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.1.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_OpenCircuit_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Magnetic/QuasiStatic/FundamentalWave/Examples/BasicMachines/SynchronousMachines/SMPM_OpenCircuit/SMPM_OpenCircuit.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_OpenCircuit.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 26.13843817007728]