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.0007934/0.0007934, allocations: 83.62 kB / 21.43 MB, free: 3.133 MB / 18.57 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.003702/0.003702, allocations: 157.8 kB / 24.7 MB, free: 8.891 MB / 18.57 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 0.8546/0.8546, allocations: 177.1 MB / 205 MB, free: 5.73 MB / 186.7 MB " [Timeout remaining time 179] 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 2.053e-06/2.053e-06, allocations: 0 / 325.8 MB, free: 15.46 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.732e-05/2.937e-05, allocations: 5.516 kB / 325.8 MB, free: 15.46 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.InvertersApartRecord): time 0.008235/0.008264, allocations: 12.42 MB / 338.2 MB, free: 2.992 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.01627/0.02454, allocations: 17.91 MB / 356.1 MB, free: 1.012 MB / 314.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001709/0.02625, allocations: 134.6 kB / 356.3 MB, free: 0.8789 MB / 314.7 MB Notification: Performance of NFTyping.typeComponents: time 0.002138/0.02838, allocations: 1.137 MB / 357.4 MB, free: 15.73 MB / 330.7 MB Notification: Performance of NFTyping.typeBindings: time 0.005198/0.03358, allocations: 2.432 MB / 359.8 MB, free: 13.28 MB / 330.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.003039/0.03662, allocations: 1.437 MB / 361.3 MB, free: 11.84 MB / 330.7 MB Notification: Performance of NFFlatten.flatten: time 0.00608/0.0427, allocations: 6.777 MB / 368.1 MB, free: 5.039 MB / 330.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003999/0.0431, allocations: 269.8 kB / 368.3 MB, free: 4.75 MB / 330.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001164/0.04426, allocations: 1.562 MB / 369.9 MB, free: 3.184 MB / 330.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007939/0.04506, allocations: 0.7861 MB / 370.7 MB, free: 2.395 MB / 330.7 MB Notification: Performance of NFPackage.collectConstants: time 9.508e-05/0.04515, allocations: 76 kB / 370.7 MB, free: 2.32 MB / 330.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001931/0.04708, allocations: 1.213 MB / 372 MB, free: 1.105 MB / 330.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001604/0.04724, allocations: 333.5 kB / 372.3 MB, free: 0.7773 MB / 330.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0007282/0.04797, allocations: 0.7359 MB / 373 MB, free: 40 kB / 330.7 MB Notification: Performance of NFConvertDAE.convert: time 0.002658/0.05063, allocations: 3.756 MB / 376.8 MB, free: 12.27 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.627e-06/0.05063, allocations: 3.938 kB / 376.8 MB, free: 12.26 MB / 346.7 MB Notification: Performance of FrontEnd: time 2.024e-06/0.05064, allocations: 0 / 376.8 MB, free: 12.26 MB / 346.7 MB Notification: Performance of Transformations before backend: time 2.365e-05/0.05066, allocations: 0 / 376.8 MB, free: 12.26 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.003128/0.05379, allocations: 3.698 MB / 380.5 MB, free: 8.508 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.823e-05/0.05383, allocations: 11.97 kB / 380.5 MB, free: 8.496 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002779/0.0541, allocations: 417.4 kB / 380.9 MB, free: 8.086 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002068/0.05617, allocations: 2.288 MB / 383.2 MB, free: 5.699 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.813e-05/0.0562, allocations: 40.94 kB / 383.2 MB, free: 5.656 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.626e-05/0.05629, allocations: 51.94 kB / 383.3 MB, free: 5.605 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008362/0.05712, allocations: 0.7304 MB / 384 MB, free: 4.871 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.334e-05/0.05714, allocations: 3.984 kB / 384 MB, free: 4.867 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.722e-05/0.05718, allocations: 20 kB / 384 MB, free: 4.848 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.594e-05/0.0572, allocations: 27.97 kB / 384.1 MB, free: 4.82 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009/0.0581, allocations: 0.8163 MB / 384.9 MB, free: 4.008 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003126/0.06122, allocations: 2.754 MB / 387.6 MB, free: 1.199 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006811/0.06191, allocations: 0.5202 MB / 388.1 MB, free: 0.6719 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005597/0.06247, allocations: 0.5611 MB / 388.7 MB, free: 104 kB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01491/0.07737, allocations: 13.72 MB / 402.4 MB, free: 2 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000488/0.07786, allocations: 362 kB / 402.8 MB, free: 1.633 MB / 362.7 MB Notification: Performance of pre-optimization done (n=49): time 2.294e-06/0.07786, allocations: 0 / 402.8 MB, free: 1.633 MB / 362.7 MB Notification: Performance of matching and sorting (n=49): time 0.001368/0.07923, allocations: 1.116 MB / 403.9 MB, free: 0.5078 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.995e-05/0.07928, allocations: 59.41 kB / 404 MB, free: 448 kB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002445/0.08173, allocations: 2.958 MB / 406.9 MB, free: 13.47 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 3.141e-05/0.08176, allocations: 29.7 kB / 406.9 MB, free: 13.43 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009633/0.08272, allocations: 1.495 MB / 408.4 MB, free: 11.93 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.424e-05/0.08282, allocations: 178.6 kB / 408.6 MB, free: 11.75 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000181/0.083, allocations: 226.3 kB / 408.8 MB, free: 11.53 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 7.834e-05/0.08308, allocations: 337.9 kB / 409.2 MB, free: 11.19 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003204/0.0834, allocations: 241.9 kB / 409.4 MB, free: 10.95 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004476/0.08384, allocations: 0.5979 MB / 410 MB, free: 10.18 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008011/0.08464, allocations: 0.9022 MB / 410.9 MB, free: 9.109 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.671e-06/0.08465, allocations: 4 kB / 410.9 MB, free: 9.105 MB / 378.7 MB Notification: Performance of matching and sorting (n=110) (initialization): time 0.001149/0.0858, allocations: 1.237 MB / 412.1 MB, free: 7.863 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.419e-05/0.08582, allocations: 15.94 kB / 412.2 MB, free: 7.848 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.13e-05/0.08589, allocations: 83.98 kB / 412.2 MB, free: 7.766 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.999e-05/0.08591, allocations: 16 kB / 412.3 MB, free: 7.75 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003708/0.08628, allocations: 203.6 kB / 412.5 MB, free: 7.551 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.788e-05/0.08629, allocations: 19.94 kB / 412.5 MB, free: 7.531 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004952/0.08679, allocations: 123.3 kB / 412.6 MB, free: 7.41 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.888e-05/0.08686, allocations: 68 kB / 412.7 MB, free: 7.344 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.0004342/0.08729, allocations: 431.9 kB / 413.1 MB, free: 6.914 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000215/0.08751, allocations: 405.5 kB / 413.5 MB, free: 6.516 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001424/0.08893, allocations: 1.198 MB / 414.7 MB, free: 5.309 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.09e-06/0.08894, allocations: 4 kB / 414.7 MB, free: 5.305 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.048e-06/0.08894, allocations: 0 / 414.7 MB, free: 5.305 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.07e-06/0.08895, allocations: 7.984 kB / 414.7 MB, free: 5.297 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00205/0.091, allocations: 1.928 MB / 416.6 MB, free: 3.316 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.779e-05/0.09104, allocations: 75.94 kB / 416.7 MB, free: 3.242 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002357/0.09128, allocations: 95.83 kB / 416.8 MB, free: 3.148 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.088e-06/0.09128, allocations: 0 / 416.8 MB, free: 3.148 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.354e-05/0.09132, allocations: 32 kB / 416.8 MB, free: 3.117 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.136e-06/0.09132, allocations: 8.062 kB / 416.8 MB, free: 3.109 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.204e-06/0.09132, allocations: 0 / 416.8 MB, free: 3.109 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001225/0.09255, allocations: 1.312 MB / 418.1 MB, free: 1.77 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003886/0.09294, allocations: 431 kB / 418.6 MB, free: 1.348 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001366/0.09307, allocations: 8 kB / 418.6 MB, free: 1.34 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003383/0.09341, allocations: 35.95 kB / 418.6 MB, free: 1.305 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.916e-05/0.09351, allocations: 55.94 kB / 418.6 MB, free: 1.25 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.041e-05/0.09355, allocations: 39.98 kB / 418.7 MB, free: 1.211 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.001445/0.095, allocations: 1.903 MB / 420.6 MB, free: 15.31 MB / 394.7 MB Notification: Performance of sort global known variables: time 9e-08/0.095, allocations: 4.062 kB / 420.6 MB, free: 15.3 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.0008606/0.09586, allocations: 0.5814 MB / 421.2 MB, free: 14.72 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.0008378/0.09669, allocations: 0.8237 MB / 422 MB, free: 13.89 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.001176/0.09787, allocations: 0.7722 MB / 422.8 MB, free: 13.09 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 2.816e-06/0.09787, allocations: 4.125 kB / 422.8 MB, free: 13.09 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003977/0.09827, allocations: 426.9 kB / 423.2 MB, free: 12.64 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001307/0.09958, allocations: 0.6115 MB / 423.8 MB, free: 12.03 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003567/0.1031, allocations: 4.379 MB / 428.2 MB, free: 7.598 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006206/0.1038, allocations: 1.113 MB / 429.3 MB, free: 6.453 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001587/0.1039, allocations: 160.5 kB / 429.5 MB, free: 6.297 MB / 394.7 MB Notification: Performance of SimCode: time 5.01e-07/0.1039, allocations: 0 / 429.5 MB, free: 6.297 MB / 394.7 MB Notification: Performance of Templates: time 0.1575/0.2614, allocations: 39.2 MB / 468.7 MB, free: 105.6 MB / 410.7 MB " [Timeout remaining time 660] 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: 7.446057299152017]