Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_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.001665/0.001665, allocations: 120.2 kB / 21.94 MB, free: 8 kB / 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.002173/0.002173, allocations: 202.7 kB / 25.23 MB, free: 3.551 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.527/1.527, allocations: 207.6 MB / 236 MB, free: 9.984 MB / 190.1 MB " [Timeout remaining time 178] Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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: translateModel(Modelica.Electrical.Spice3.Examples.InvertersApartRecord,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|mp1.S.v|mp2.S.v|v.p.v",fileNamePrefix="Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.InvertersApartRecord") translateModel(Modelica.Electrical.Spice3.Examples.InvertersApartRecord,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|mp1.S.v|mp2.S.v|v.p.v",fileNamePrefix="Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.InvertersApartRecord") [Timeout 660] "Notification: Modelica requested package Complex of version 3.2.3. Complex 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002043/0.002043, allocations: 51.92 kB / 348.4 MB, free: 9.535 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.275/0.2771, allocations: 49.17 MB / 397.6 MB, free: 9.512 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.InvertersApartRecord): time 0.01261/0.2897, allocations: 14.09 MB / 411.7 MB, free: 15.13 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.03049/0.3202, allocations: 19.8 MB / 431.5 MB, free: 15.48 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003981/0.3241, allocations: 146.5 kB / 431.6 MB, free: 15.38 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004547/0.3287, allocations: 1.218 MB / 432.8 MB, free: 14.47 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01275/0.3414, allocations: 2.33 MB / 435.2 MB, free: 12.62 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.006781/0.3482, allocations: 1.403 MB / 436.6 MB, free: 11.55 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.01357/0.3618, allocations: 6.378 MB / 443 MB, free: 5.891 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0008976/0.3627, allocations: 269.8 kB / 443.2 MB, free: 5.598 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00231/0.365, allocations: 1.061 MB / 444.3 MB, free: 4.531 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002156/0.3671, allocations: 1.079 MB / 445.4 MB, free: 3.445 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002546/0.3674, allocations: 76 kB / 445.4 MB, free: 3.371 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005257/0.3727, allocations: 1.156 MB / 446.6 MB, free: 2.215 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000581/0.3732, allocations: 329.6 kB / 446.9 MB, free: 1.891 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002488/0.3757, allocations: 1.386 MB / 448.3 MB, free: 0.4961 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.009183/0.3849, allocations: 3.819 MB / 452.1 MB, free: 12.66 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.524e-06/0.3849, allocations: 0 / 452.1 MB, free: 12.66 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.723e-06/0.3849, allocations: 0 / 452.1 MB, free: 12.66 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0001028/0.385, allocations: 0 / 452.1 MB, free: 12.66 MB / 366.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.006754/0.3918, allocations: 3.765 MB / 455.9 MB, free: 8.832 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.199e-05/0.3918, allocations: 15.98 kB / 455.9 MB, free: 8.816 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006123/0.3924, allocations: 413.4 kB / 456.3 MB, free: 8.41 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004267/0.3967, allocations: 2.304 MB / 458.6 MB, free: 6.012 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.721e-05/0.3968, allocations: 40.94 kB / 458.6 MB, free: 5.973 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001452/0.3969, allocations: 59.95 kB / 458.7 MB, free: 5.914 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001511/0.3984, allocations: 0.7304 MB / 459.4 MB, free: 5.18 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.669e-05/0.3984, allocations: 0 / 459.4 MB, free: 5.18 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.086e-05/0.3985, allocations: 27.92 kB / 459.5 MB, free: 5.152 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.882e-05/0.3985, allocations: 16 kB / 459.5 MB, free: 5.137 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001651/0.4002, allocations: 0.828 MB / 460.3 MB, free: 4.305 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006401/0.4066, allocations: 3.004 MB / 463.3 MB, free: 1.23 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001335/0.4079, allocations: 0.5319 MB / 463.8 MB, free: 0.6914 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001022/0.4089, allocations: 0.5769 MB / 464.4 MB, free: 104 kB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02844/0.4374, allocations: 13.8 MB / 478.2 MB, free: 1.926 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008203/0.4382, allocations: 361.6 kB / 478.6 MB, free: 1.555 MB / 382.1 MB Notification: Performance of pre-optimization done (n=49): time 3.537e-06/0.4382, allocations: 4 kB / 478.6 MB, free: 1.551 MB / 382.1 MB Notification: Performance of matching and sorting (n=49): time 0.002717/0.4409, allocations: 1.11 MB / 479.7 MB, free: 448 kB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.537e-05/0.441, allocations: 59.39 kB / 479.7 MB, free: 376 kB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004549/0.4456, allocations: 2.952 MB / 482.7 MB, free: 13.41 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001405/0.4457, allocations: 33.7 kB / 482.7 MB, free: 13.37 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001616/0.4473, allocations: 1.503 MB / 484.2 MB, free: 11.86 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002656/0.4476, allocations: 174.6 kB / 484.4 MB, free: 11.68 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003351/0.4479, allocations: 234.3 kB / 484.6 MB, free: 11.45 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001736/0.4481, allocations: 338 kB / 485 MB, free: 11.11 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000612/0.4487, allocations: 249.8 kB / 485.2 MB, free: 10.87 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009478/0.4496, allocations: 0.6018 MB / 485.8 MB, free: 10.09 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001602/0.4512, allocations: 0.8974 MB / 486.7 MB, free: 9.023 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.997e-06/0.4513, allocations: 4 kB / 486.7 MB, free: 9.02 MB / 398.1 MB Notification: Performance of matching and sorting (n=110) (initialization): time 0.002474/0.4537, allocations: 1.255 MB / 488 MB, free: 7.754 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.392e-05/0.4538, allocations: 8 kB / 488 MB, free: 7.746 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001248/0.4539, allocations: 80 kB / 488 MB, free: 7.668 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.565e-05/0.4539, allocations: 20 kB / 488.1 MB, free: 7.648 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007434/0.4547, allocations: 199.7 kB / 488.3 MB, free: 7.453 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.085e-05/0.4547, allocations: 31.8 kB / 488.3 MB, free: 7.422 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001082/0.4558, allocations: 111.4 kB / 488.4 MB, free: 7.312 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001281/0.4559, allocations: 64 kB / 488.5 MB, free: 7.25 MB / 398.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.000887/0.4568, allocations: 441.4 kB / 488.9 MB, free: 6.809 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007894/0.4576, allocations: 401.5 kB / 489.3 MB, free: 6.414 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002929/0.4605, allocations: 1.205 MB / 490.5 MB, free: 5.199 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.07e-05/0.4605, allocations: 8 kB / 490.5 MB, free: 5.191 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.282e-06/0.4605, allocations: 0 / 490.5 MB, free: 5.191 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.985e-06/0.4605, allocations: 3.984 kB / 490.5 MB, free: 5.188 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004137/0.4647, allocations: 2.061 MB / 492.6 MB, free: 3.062 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001157/0.4648, allocations: 72.06 kB / 492.6 MB, free: 2.992 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005163/0.4653, allocations: 99.84 kB / 492.7 MB, free: 2.895 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.921e-06/0.4653, allocations: 0 / 492.7 MB, free: 2.895 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.284e-05/0.4654, allocations: 36 kB / 492.8 MB, free: 2.859 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.769e-06/0.4654, allocations: 0 / 492.8 MB, free: 2.859 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.737e-06/0.4654, allocations: 3.938 kB / 492.8 MB, free: 2.855 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00264/0.468, allocations: 1.323 MB / 494.1 MB, free: 1.508 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001201/0.4692, allocations: 419.2 kB / 494.5 MB, free: 1.094 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002934/0.4695, allocations: 8 kB / 494.5 MB, free: 1.086 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006475/0.4702, allocations: 31.97 kB / 494.5 MB, free: 1.055 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001765/0.4703, allocations: 63.92 kB / 494.6 MB, free: 0.9922 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.592e-05/0.4704, allocations: 47.92 kB / 494.7 MB, free: 0.9453 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.003238/0.4737, allocations: 1.92 MB / 496.6 MB, free: 15.03 MB / 414.1 MB Notification: Performance of sort global known variables: time 9e-08/0.4737, allocations: 0 / 496.6 MB, free: 15.03 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.001774/0.4754, allocations: 0.593 MB / 497.2 MB, free: 14.43 MB / 414.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.001366/0.4768, allocations: 0.7879 MB / 498 MB, free: 13.64 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.001802/0.4786, allocations: 0.7711 MB / 498.7 MB, free: 12.84 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 4.378e-06/0.4786, allocations: 0 / 498.7 MB, free: 12.84 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008031/0.4794, allocations: 423 kB / 499.1 MB, free: 12.4 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002166/0.4816, allocations: 0.5143 MB / 499.6 MB, free: 11.88 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007859/0.4894, allocations: 4.493 MB / 0.4923 GB, free: 7.34 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001465/0.4909, allocations: 1.665 MB / 0.494 GB, free: 5.648 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004535/0.4913, allocations: 159.4 kB / 0.4941 GB, free: 5.492 MB / 414.1 MB Notification: Performance of SimCode: time 8.52e-07/0.4913, allocations: 4 kB / 0.4941 GB, free: 5.488 MB / 414.1 MB Notification: Performance of Templates: time 0.06625/0.5576, allocations: 37.96 MB / 0.5312 GB, free: 15.46 MB / 462.1 MB " [Timeout remaining time 659] make -j1 -f Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.makefile [Timeout 660] (rm -f Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.sim & ./Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.InvertersApartRecord -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.InvertersApartRecord_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Electrical/Spice3/Examples/InvertersApartRecord/InvertersApartRecord.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.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: 11.343715817900375]