Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.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.00131/0.00131, allocations: 122.2 kB / 18.5 MB, free: 4.562 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.001352/0.001352, allocations: 215.1 kB / 21.45 MB, free: 1.617 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.42/1.42, allocations: 230.6 MB / 254.8 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.InvertersApartRecord,fileNamePrefix="Modelica_4_1_0_Modelica_Electrical_Spice3_Examples_InvertersApartRecord",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Spice3.Examples.InvertersApartRecord,fileNamePrefix="Modelica_4_1_0_Modelica_Electrical_Spice3_Examples_InvertersApartRecord",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001449/0.001449, allocations: 43.94 kB / 373.7 MB, free: 10.21 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1082/0.1097, allocations: 53.33 MB / 427 MB, free: 4.789 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.InvertersApartRecord): time 0.2029/0.3125, allocations: 14.76 MB / 441.8 MB, free: 2.434 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.02557/0.3381, allocations: 20.77 MB / 462.5 MB, free: 3.75 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004316/0.3424, allocations: 136.1 kB / 462.7 MB, free: 3.656 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004179/0.3466, allocations: 1.245 MB / 463.9 MB, free: 3 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01041/0.357, allocations: 2.328 MB / 466.2 MB, free: 1.574 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.006054/0.3631, allocations: 1.438 MB / 467.7 MB, free: 0.8242 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.01188/0.375, allocations: 6.582 MB / 474.3 MB, free: 13.8 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0008026/0.3758, allocations: 269.5 kB / 474.5 MB, free: 13.62 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002511/0.3783, allocations: 1.151 MB / 475.7 MB, free: 13.07 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002424/0.3807, allocations: 1.107 MB / 476.8 MB, free: 12.43 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002497/0.3809, allocations: 75.06 kB / 476.9 MB, free: 12.43 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004933/0.3859, allocations: 1.474 MB / 478.3 MB, free: 11.81 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004014/0.3863, allocations: 333.8 kB / 478.7 MB, free: 11.54 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001888/0.3882, allocations: 1.372 MB / 480 MB, free: 10.64 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006822/0.395, allocations: 3.799 MB / 483.8 MB, free: 7.914 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.17e-06/0.395, allocations: 0 / 483.8 MB, free: 7.914 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.864e-06/0.395, allocations: 0 / 483.8 MB, free: 7.914 MB / 382.1 MB Notification: Performance of Transformations before backend: time 4.638e-05/0.395, allocations: 0 / 483.8 MB, free: 7.914 MB / 382.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 154 * Number of variables: 154 Notification: Performance of Generate backend data structure: time 0.005827/0.4009, allocations: 3.809 MB / 487.6 MB, free: 4.02 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.923e-05/0.4009, allocations: 12.02 kB / 487.6 MB, free: 4.008 MB / 382.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 2.788e-05/0.4009, allocations: 13 kB / 487.7 MB, free: 3.996 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000124/0.4011, allocations: 98.52 kB / 487.8 MB, free: 3.891 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004725/0.4015, allocations: 421.4 kB / 488.2 MB, free: 3.477 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003337/0.4049, allocations: 2.453 MB / 490.6 MB, free: 0.957 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.586e-05/0.4049, allocations: 37 kB / 490.7 MB, free: 0.9219 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001275/0.405, allocations: 55.98 kB / 490.7 MB, free: 0.8672 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001365/0.4064, allocations: 0.7265 MB / 491.4 MB, free: 136 kB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.462e-05/0.4064, allocations: 4 kB / 491.4 MB, free: 132 kB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.99e-05/0.4065, allocations: 20 kB / 491.5 MB, free: 112 kB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.509e-05/0.4065, allocations: 19.98 kB / 491.5 MB, free: 92 kB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00162/0.4081, allocations: 0.8163 MB / 492.3 MB, free: 15.27 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004952/0.4131, allocations: 3.063 MB / 495.4 MB, free: 12.12 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001194/0.4143, allocations: 0.5096 MB / 495.9 MB, free: 11.61 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009897/0.4153, allocations: 0.5624 MB / 496.4 MB, free: 11.04 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.03176/0.447, allocations: 30.76 MB / 0.5148 GB, free: 8.035 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008653/0.4479, allocations: 363.4 kB / 0.5152 GB, free: 7.672 MB / 430.1 MB Notification: Performance of pre-optimization done (n=49): time 2.956e-06/0.4479, allocations: 0 / 0.5152 GB, free: 7.672 MB / 430.1 MB Notification: Performance of matching and sorting (n=49): time 0.002694/0.4506, allocations: 1.107 MB / 0.5163 GB, free: 6.559 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.049e-05/0.4507, allocations: 63.39 kB / 0.5163 GB, free: 6.484 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003853/0.4545, allocations: 2.935 MB / 0.5192 GB, free: 3.539 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 6.785e-05/0.4546, allocations: 29.7 kB / 0.5192 GB, free: 3.504 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001386/0.456, allocations: 1.502 MB / 0.5207 GB, free: 1.992 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001699/0.4561, allocations: 174.6 kB / 0.5208 GB, free: 1.82 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003195/0.4565, allocations: 230.4 kB / 0.5211 GB, free: 1.59 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0001575/0.4566, allocations: 337.9 kB / 0.5214 GB, free: 1.254 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006024/0.4572, allocations: 245.8 kB / 0.5216 GB, free: 1.012 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008754/0.4581, allocations: 0.6021 MB / 0.5222 GB, free: 240 kB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001537/0.4596, allocations: 0.8935 MB / 0.5231 GB, free: 15.16 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.295e-06/0.4596, allocations: 4 kB / 0.5231 GB, free: 15.16 MB / 446.1 MB Notification: Performance of matching and sorting (n=110) (initialization): time 0.002301/0.4619, allocations: 1.247 MB / 0.5243 GB, free: 13.91 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.464e-05/0.462, allocations: 12 kB / 0.5243 GB, free: 13.9 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001197/0.4621, allocations: 80 kB / 0.5244 GB, free: 13.82 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.863e-05/0.4621, allocations: 16 kB / 0.5244 GB, free: 13.8 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007147/0.4628, allocations: 208.3 kB / 0.5246 GB, free: 13.6 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.573e-05/0.4629, allocations: 29.42 kB / 0.5246 GB, free: 13.57 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001032/0.4639, allocations: 111.3 kB / 0.5247 GB, free: 13.46 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000111/0.464, allocations: 64 kB / 0.5248 GB, free: 13.4 MB / 446.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 56 * 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 (102): * Single equations (assignments): 98 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 4 * 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.0006899/0.4647, allocations: 445.4 kB / 0.5252 GB, free: 12.96 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003866/0.4651, allocations: 401.5 kB / 0.5256 GB, free: 12.56 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002678/0.4678, allocations: 1.187 MB / 0.5268 GB, free: 11.37 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.845e-06/0.4678, allocations: 4 kB / 0.5268 GB, free: 11.37 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.101e-06/0.4678, allocations: 1.5 kB / 0.5268 GB, free: 11.37 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.759e-06/0.4678, allocations: 0 / 0.5268 GB, free: 11.37 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003421/0.4712, allocations: 2.1 MB / 0.5288 GB, free: 9.199 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.27e-05/0.4713, allocations: 71.98 kB / 0.5289 GB, free: 9.129 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004961/0.4718, allocations: 91.86 kB / 0.529 GB, free: 9.039 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.253e-06/0.4718, allocations: 4 kB / 0.529 GB, free: 9.035 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.716e-05/0.4718, allocations: 31.98 kB / 0.529 GB, free: 9.004 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.277e-06/0.4718, allocations: 0 / 0.529 GB, free: 9.004 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.14e-06/0.4719, allocations: 11.88 kB / 0.529 GB, free: 8.992 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002344/0.4742, allocations: 1.311 MB / 0.5303 GB, free: 7.652 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008544/0.4751, allocations: 494.4 kB / 0.5308 GB, free: 7.148 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002712/0.4753, allocations: 12.88 kB / 0.5308 GB, free: 7.137 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006366/0.476, allocations: 31.95 kB / 0.5308 GB, free: 7.105 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001684/0.4761, allocations: 67.94 kB / 0.5309 GB, free: 7.039 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.89e-05/0.4762, allocations: 36 kB / 0.5309 GB, free: 7.004 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.002534/0.4787, allocations: 1.907 MB / 0.5328 GB, free: 5.098 MB / 446.1 MB Notification: Performance of sort global known variables: time 7e-08/0.4787, allocations: 0 / 0.5328 GB, free: 5.098 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.001328/0.4801, allocations: 0.5891 MB / 0.5334 GB, free: 4.508 MB / 446.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 2 (c1.vinternal,c2.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 (42): * Single equations (assignments): 32 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 4 * 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.00371/0.4838, allocations: 2.554 MB / 0.5359 GB, free: 1.926 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.001607/0.4854, allocations: 0.7712 MB / 0.5366 GB, free: 1.129 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 1.993e-06/0.4854, allocations: 0 / 0.5366 GB, free: 1.129 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007727/0.4862, allocations: 427.1 kB / 0.537 GB, free: 0.6875 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002373/0.4885, allocations: 0.6062 MB / 0.5376 GB, free: 84 kB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02459/0.5131, allocations: 16.46 MB / 0.5537 GB, free: 15.09 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001301/0.5144, allocations: 1.661 MB / 0.5553 GB, free: 13.4 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.001002/0.5154, allocations: 365.1 kB / 0.5557 GB, free: 13.04 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001273/0.5167, allocations: 1.214 MB / 0.5568 GB, free: 11.82 MB / 478.1 MB Notification: Performance of SimCode: time 1.403e-06/0.5167, allocations: 0 / 0.5568 GB, free: 11.82 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3058/0.8225, allocations: 61.1 MB / 0.6165 GB, free: 162.5 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate platform static: time 15.08/15.9, allocations: 5.812 kB / 0.6165 GB, free: 162.5 MB / 0.5137 GB " [Timeout remaining time 644] (rm -f Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.pipe ; mkfifo Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.pipe >> ../files/Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.InvertersApartRecord_res.mat --tempDir=temp_Modelica_4_1_0_Modelica_Electrical_Spice3_Examples_InvertersApartRecord_fmu --startTime=0 --stopTime=5 --stepSize=0.0009996 --timeout=50 --tolerance=1e-06 Modelica_4_1_0_Modelica_Electrical_Spice3_Examples_InvertersApartRecord.fmu > Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.InvertersApartRecord_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Spice3/Examples/InvertersApartRecord/InvertersApartRecord.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.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: 19.747456354030874]