Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008624/0.0008624, allocations: 88.28 kB / 21.43 MB, free: 3.137 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.00335/0.00335, allocations: 155.5 kB / 24.7 MB, free: 8.895 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 0.8476/0.8476, allocations: 177 MB / 204.9 MB, free: 5.758 MB / 186.7 MB " [Timeout remaining time 179] Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/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_trunk_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_trunk_Modelica.Electrical.Spice3.Examples.InvertersApartRecord") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.543e-06/1.543e-06, allocations: 0 / 325.8 MB, free: 15.41 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.521e-05/2.675e-05, allocations: 3.266 kB / 325.8 MB, free: 15.4 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.InvertersApartRecord): time 0.007827/0.007854, allocations: 12.4 MB / 338.2 MB, free: 2.945 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.01502/0.02287, allocations: 17.91 MB / 356.1 MB, free: 0.9609 MB / 314.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002522/0.02539, allocations: 142.5 kB / 356.2 MB, free: 0.8203 MB / 314.7 MB Notification: Performance of NFTyping.typeComponents: time 0.00289/0.02828, allocations: 1.141 MB / 357.4 MB, free: 15.67 MB / 330.7 MB Notification: Performance of NFTyping.typeBindings: time 0.006992/0.03527, allocations: 2.417 MB / 359.8 MB, free: 13.23 MB / 330.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.00405/0.03932, allocations: 1.445 MB / 361.2 MB, free: 11.79 MB / 330.7 MB Notification: Performance of NFFlatten.flatten: time 0.007383/0.04671, allocations: 6.781 MB / 368 MB, free: 4.98 MB / 330.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006506/0.04736, allocations: 265.8 kB / 368.3 MB, free: 4.695 MB / 330.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001792/0.04915, allocations: 1.566 MB / 369.8 MB, free: 3.125 MB / 330.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006358/0.04979, allocations: 0.79 MB / 370.6 MB, free: 2.332 MB / 330.7 MB Notification: Performance of NFPackage.collectConstants: time 9.669e-05/0.04988, allocations: 76 kB / 370.7 MB, free: 2.258 MB / 330.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002571/0.05245, allocations: 1.213 MB / 371.9 MB, free: 1.043 MB / 330.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001782/0.05263, allocations: 333.5 kB / 372.2 MB, free: 0.7148 MB / 330.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0007365/0.05337, allocations: 0.7359 MB / 373 MB, free: 15.97 MB / 346.7 MB Notification: Performance of NFConvertDAE.convert: time 0.004144/0.05751, allocations: 3.748 MB / 376.7 MB, free: 12.21 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.569e-06/0.05752, allocations: 0 / 376.7 MB, free: 12.21 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.312e-06/0.05752, allocations: 0 / 376.7 MB, free: 12.21 MB / 346.7 MB Notification: Performance of Transformations before backend: time 4.698e-05/0.05757, allocations: 0 / 376.7 MB, free: 12.21 MB / 346.7 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.003193/0.06076, allocations: 3.699 MB / 380.4 MB, free: 8.457 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.139e-05/0.0608, allocations: 11.98 kB / 380.4 MB, free: 8.445 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002948/0.06109, allocations: 417.4 kB / 380.8 MB, free: 8.035 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002079/0.06317, allocations: 2.291 MB / 383.1 MB, free: 5.645 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.52e-05/0.0632, allocations: 37 kB / 383.2 MB, free: 5.605 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.925e-05/0.06329, allocations: 59.92 kB / 383.2 MB, free: 5.547 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008408/0.06413, allocations: 0.7265 MB / 383.9 MB, free: 4.812 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.234e-05/0.06414, allocations: 3.938 kB / 383.9 MB, free: 4.809 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.315e-05/0.06418, allocations: 20 kB / 384 MB, free: 4.789 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.672e-05/0.0642, allocations: 27.97 kB / 384 MB, free: 4.762 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008819/0.06508, allocations: 0.8163 MB / 384.8 MB, free: 3.949 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003223/0.06831, allocations: 2.758 MB / 387.6 MB, free: 1.133 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006733/0.06898, allocations: 0.5131 MB / 388.1 MB, free: 0.6133 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005477/0.06953, allocations: 0.5728 MB / 388.7 MB, free: 40 kB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01474/0.08426, allocations: 13.72 MB / 402.4 MB, free: 1.941 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004664/0.08473, allocations: 362 kB / 402.7 MB, free: 1.57 MB / 362.7 MB Notification: Performance of pre-optimization done (n=49): time 2.716e-06/0.08473, allocations: 0 / 402.7 MB, free: 1.57 MB / 362.7 MB Notification: Performance of matching and sorting (n=49): time 0.001427/0.08616, allocations: 1.108 MB / 403.8 MB, free: 468 kB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.426e-05/0.0862, allocations: 67.33 kB / 403.9 MB, free: 388 kB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002428/0.08863, allocations: 2.954 MB / 406.9 MB, free: 13.41 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 3.913e-05/0.08867, allocations: 33.7 kB / 406.9 MB, free: 13.37 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008208/0.08949, allocations: 1.491 MB / 408.4 MB, free: 11.88 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001016/0.08959, allocations: 174.6 kB / 408.6 MB, free: 11.7 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001956/0.08979, allocations: 230.3 kB / 408.8 MB, free: 11.47 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 8.746e-05/0.08987, allocations: 337.9 kB / 409.1 MB, free: 11.14 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003183/0.09019, allocations: 245.8 kB / 409.3 MB, free: 10.89 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000461/0.09065, allocations: 0.5979 MB / 409.9 MB, free: 10.12 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008118/0.09147, allocations: 0.9023 MB / 410.8 MB, free: 9.043 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.202e-06/0.09147, allocations: 4 kB / 410.8 MB, free: 9.039 MB / 378.7 MB Notification: Performance of matching and sorting (n=110) (initialization): time 0.001284/0.09276, allocations: 1.241 MB / 412.1 MB, free: 7.797 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.373e-05/0.09278, allocations: 15.94 kB / 412.1 MB, free: 7.781 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.102e-05/0.09284, allocations: 80 kB / 412.2 MB, free: 7.703 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.383e-05/0.09286, allocations: 19.94 kB / 412.2 MB, free: 7.684 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003753/0.09324, allocations: 203.6 kB / 412.4 MB, free: 7.484 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.802e-05/0.09326, allocations: 27.92 kB / 412.4 MB, free: 7.457 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006313/0.09389, allocations: 111.4 kB / 412.5 MB, free: 7.348 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.12e-05/0.09397, allocations: 68 kB / 412.6 MB, free: 7.281 MB / 378.7 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.0005604/0.09453, allocations: 430.3 kB / 413 MB, free: 6.852 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002425/0.09477, allocations: 405.5 kB / 413.4 MB, free: 6.453 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001541/0.09631, allocations: 1.187 MB / 414.6 MB, free: 5.254 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.672e-06/0.09632, allocations: 4 kB / 414.6 MB, free: 5.25 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.985e-06/0.09633, allocations: 4 kB / 414.6 MB, free: 5.246 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.44e-06/0.09633, allocations: 0 / 414.6 MB, free: 5.246 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002142/0.09848, allocations: 1.94 MB / 416.6 MB, free: 3.254 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.059e-05/0.09853, allocations: 75.92 kB / 416.6 MB, free: 3.18 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002403/0.09877, allocations: 83.92 kB / 416.7 MB, free: 3.098 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.219e-06/0.09877, allocations: 3.984 kB / 416.7 MB, free: 3.094 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.632e-05/0.09881, allocations: 43.98 kB / 416.8 MB, free: 3.051 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.927e-06/0.09881, allocations: 11.88 kB / 416.8 MB, free: 3.039 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.443e-06/0.09881, allocations: 0 / 416.8 MB, free: 3.039 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001276/0.1001, allocations: 1.308 MB / 418.1 MB, free: 1.703 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004941/0.1006, allocations: 423.1 kB / 418.5 MB, free: 1.289 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001395/0.1007, allocations: 15.98 kB / 418.5 MB, free: 1.273 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003341/0.1011, allocations: 31.97 kB / 418.5 MB, free: 1.242 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000103/0.1012, allocations: 55.92 kB / 418.6 MB, free: 1.188 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.627e-05/0.1012, allocations: 40 kB / 418.6 MB, free: 1.148 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.001607/0.1028, allocations: 1.911 MB / 420.5 MB, free: 15.23 MB / 394.7 MB Notification: Performance of sort global known variables: time 2.11e-07/0.1028, allocations: 4.062 kB / 420.5 MB, free: 15.23 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.000952/0.1038, allocations: 0.5775 MB / 421.1 MB, free: 14.65 MB / 394.7 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.0007944/0.1046, allocations: 0.8264 MB / 422 MB, free: 13.82 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.0009693/0.1055, allocations: 0.7729 MB / 422.7 MB, free: 13.03 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 3.647e-06/0.1055, allocations: 4.062 kB / 422.7 MB, free: 13.02 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004061/0.1059, allocations: 427 kB / 423.1 MB, free: 12.58 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001419/0.1074, allocations: 0.6077 MB / 423.8 MB, free: 11.96 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004603/0.112, allocations: 4.375 MB / 428.1 MB, free: 7.539 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006624/0.1126, allocations: 1.113 MB / 429.2 MB, free: 6.395 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001995/0.1128, allocations: 156.5 kB / 429.4 MB, free: 6.242 MB / 394.7 MB Notification: Performance of SimCode: time 1.222e-06/0.1128, allocations: 0 / 429.4 MB, free: 6.242 MB / 394.7 MB Notification: Performance of Templates: time 0.1851/0.2979, allocations: 39.21 MB / 468.6 MB, free: 105.5 MB / 410.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_trunk_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.makefile [Timeout 660] (rm -f Modelica_trunk_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.sim & ./Modelica_trunk_Modelica.Electrical.Spice3.Examples.InvertersApartRecord -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_trunk_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_trunk_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: 7.8591627068817616]