Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.FourInverters.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.001298/0.001298, allocations: 120.1 kB / 18.49 MB, free: 4.586 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.00136/0.00136, allocations: 215 kB / 21.45 MB, free: 1.641 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.398/1.398, allocations: 230.6 MB / 254.8 MB, free: 15.25 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.Electrical.Spice3.Examples.FourInverters,fileNamePrefix="Modelica_4_1_0_Modelica_Electrical_Spice3_Examples_FourInverters",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Spice3.Examples.FourInverters,fileNamePrefix="Modelica_4_1_0_Modelica_Electrical_Spice3_Examples_FourInverters",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001737/0.001737, allocations: 55.91 kB / 373.7 MB, free: 10.24 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1146/0.1163, allocations: 53.33 MB / 427 MB, free: 4.82 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.FourInverters): time 0.2634/0.3797, allocations: 26.81 MB / 453.8 MB, free: 7.559 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.02571/0.4054, allocations: 22.43 MB / 476.3 MB, free: 13.14 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00569/0.4111, allocations: 272.2 kB / 476.5 MB, free: 12.95 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.005272/0.4164, allocations: 1.784 MB / 478.3 MB, free: 12 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01284/0.4292, allocations: 3.248 MB / 481.5 MB, free: 9.922 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00642/0.4356, allocations: 1.632 MB / 483.2 MB, free: 9.059 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.02087/0.4565, allocations: 12.87 MB / 496.1 MB, free: 3.242 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001392/0.4579, allocations: 0.5046 MB / 496.6 MB, free: 2.922 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003923/0.4618, allocations: 2.191 MB / 498.7 MB, free: 1.902 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004036/0.4658, allocations: 2.104 MB / 0.4891 GB, free: 0.6797 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004696/0.4663, allocations: 132.8 kB / 0.4892 GB, free: 0.6797 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00583/0.4721, allocations: 1.541 MB / 0.4907 GB, free: 15.27 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000904/0.473, allocations: 0.601 MB / 0.4913 GB, free: 14.66 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.004507/0.4775, allocations: 2.62 MB / 0.4939 GB, free: 12.02 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01127/0.4888, allocations: 6.663 MB / 0.5004 GB, free: 5.328 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.967e-06/0.4888, allocations: 4 kB / 0.5004 GB, free: 5.324 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.754e-06/0.4888, allocations: 0 / 0.5004 GB, free: 5.324 MB / 398.1 MB Notification: Performance of Transformations before backend: time 0.0002727/0.4891, allocations: 0 / 0.5004 GB, free: 5.324 MB / 398.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 288 * Number of variables: 288 Notification: Performance of Generate backend data structure: time 0.01149/0.5006, allocations: 6.93 MB / 0.5072 GB, free: 14.29 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.352e-05/0.5006, allocations: 8.031 kB / 0.5072 GB, free: 14.29 MB / 414.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 3.475e-05/0.5007, allocations: 26 kB / 0.5072 GB, free: 14.26 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002008/0.5009, allocations: 161.2 kB / 0.5074 GB, free: 14.09 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008556/0.5017, allocations: 0.7841 MB / 0.5081 GB, free: 13.3 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006537/0.5083, allocations: 4.656 MB / 0.5127 GB, free: 8.562 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.52e-05/0.5083, allocations: 73.92 kB / 0.5127 GB, free: 8.492 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002312/0.5085, allocations: 103.8 kB / 0.5128 GB, free: 8.391 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002205/0.5107, allocations: 1.297 MB / 0.5141 GB, free: 7.074 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.947e-05/0.5108, allocations: 0 / 0.5141 GB, free: 7.074 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001222/0.5109, allocations: 40 kB / 0.5141 GB, free: 7.035 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.729e-05/0.5109, allocations: 39.97 kB / 0.5142 GB, free: 6.996 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002533/0.5135, allocations: 1.48 MB / 0.5156 GB, free: 5.512 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009886/0.5233, allocations: 5.623 MB / 0.5211 GB, free: 15.8 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001736/0.5251, allocations: 0.8695 MB / 0.522 GB, free: 14.92 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001589/0.5267, allocations: 1.056 MB / 0.523 GB, free: 13.87 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.061/0.5877, allocations: 61.06 MB / 0.5826 GB, free: 8.332 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001066/0.5887, allocations: 0.5618 MB / 0.5832 GB, free: 7.758 MB / 494.1 MB Notification: Performance of pre-optimization done (n=85): time 3.126e-06/0.5887, allocations: 0 / 0.5832 GB, free: 7.758 MB / 494.1 MB Notification: Performance of matching and sorting (n=85): time 0.003821/0.5926, allocations: 1.91 MB / 0.585 GB, free: 5.84 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.974e-05/0.5926, allocations: 71.95 kB / 0.5851 GB, free: 5.758 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007675/0.6003, allocations: 5.582 MB / 0.5906 GB, free: 208 kB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001906/0.6005, allocations: 37.7 kB / 0.5906 GB, free: 164 kB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002741/0.6032, allocations: 2.965 MB / 0.5935 GB, free: 13.18 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 0.0003975/0.6036, allocations: 321.3 kB / 0.5938 GB, free: 12.87 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006/0.6042, allocations: 427 kB / 0.5942 GB, free: 12.45 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.0001182/0.6043, allocations: 301.1 kB / 0.5945 GB, free: 12.15 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008745/0.6052, allocations: 403.8 kB / 0.5949 GB, free: 11.75 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001371/0.6066, allocations: 1.095 MB / 0.5959 GB, free: 10.32 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002415/0.609, allocations: 1.611 MB / 0.5975 GB, free: 8.383 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.356e-05/0.609, allocations: 8 kB / 0.5975 GB, free: 8.375 MB / 0.4981 GB Notification: Performance of matching and sorting (n=200) (initialization): time 0.004359/0.6134, allocations: 2.238 MB / 0.5997 GB, free: 6.129 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 3.578e-05/0.6134, allocations: 24 kB / 0.5997 GB, free: 6.105 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002311/0.6136, allocations: 164 kB / 0.5999 GB, free: 5.945 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 4.633e-05/0.6137, allocations: 32 kB / 0.5999 GB, free: 5.914 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001183/0.6149, allocations: 355.4 kB / 0.6003 GB, free: 5.566 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.487e-05/0.6149, allocations: 51.8 kB / 0.6003 GB, free: 5.516 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002257/0.6172, allocations: 194.7 kB / 0.6005 GB, free: 5.324 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002113/0.6174, allocations: 120 kB / 0.6006 GB, free: 5.207 MB / 0.4981 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 108 * Number of states: 0 () * Number of discrete variables: 14 (vin.counter,$PRE.vin.counter,v.counter,$PRE.v.counter,v.counter2,$PRE.v.counter2,v.T0,$PRE.v.T0,vin.counter2,$PRE.vin.counter2,vin.T0,$PRE.vin.T0,$whenCondition1,$whenCondition2) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (184): * Single equations (assignments): 176 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 8 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.001541/0.6189, allocations: 0.7082 MB / 0.6013 GB, free: 4.488 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001051/0.62, allocations: 0.753 MB / 0.602 GB, free: 3.73 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004645/0.6246, allocations: 2.149 MB / 0.6041 GB, free: 1.566 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.408e-06/0.6246, allocations: 8 kB / 0.6041 GB, free: 1.559 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.835e-06/0.6246, allocations: 4 kB / 0.6042 GB, free: 1.555 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.236e-06/0.6247, allocations: 3.984 kB / 0.6042 GB, free: 1.551 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005831/0.6305, allocations: 3.616 MB / 0.6077 GB, free: 13.87 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001811/0.6307, allocations: 140 kB / 0.6078 GB, free: 13.73 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007912/0.6315, allocations: 151.8 kB / 0.608 GB, free: 13.58 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.921e-06/0.6315, allocations: 4 kB / 0.608 GB, free: 13.58 MB / 0.5137 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001014/0.6316, allocations: 60 kB / 0.608 GB, free: 13.52 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.202e-06/0.6316, allocations: 4 kB / 0.608 GB, free: 13.52 MB / 0.5137 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.161e-06/0.6316, allocations: 7.969 kB / 0.608 GB, free: 13.51 MB / 0.5137 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003599/0.6352, allocations: 2.192 MB / 0.6102 GB, free: 11.29 MB / 0.5137 GB Notification: Performance of postOpt removeConstants (simulation): time 0.00142/0.6366, allocations: 0.8553 MB / 0.611 GB, free: 10.41 MB / 0.5137 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005456/0.6371, allocations: 12 kB / 0.611 GB, free: 10.4 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00108/0.6382, allocations: 36.83 kB / 0.6111 GB, free: 10.36 MB / 0.5137 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002414/0.6385, allocations: 104.6 kB / 0.6112 GB, free: 10.26 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001296/0.6386, allocations: 68 kB / 0.6112 GB, free: 10.2 MB / 0.5137 GB Notification: Performance of sorting global known variables: time 0.005435/0.644, allocations: 3.604 MB / 0.6147 GB, free: 6.621 MB / 0.5137 GB Notification: Performance of sort global known variables: time 6e-08/0.644, allocations: 0 / 0.6147 GB, free: 6.621 MB / 0.5137 GB Notification: Performance of remove unused functions: time 0.002598/0.6466, allocations: 1.085 MB / 0.6158 GB, free: 5.535 MB / 0.5137 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 4 (c1.vinternal,c2.vinternal,c3.vinternal,c4.vinternal) * Number of discrete variables: 8 ($whenCondition2,$whenCondition1,vin.T0,vin.counter,vin.counter2,v.T0,v.counter,v.counter2) * Number of discrete states: 4 (vin.counter2,v.counter2,vin.counter,v.counter) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (70): * Single equations (assignments): 56 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 8 * When equations: 6 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.005869/0.6525, allocations: 3.855 MB / 0.6196 GB, free: 1.641 MB / 0.5137 GB Notification: Performance of simCode: created initialization part: time 0.00258/0.6551, allocations: 1.357 MB / 0.6209 GB, free: 252 kB / 0.5137 GB Notification: Performance of simCode: created event and clocks part: time 2.925e-06/0.6551, allocations: 0 / 0.6209 GB, free: 252 kB / 0.5137 GB Notification: Performance of simCode: created simulation system equations: time 0.001197/0.6563, allocations: 0.74 MB / 0.6216 GB, free: 15.46 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00617/0.6624, allocations: 1.176 MB / 0.6228 GB, free: 14.28 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.3102/0.9726, allocations: 30.56 MB / 0.6526 GB, free: 175 MB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003406/0.976, allocations: 2.589 MB / 0.6551 GB, free: 174.2 MB / 0.5294 GB Notification: Performance of simCode: alias equations: time 0.002736/0.9788, allocations: 0.6823 MB / 0.6558 GB, free: 174.2 MB / 0.5294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002976/0.9817, allocations: 2.392 MB / 0.6581 GB, free: 172.2 MB / 0.5294 GB Notification: Performance of SimCode: time 2.024e-06/0.9817, allocations: 0 / 0.6581 GB, free: 172.2 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1792/1.161, allocations: 111.5 MB / 0.767 GB, free: 74.27 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate platform static: time 25.22/26.38, allocations: 11.59 kB / 0.767 GB, free: 74.27 MB / 0.5294 GB " [Timeout remaining time 633] (rm -f Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.FourInverters.pipe ; mkfifo Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.FourInverters.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.FourInverters.pipe >> ../files/Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.FourInverters.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.FourInverters_res.mat --tempDir=temp_Modelica_4_1_0_Modelica_Electrical_Spice3_Examples_FourInverters_fmu --startTime=0 --stopTime=5 --stepSize=0.0009996 --timeout=50 --tolerance=1e-06 Modelica_4_1_0_Modelica_Electrical_Spice3_Examples_FourInverters.fmu > Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.FourInverters.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.FourInverters_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Spice3/Examples/FourInverters/FourInverters.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.FourInverters.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 658] Reference file matches [Calling sys.exit(0), Time elapsed: 31.80017698003212]