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.001963/0.001963, allocations: 113.1 kB / 20.43 MB, free: 1.457 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.002451/0.002451, allocations: 214.4 kB / 23.75 MB, free: 4.668 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.588/1.588, allocations: 230.6 MB / 257.5 MB, free: 7.996 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: 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_4.1.0_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_4.1.0_Modelica.Electrical.Spice3.Examples.InvertersApartRecord") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001588/0.001588, allocations: 47.92 kB / 378.3 MB, free: 2.652 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2291/0.2307, allocations: 53.37 MB / 431.6 MB, free: 6.945 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.InvertersApartRecord): time 0.02233/0.2531, allocations: 14.77 MB / 446.4 MB, free: 8.113 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.04787/0.3009, allocations: 20.79 MB / 467.2 MB, free: 3.238 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003512/0.3044, allocations: 138.6 kB / 467.3 MB, free: 3.102 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00589/0.3103, allocations: 1.239 MB / 468.6 MB, free: 1.859 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01392/0.3242, allocations: 2.37 MB / 470.9 MB, free: 15.46 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.006649/0.3309, allocations: 1.461 MB / 472.4 MB, free: 14.01 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.01151/0.3424, allocations: 6.6 MB / 479 MB, free: 7.387 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0008199/0.3432, allocations: 273.7 kB / 479.3 MB, free: 7.09 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002085/0.3453, allocations: 1.147 MB / 480.4 MB, free: 5.938 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001895/0.3472, allocations: 1.106 MB / 481.5 MB, free: 4.824 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003247/0.3475, allocations: 76 kB / 481.6 MB, free: 4.75 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004639/0.3522, allocations: 1.486 MB / 483.1 MB, free: 3.262 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000419/0.3526, allocations: 325.7 kB / 483.4 MB, free: 2.941 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001716/0.3543, allocations: 1.374 MB / 484.8 MB, free: 1.559 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005403/0.3597, allocations: 3.792 MB / 488.6 MB, free: 13.75 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.558e-06/0.3597, allocations: 0 / 488.6 MB, free: 13.75 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.713e-06/0.3597, allocations: 0 / 488.6 MB, free: 13.75 MB / 398.1 MB Notification: Performance of Transformations before backend: time 4.223e-05/0.3598, allocations: 0 / 488.6 MB, free: 13.75 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: 154 * Number of variables: 154 Notification: Performance of Generate backend data structure: time 0.005661/0.3654, allocations: 3.73 MB / 492.3 MB, free: 9.957 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.734e-05/0.3655, allocations: 12.03 kB / 492.3 MB, free: 9.945 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004616/0.3659, allocations: 417.4 kB / 492.7 MB, free: 9.535 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003699/0.3696, allocations: 2.291 MB / 495 MB, free: 7.148 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.007e-05/0.3697, allocations: 37 kB / 495 MB, free: 7.109 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001263/0.3698, allocations: 51.98 kB / 495.1 MB, free: 7.059 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001414/0.3712, allocations: 0.7343 MB / 495.8 MB, free: 6.32 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.54e-05/0.3712, allocations: 4 kB / 495.8 MB, free: 6.316 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.81e-05/0.3713, allocations: 16 kB / 495.8 MB, free: 6.301 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.245e-05/0.3713, allocations: 23.98 kB / 495.9 MB, free: 6.277 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001657/0.373, allocations: 0.8163 MB / 496.7 MB, free: 5.461 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005342/0.3783, allocations: 3.003 MB / 499.7 MB, free: 2.391 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001208/0.3795, allocations: 0.526 MB / 0.4885 GB, free: 1.859 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001015/0.3805, allocations: 0.5614 MB / 0.489 GB, free: 1.289 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02751/0.408, allocations: 13.78 MB / 0.5025 GB, free: 3.121 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007999/0.4088, allocations: 365.6 kB / 0.5028 GB, free: 2.75 MB / 414.1 MB Notification: Performance of pre-optimization done (n=49): time 2.715e-06/0.4088, allocations: 0 / 0.5028 GB, free: 2.75 MB / 414.1 MB Notification: Performance of matching and sorting (n=49): time 0.00248/0.4113, allocations: 1.107 MB / 0.5039 GB, free: 1.637 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.404e-05/0.4114, allocations: 59.34 kB / 0.504 GB, free: 1.566 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004465/0.4158, allocations: 2.939 MB / 0.5068 GB, free: 14.62 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 5.597e-05/0.4159, allocations: 33.7 kB / 0.5069 GB, free: 14.58 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001492/0.4174, allocations: 1.506 MB / 0.5084 GB, free: 13.06 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001936/0.4176, allocations: 170.6 kB / 0.5085 GB, free: 12.89 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003301/0.4179, allocations: 230.3 kB / 0.5087 GB, free: 12.66 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0001633/0.4181, allocations: 341.9 kB / 0.5091 GB, free: 12.32 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006065/0.4187, allocations: 241.9 kB / 0.5093 GB, free: 12.09 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008741/0.4196, allocations: 0.6017 MB / 0.5099 GB, free: 11.31 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001569/0.4211, allocations: 0.8935 MB / 0.5108 GB, free: 10.24 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.306e-05/0.4211, allocations: 7.938 kB / 0.5108 GB, free: 10.23 MB / 430.1 MB Notification: Performance of matching and sorting (n=110) (initialization): time 0.002465/0.4236, allocations: 1.251 MB / 0.512 GB, free: 8.977 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.484e-05/0.4236, allocations: 12 kB / 0.512 GB, free: 8.965 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001305/0.4238, allocations: 80 kB / 0.5121 GB, free: 8.887 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.94e-05/0.4238, allocations: 16 kB / 0.5121 GB, free: 8.871 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007593/0.4246, allocations: 204.4 kB / 0.5123 GB, free: 8.672 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.033e-05/0.4246, allocations: 27.86 kB / 0.5123 GB, free: 8.645 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009736/0.4256, allocations: 111.3 kB / 0.5124 GB, free: 8.535 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000113/0.4257, allocations: 64 kB / 0.5125 GB, free: 8.473 MB / 430.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.000741/0.4264, allocations: 441.4 kB / 0.5129 GB, free: 8.031 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004745/0.4269, allocations: 405.5 kB / 0.5133 GB, free: 7.633 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002761/0.4296, allocations: 1.178 MB / 0.5144 GB, free: 6.449 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.289e-05/0.4297, allocations: 11.92 kB / 0.5144 GB, free: 6.438 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.981e-06/0.4297, allocations: 0 / 0.5144 GB, free: 6.438 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.402e-06/0.4297, allocations: 0 / 0.5144 GB, free: 6.438 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003842/0.4335, allocations: 2.084 MB / 0.5165 GB, free: 4.289 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001097/0.4336, allocations: 68 kB / 0.5165 GB, free: 4.223 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004881/0.4341, allocations: 91.84 kB / 0.5166 GB, free: 4.133 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.554e-06/0.4341, allocations: 4 kB / 0.5166 GB, free: 4.129 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.784e-05/0.4342, allocations: 32 kB / 0.5167 GB, free: 4.098 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.163e-06/0.4342, allocations: 4 kB / 0.5167 GB, free: 4.094 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.373e-06/0.4342, allocations: 0 / 0.5167 GB, free: 4.094 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002366/0.4366, allocations: 1.314 MB / 0.5179 GB, free: 2.754 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008816/0.4374, allocations: 423.1 kB / 0.5184 GB, free: 2.34 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003255/0.4378, allocations: 8 kB / 0.5184 GB, free: 2.332 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006902/0.4385, allocations: 31.95 kB / 0.5184 GB, free: 2.301 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001472/0.4386, allocations: 67.94 kB / 0.5185 GB, free: 2.234 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.559e-05/0.4387, allocations: 39.98 kB / 0.5185 GB, free: 2.195 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.002627/0.4413, allocations: 1.903 MB / 0.5204 GB, free: 300 kB / 430.1 MB Notification: Performance of sort global known variables: time 1e-07/0.4413, allocations: 0 / 0.5204 GB, free: 300 kB / 430.1 MB Notification: Performance of remove unused functions: time 0.001367/0.4427, allocations: 0.5892 MB / 0.5209 GB, free: 15.7 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.001219/0.4439, allocations: 0.7807 MB / 0.5217 GB, free: 14.91 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.001648/0.4455, allocations: 0.7716 MB / 0.5224 GB, free: 14.12 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 4.318e-06/0.4456, allocations: 4 kB / 0.5224 GB, free: 14.11 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008058/0.4464, allocations: 422.9 kB / 0.5229 GB, free: 13.68 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002525/0.4489, allocations: 0.6039 MB / 0.5234 GB, free: 13.07 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00748/0.4564, allocations: 4.41 MB / 0.5277 GB, free: 8.613 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001747/0.4581, allocations: 1.668 MB / 0.5294 GB, free: 6.914 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.001118/0.4592, allocations: 357.1 kB / 0.5297 GB, free: 6.559 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002929/0.4595, allocations: 147.4 kB / 0.5299 GB, free: 6.414 MB / 446.1 MB Notification: Performance of SimCode: time 9.62e-07/0.4595, allocations: 0 / 0.5299 GB, free: 6.414 MB / 446.1 MB Notification: Performance of Templates: time 0.2282/0.6877, allocations: 31.93 MB / 0.561 GB, free: 88.25 MB / 446.1 MB " [Timeout remaining time 659] make -j1 -f Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.makefile [Timeout 660] (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 & ./Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.InvertersApartRecord -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.InvertersApartRecord_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Spice3/Examples/InvertersApartRecord/InvertersApartRecord.csv","/var/lib/jenkins/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 660] Reference file matches [Calling sys.exit(0), Time elapsed: 5.892471187980846]