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.001329/0.001329, allocations: 124.4 kB / 17.79 MB, free: 5.266 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.001415/0.001415, allocations: 199.3 kB / 20.74 MB, free: 2.32 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.453/1.453, allocations: 230.6 MB / 254.1 MB, free: 15.09 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="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Spice3.Examples.FourInverters,fileNamePrefix="Modelica_4_1_0_Modelica_Electrical_Spice3_Examples_FourInverters",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001613/0.001613, allocations: 47.94 kB / 373 MB, free: 10.23 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1055/0.1071, allocations: 53.34 MB / 426.3 MB, free: 4.797 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.FourInverters): time 0.217/0.3241, allocations: 26.8 MB / 453.1 MB, free: 10.17 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.03637/0.3605, allocations: 22.43 MB / 475.5 MB, free: 9.512 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.007637/0.3681, allocations: 268.5 kB / 475.8 MB, free: 9.328 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.006495/0.3746, allocations: 1.789 MB / 477.6 MB, free: 8.117 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01445/0.389, allocations: 3.245 MB / 480.8 MB, free: 5.438 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.007382/0.3964, allocations: 1.631 MB / 482.5 MB, free: 4.168 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.02466/0.4211, allocations: 12.87 MB / 495.3 MB, free: 11.73 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001708/0.4228, allocations: 0.5116 MB / 495.9 MB, free: 11.18 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004605/0.4274, allocations: 2.178 MB / 498 MB, free: 8.996 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004148/0.4316, allocations: 2.103 MB / 0.4884 GB, free: 6.879 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0007892/0.4323, allocations: 139.9 kB / 0.4886 GB, free: 6.742 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00613/0.4385, allocations: 1.533 MB / 0.49 GB, free: 5.211 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001042/0.4395, allocations: 0.6049 MB / 0.4906 GB, free: 4.602 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.004605/0.4441, allocations: 2.624 MB / 0.4932 GB, free: 1.961 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01345/0.4576, allocations: 6.671 MB / 0.4997 GB, free: 11.26 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.68e-06/0.4576, allocations: 0 / 0.4997 GB, free: 11.26 MB / 414.1 MB Notification: Performance of FrontEnd: time 2.114e-06/0.4576, allocations: 0 / 0.4997 GB, free: 11.26 MB / 414.1 MB Notification: Performance of Transformations before backend: time 0.0002344/0.4578, allocations: 0 / 0.4997 GB, free: 11.26 MB / 414.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.01188/0.4697, allocations: 6.93 MB / 0.5065 GB, free: 4.227 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.387e-05/0.4697, allocations: 12.03 kB / 0.5065 GB, free: 4.215 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002573/0.47, allocations: 157.2 kB / 0.5066 GB, free: 4.051 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001201/0.4712, allocations: 0.7764 MB / 0.5074 GB, free: 3.27 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007992/0.4792, allocations: 4.656 MB / 0.5119 GB, free: 14.53 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.568e-05/0.4793, allocations: 66 kB / 0.512 GB, free: 14.46 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003304/0.4796, allocations: 111.8 kB / 0.5121 GB, free: 14.36 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002573/0.4822, allocations: 1.305 MB / 0.5134 GB, free: 13.04 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.104e-05/0.4822, allocations: 0 / 0.5134 GB, free: 13.04 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001439/0.4823, allocations: 36 kB / 0.5134 GB, free: 13 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.128e-05/0.4824, allocations: 31.98 kB / 0.5135 GB, free: 12.97 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002822/0.4852, allocations: 1.48 MB / 0.5149 GB, free: 11.48 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01173/0.4969, allocations: 5.627 MB / 0.5204 GB, free: 5.766 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001969/0.4989, allocations: 0.8655 MB / 0.5212 GB, free: 4.891 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001738/0.5006, allocations: 1.063 MB / 0.5223 GB, free: 3.836 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.06637/0.567, allocations: 61.07 MB / 0.5819 GB, free: 14.29 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001185/0.5682, allocations: 0.556 MB / 0.5825 GB, free: 13.72 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=85): time 3.556e-06/0.5682, allocations: 0 / 0.5825 GB, free: 13.72 MB / 0.4981 GB Notification: Performance of matching and sorting (n=85): time 0.004221/0.5724, allocations: 1.918 MB / 0.5843 GB, free: 11.79 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.447e-05/0.5725, allocations: 59.97 kB / 0.5844 GB, free: 11.72 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008755/0.5812, allocations: 5.59 MB / 0.5899 GB, free: 6.16 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 0.0002071/0.5814, allocations: 41.7 kB / 0.5899 GB, free: 6.113 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 0.002906/0.5844, allocations: 2.961 MB / 0.5928 GB, free: 3.141 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 0.0004684/0.5848, allocations: 321.3 kB / 0.5931 GB, free: 2.824 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006388/0.5855, allocations: 427 kB / 0.5935 GB, free: 2.402 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.0001288/0.5856, allocations: 305.1 kB / 0.5938 GB, free: 2.102 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009911/0.5866, allocations: 399.8 kB / 0.5942 GB, free: 1.711 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001502/0.5881, allocations: 1.091 MB / 0.5952 GB, free: 288 kB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002664/0.5907, allocations: 1.611 MB / 0.5968 GB, free: 14.34 MB / 0.5137 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.529e-05/0.5908, allocations: 8 kB / 0.5968 GB, free: 14.34 MB / 0.5137 GB Notification: Performance of matching and sorting (n=200) (initialization): time 0.004283/0.595, allocations: 2.233 MB / 0.599 GB, free: 12.09 MB / 0.5137 GB Notification: Performance of prepare postOptimizeDAE: time 3.294e-05/0.5951, allocations: 16 kB / 0.599 GB, free: 12.08 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.00023/0.5953, allocations: 167.9 kB / 0.5992 GB, free: 11.91 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (initialization): time 4.512e-05/0.5954, allocations: 32.81 kB / 0.5992 GB, free: 11.88 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00129/0.5966, allocations: 363.4 kB / 0.5995 GB, free: 11.53 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.535e-05/0.5967, allocations: 43.86 kB / 0.5996 GB, free: 11.48 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001982/0.5987, allocations: 186.7 kB / 0.5998 GB, free: 11.3 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002361/0.5989, allocations: 128 kB / 0.5999 GB, free: 11.18 MB / 0.5137 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.001521/0.6004, allocations: 0.7082 MB / 0.6006 GB, free: 10.46 MB / 0.5137 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001121/0.6015, allocations: 0.7492 MB / 0.6013 GB, free: 9.703 MB / 0.5137 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005236/0.6068, allocations: 2.168 MB / 0.6034 GB, free: 7.523 MB / 0.5137 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.846e-05/0.6068, allocations: 11.98 kB / 0.6034 GB, free: 7.512 MB / 0.5137 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.612e-06/0.6068, allocations: 0 / 0.6034 GB, free: 7.512 MB / 0.5137 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.386e-06/0.6068, allocations: 0 / 0.6034 GB, free: 7.512 MB / 0.5137 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006607/0.6134, allocations: 3.615 MB / 0.607 GB, free: 3.828 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001858/0.6136, allocations: 140.7 kB / 0.6071 GB, free: 3.691 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008351/0.6144, allocations: 155.8 kB / 0.6073 GB, free: 3.539 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (simulation): time 8.936e-06/0.6145, allocations: 4 kB / 0.6073 GB, free: 3.535 MB / 0.5137 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001002/0.6146, allocations: 56 kB / 0.6073 GB, free: 3.48 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.172e-06/0.6146, allocations: 4 kB / 0.6073 GB, free: 3.477 MB / 0.5137 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.855e-06/0.6146, allocations: 0.875 kB / 0.6073 GB, free: 3.477 MB / 0.5137 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003828/0.6184, allocations: 2.189 MB / 0.6095 GB, free: 1.262 MB / 0.5137 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001552/0.6199, allocations: 0.8592 MB / 0.6103 GB, free: 388 kB / 0.5137 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005588/0.6205, allocations: 16 kB / 0.6103 GB, free: 372 kB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001141/0.6216, allocations: 35.95 kB / 0.6103 GB, free: 336 kB / 0.5137 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002528/0.6219, allocations: 96.48 kB / 0.6104 GB, free: 240 kB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001592/0.6221, allocations: 68 kB / 0.6105 GB, free: 172 kB / 0.5137 GB Notification: Performance of sorting global known variables: time 0.006023/0.6281, allocations: 3.608 MB / 0.614 GB, free: 12.59 MB / 0.5294 GB Notification: Performance of sort global known variables: time 1.4e-07/0.6281, allocations: 3.938 kB / 0.614 GB, free: 12.58 MB / 0.5294 GB Notification: Performance of remove unused functions: time 0.003076/0.6312, allocations: 1.089 MB / 0.6151 GB, free: 11.49 MB / 0.5294 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.006956/0.6381, allocations: 3.848 MB / 0.6188 GB, free: 7.609 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.002996/0.6411, allocations: 1.366 MB / 0.6202 GB, free: 6.207 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 4.329e-06/0.6411, allocations: 0 / 0.6202 GB, free: 6.207 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.001278/0.6424, allocations: 0.7315 MB / 0.6209 GB, free: 5.426 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005913/0.6483, allocations: 1.176 MB / 0.622 GB, free: 4.25 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2497/0.898, allocations: 30.56 MB / 0.6519 GB, free: 176.5 MB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002281/0.9003, allocations: 2.59 MB / 0.6544 GB, free: 175.7 MB / 0.5294 GB Notification: Performance of simCode: alias equations: time 0.002041/0.9024, allocations: 0.6853 MB / 0.6551 GB, free: 175.6 MB / 0.5294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001923/0.9043, allocations: 2.389 MB / 0.6574 GB, free: 173.7 MB / 0.5294 GB Notification: Performance of SimCode: time 1.533e-06/0.9043, allocations: 1.375 kB / 0.6574 GB, free: 173.7 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1529/1.057, allocations: 111.4 MB / 0.7663 GB, free: 66.33 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate platform static: time 25.57/26.63, allocations: 3.938 kB / 0.7663 GB, free: 66.32 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 659] Reference file matches [Calling sys.exit(0), Time elapsed: 30.484009694075212]