Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.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.0009082/0.0009082, allocations: 76.81 kB / 22.28 MB, free: 2.207 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.00101/0.00101, allocations: 163.3 kB / 25.7 MB, free: 8.438 MB / 18.57 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 0.8572/0.8572, allocations: 158.6 MB / 187.6 MB, free: 2.785 MB / 170.7 MB " [Timeout remaining time 179] 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.InvertersExtendedModel,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.InvertersExtendedModel") translateModel(Modelica.Electrical.Spice3.Examples.InvertersExtendedModel,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.InvertersExtendedModel") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.152e-06/1.152e-06, allocations: 0 / 251.5 MB, free: 7.285 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.906e-05/2.021e-05, allocations: 2.312 kB / 251.5 MB, free: 7.281 MB / 234.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.InvertersExtendedModel): time 0.01262/0.01264, allocations: 13.57 MB / 265.1 MB, free: 9.652 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.0249/0.03754, allocations: 18.92 MB / 284 MB, free: 6.652 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002898/0.04044, allocations: 142.4 kB / 284.2 MB, free: 6.512 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.003125/0.04357, allocations: 1.177 MB / 285.3 MB, free: 5.324 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.007798/0.05136, allocations: 2.472 MB / 287.8 MB, free: 2.836 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.003381/0.05474, allocations: 1.403 MB / 289.2 MB, free: 1.422 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.006606/0.06135, allocations: 6.761 MB / 296 MB, free: 10.64 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005339/0.06188, allocations: 295 kB / 296.3 MB, free: 10.31 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002513/0.0644, allocations: 2.872 MB / 299.1 MB, free: 7.43 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008533/0.06525, allocations: 0.8215 MB / 299.9 MB, free: 6.605 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001337/0.06539, allocations: 72 kB / 300 MB, free: 6.535 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001949/0.06733, allocations: 1.093 MB / 301.1 MB, free: 5.441 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0002154/0.06755, allocations: 353.4 kB / 301.5 MB, free: 5.094 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0006367/0.06819, allocations: 0.7632 MB / 302.2 MB, free: 4.328 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.002358/0.07054, allocations: 2.903 MB / 305.1 MB, free: 1.414 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.14e-06/0.07055, allocations: 0 / 305.1 MB, free: 1.414 MB / 282.7 MB Notification: Performance of FrontEnd: time 1.403e-06/0.07055, allocations: 0 / 305.1 MB, free: 1.414 MB / 282.7 MB Notification: Performance of Transformations before backend: time 6.142e-05/0.07061, allocations: 0 / 305.1 MB, free: 1.414 MB / 282.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.002868/0.07348, allocations: 3.845 MB / 309 MB, free: 13.51 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.306e-05/0.07351, allocations: 11.98 kB / 309 MB, free: 13.5 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000256/0.07377, allocations: 295.6 kB / 309.3 MB, free: 13.21 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001835/0.0756, allocations: 2.128 MB / 311.4 MB, free: 10.97 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.29e-05/0.07563, allocations: 37 kB / 311.4 MB, free: 10.94 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.048e-05/0.07571, allocations: 55.95 kB / 311.5 MB, free: 10.88 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005199/0.07623, allocations: 475.4 kB / 311.9 MB, free: 10.41 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.283e-05/0.07624, allocations: 4 kB / 312 MB, free: 10.41 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.034e-05/0.07628, allocations: 16 kB / 312 MB, free: 10.39 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.952e-05/0.0763, allocations: 23.98 kB / 312 MB, free: 10.37 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000343/0.07664, allocations: 232.4 kB / 312.2 MB, free: 10.14 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002051/0.07869, allocations: 1.568 MB / 313.8 MB, free: 8.535 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002876/0.07898, allocations: 280.4 kB / 314.1 MB, free: 8.254 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002758/0.07926, allocations: 323 kB / 314.4 MB, free: 7.934 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02318/0.1024, allocations: 23.12 MB / 337.5 MB, free: 15.95 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002456/0.1027, allocations: 210.1 kB / 337.7 MB, free: 15.74 MB / 330.7 MB Notification: Performance of pre-optimization done (n=49): time 2.255e-06/0.1027, allocations: 0 / 337.7 MB, free: 15.74 MB / 330.7 MB Notification: Performance of matching and sorting (n=49): time 0.0006948/0.1034, allocations: 499 kB / 338.2 MB, free: 15.24 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.291e-05/0.1034, allocations: 59.34 kB / 338.3 MB, free: 15.17 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001545/0.105, allocations: 2.82 MB / 341.1 MB, free: 12.34 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 3.287e-05/0.105, allocations: 29.7 kB / 341.1 MB, free: 12.31 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003907/0.1054, allocations: 0.7848 MB / 341.9 MB, free: 11.51 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.441e-05/0.1055, allocations: 178.5 kB / 342.1 MB, free: 11.33 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001539/0.1056, allocations: 194.2 kB / 342.2 MB, free: 11.14 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 7.323e-05/0.1057, allocations: 337.9 kB / 342.6 MB, free: 10.8 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.995e-05/0.1058, allocations: 73.95 kB / 342.7 MB, free: 10.73 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002445/0.106, allocations: 452.3 kB / 343.1 MB, free: 10.11 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000427/0.1065, allocations: 0.6131 MB / 343.7 MB, free: 9.328 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.48e-06/0.1065, allocations: 7.938 kB / 343.7 MB, free: 9.32 MB / 330.7 MB Notification: Performance of matching and sorting (n=110) (initialization): time 0.0006152/0.1071, allocations: 0.7124 MB / 344.4 MB, free: 8.602 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.849e-05/0.1071, allocations: 12 kB / 344.4 MB, free: 8.59 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.287e-05/0.1072, allocations: 20 kB / 344.5 MB, free: 8.57 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.867e-05/0.1072, allocations: 16 kB / 344.5 MB, free: 8.555 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003374/0.1075, allocations: 199.6 kB / 344.7 MB, free: 8.359 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.417e-05/0.1075, allocations: 31.8 kB / 344.7 MB, free: 8.328 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005587/0.1081, allocations: 111.5 kB / 344.8 MB, free: 8.219 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.934e-05/0.1081, allocations: 36 kB / 344.8 MB, free: 8.184 MB / 330.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.00026/0.1084, allocations: 169.5 kB / 345 MB, free: 8.008 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001768/0.1086, allocations: 259.6 kB / 345.3 MB, free: 7.754 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001002/0.1096, allocations: 0.8002 MB / 346.1 MB, free: 6.941 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.674e-06/0.1096, allocations: 11.98 kB / 346.1 MB, free: 6.93 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.036e-06/0.1096, allocations: 3.938 kB / 346.1 MB, free: 6.926 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.419e-06/0.1096, allocations: 0 / 346.1 MB, free: 6.926 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001381/0.111, allocations: 1.602 MB / 347.7 MB, free: 5.281 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.339e-05/0.111, allocations: 15.98 kB / 347.7 MB, free: 5.266 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002003/0.1112, allocations: 83.88 kB / 347.8 MB, free: 5.184 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.479e-06/0.1112, allocations: 4 kB / 347.8 MB, free: 5.18 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.817e-05/0.1112, allocations: 15.94 kB / 347.8 MB, free: 5.164 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.625e-06/0.1112, allocations: 4.062 kB / 347.8 MB, free: 5.16 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.605e-06/0.1113, allocations: 3.984 kB / 347.8 MB, free: 5.156 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005821/0.1118, allocations: 0.6497 MB / 348.5 MB, free: 4.48 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003695/0.1122, allocations: 405.2 kB / 348.8 MB, free: 4.082 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001671/0.1124, allocations: 15.92 kB / 348.9 MB, free: 4.066 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003125/0.1127, allocations: 19.98 kB / 348.9 MB, free: 4.047 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.29e-05/0.1128, allocations: 47.8 kB / 348.9 MB, free: 4 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.12e-05/0.1128, allocations: 16 kB / 348.9 MB, free: 3.984 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0008656/0.1137, allocations: 1.495 MB / 350.4 MB, free: 2.492 MB / 330.7 MB Notification: Performance of sort global known variables: time 8e-08/0.1137, allocations: 0 / 350.4 MB, free: 2.492 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0007857/0.1144, allocations: 0.6048 MB / 351 MB, free: 1.887 MB / 330.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.0008496/0.1153, allocations: 0.9268 MB / 352 MB, free: 0.9492 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0005697/0.1159, allocations: 472.6 kB / 352.4 MB, free: 476 kB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 3.292e-05/0.1159, allocations: 44.5 kB / 352.5 MB, free: 432 kB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001979/0.1161, allocations: 233.7 kB / 352.7 MB, free: 168 kB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.09012/0.2062, allocations: 0.5461 MB / 353.3 MB, free: 91.51 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003267/0.2095, allocations: 4.197 MB / 357.4 MB, free: 89.44 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002207/0.2097, allocations: 402.7 kB / 357.8 MB, free: 89.33 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 0.000535/0.2102, allocations: 367.9 kB / 358.2 MB, free: 89.3 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006951/0.2109, allocations: 0.5883 MB / 358.8 MB, free: 89.26 MB / 330.7 MB Notification: Performance of SimCode: time 1.293e-06/0.2109, allocations: 0 / 358.8 MB, free: 89.26 MB / 330.7 MB Notification: Performance of Templates: time 0.03499/0.2459, allocations: 38.36 MB / 397.2 MB, free: 56.83 MB / 330.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.makefile [Timeout 660] (rm -f Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.sim & ./Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Electrical/Spice3/Examples/InvertersExtendedModel/InvertersExtendedModel.csv","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 3.356363167054951]