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.0009365/0.0009365, allocations: 80.8 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.001018/0.001018, allocations: 168.6 kB / 25.7 MB, free: 8.418 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.8671/0.8671, allocations: 158.6 MB / 187.6 MB, free: 2.797 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.533e-06/1.533e-06, allocations: 0 / 251.6 MB, free: 7.238 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.81e-05/1.964e-05, allocations: 2.312 kB / 251.6 MB, free: 7.234 MB / 234.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.InvertersExtendedModel): time 0.01143/0.01145, allocations: 13.62 MB / 265.2 MB, free: 9.551 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.0202/0.03165, allocations: 18.93 MB / 284.1 MB, free: 6.543 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001272/0.03292, allocations: 138.5 kB / 284.2 MB, free: 6.406 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.002232/0.03515, allocations: 1.181 MB / 285.4 MB, free: 5.215 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.004607/0.03976, allocations: 2.405 MB / 287.8 MB, free: 2.793 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.002498/0.04226, allocations: 1.356 MB / 289.2 MB, free: 1.426 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.006806/0.04906, allocations: 6.757 MB / 295.9 MB, free: 10.64 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005034/0.04956, allocations: 303 kB / 296.2 MB, free: 10.31 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002925/0.05249, allocations: 2.872 MB / 299.1 MB, free: 7.43 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0009907/0.05348, allocations: 0.8137 MB / 299.9 MB, free: 6.613 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001404/0.05362, allocations: 76 kB / 300 MB, free: 6.539 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002828/0.05645, allocations: 1.14 MB / 301.1 MB, free: 5.398 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0002354/0.05668, allocations: 341.5 kB / 301.5 MB, free: 5.062 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0007742/0.05746, allocations: 0.7787 MB / 302.2 MB, free: 4.281 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.003003/0.06046, allocations: 2.891 MB / 305.1 MB, free: 1.379 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.376e-06/0.06046, allocations: 0 / 305.1 MB, free: 1.379 MB / 282.7 MB Notification: Performance of FrontEnd: time 9.82e-07/0.06047, allocations: 3.938 kB / 305.1 MB, free: 1.375 MB / 282.7 MB Notification: Performance of Transformations before backend: time 2.174e-05/0.06049, allocations: 0 / 305.1 MB, free: 1.375 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.003959/0.06445, allocations: 3.849 MB / 309 MB, free: 13.47 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.019e-05/0.06449, allocations: 11.98 kB / 309 MB, free: 13.46 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003126/0.0648, allocations: 295.6 kB / 309.3 MB, free: 13.17 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002462/0.06726, allocations: 2.132 MB / 311.4 MB, free: 10.93 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.199e-05/0.06729, allocations: 40.94 kB / 311.5 MB, free: 10.89 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.459e-05/0.06739, allocations: 51.95 kB / 311.5 MB, free: 10.84 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006544/0.06804, allocations: 471.2 kB / 312 MB, free: 10.37 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.687e-05/0.06806, allocations: 0 / 312 MB, free: 10.37 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.895e-05/0.06811, allocations: 16 kB / 312 MB, free: 10.36 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.191e-05/0.06813, allocations: 19.98 kB / 312 MB, free: 10.34 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000484/0.06861, allocations: 228.5 kB / 312.2 MB, free: 10.11 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002774/0.07139, allocations: 1.568 MB / 313.8 MB, free: 8.508 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003608/0.07175, allocations: 288.8 kB / 314.1 MB, free: 8.215 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002805/0.07203, allocations: 326.9 kB / 314.4 MB, free: 7.891 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02824/0.1003, allocations: 23.1 MB / 337.5 MB, free: 15.93 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002584/0.1005, allocations: 217.7 kB / 337.7 MB, free: 15.71 MB / 330.7 MB Notification: Performance of pre-optimization done (n=49): time 2.144e-06/0.1005, allocations: 0 / 337.7 MB, free: 15.71 MB / 330.7 MB Notification: Performance of matching and sorting (n=49): time 0.0005497/0.1011, allocations: 0.4912 MB / 338.2 MB, free: 15.21 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.049e-05/0.1011, allocations: 59.39 kB / 338.3 MB, free: 15.14 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001603/0.1027, allocations: 2.816 MB / 341.1 MB, free: 12.32 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 3.272e-05/0.1027, allocations: 33.7 kB / 341.1 MB, free: 12.28 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004204/0.1032, allocations: 0.7809 MB / 341.9 MB, free: 11.48 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001007/0.1033, allocations: 182.5 kB / 342.1 MB, free: 11.3 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001568/0.1034, allocations: 190.3 kB / 342.3 MB, free: 11.11 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 8.254e-05/0.1035, allocations: 345.9 kB / 342.6 MB, free: 10.77 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.99e-05/0.1036, allocations: 77.89 kB / 342.7 MB, free: 10.69 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003919/0.104, allocations: 448.3 kB / 343.1 MB, free: 10.08 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004343/0.1044, allocations: 0.6131 MB / 343.7 MB, free: 9.297 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.119e-06/0.1044, allocations: 8 kB / 343.7 MB, free: 9.289 MB / 330.7 MB Notification: Performance of matching and sorting (n=110) (initialization): time 0.000625/0.1051, allocations: 0.7043 MB / 344.4 MB, free: 8.578 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.908e-05/0.1051, allocations: 8 kB / 344.4 MB, free: 8.57 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.188e-05/0.1051, allocations: 24 kB / 344.5 MB, free: 8.547 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.975e-05/0.1052, allocations: 19.94 kB / 344.5 MB, free: 8.527 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004243/0.1056, allocations: 224.1 kB / 344.7 MB, free: 8.309 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.319e-05/0.1056, allocations: 23.92 kB / 344.7 MB, free: 8.285 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000446/0.106, allocations: 103.3 kB / 344.8 MB, free: 8.184 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.47e-05/0.1061, allocations: 40 kB / 344.9 MB, free: 8.145 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.0002512/0.1064, allocations: 173.5 kB / 345 MB, free: 7.965 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001741/0.1065, allocations: 255.7 kB / 345.3 MB, free: 7.715 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000983/0.1075, allocations: 0.8158 MB / 346.1 MB, free: 6.887 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.759e-06/0.1075, allocations: 4 kB / 346.1 MB, free: 6.883 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.523e-06/0.1075, allocations: 3.938 kB / 346.1 MB, free: 6.879 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.669e-06/0.1075, allocations: 4 kB / 346.1 MB, free: 6.875 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001325/0.1088, allocations: 1.613 MB / 347.7 MB, free: 5.219 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.63e-05/0.1089, allocations: 8 kB / 347.7 MB, free: 5.211 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002471/0.1091, allocations: 103.9 kB / 347.8 MB, free: 5.109 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.948e-06/0.1091, allocations: 4 kB / 347.8 MB, free: 5.105 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.718e-05/0.1092, allocations: 11.98 kB / 347.9 MB, free: 5.094 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.106e-06/0.1092, allocations: 4 kB / 347.9 MB, free: 5.09 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.252e-06/0.1092, allocations: 0 / 347.9 MB, free: 5.09 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005655/0.1097, allocations: 0.6419 MB / 348.5 MB, free: 4.422 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000348/0.1101, allocations: 417.2 kB / 348.9 MB, free: 4.012 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001547/0.1102, allocations: 8 kB / 348.9 MB, free: 4.004 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003055/0.1105, allocations: 15.98 kB / 348.9 MB, free: 3.988 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.924e-05/0.1106, allocations: 47.8 kB / 349 MB, free: 3.941 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.552e-05/0.1107, allocations: 23.98 kB / 349 MB, free: 3.918 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.001065/0.1117, allocations: 1.495 MB / 350.5 MB, free: 2.426 MB / 330.7 MB Notification: Performance of sort global known variables: time 7e-08/0.1117, allocations: 0 / 350.5 MB, free: 2.426 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0007627/0.1125, allocations: 0.6008 MB / 351.1 MB, free: 1.824 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.0008532/0.1134, allocations: 0.9268 MB / 352 MB, free: 0.8867 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0004542/0.1138, allocations: 464 kB / 352.5 MB, free: 416 kB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 3.704e-05/0.1139, allocations: 40.5 kB / 352.5 MB, free: 376 kB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000222/0.1141, allocations: 242.6 kB / 352.8 MB, free: 104 kB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.09625/0.2103, allocations: 0.5512 MB / 353.3 MB, free: 77.16 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003732/0.2141, allocations: 4.194 MB / 357.5 MB, free: 75.08 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000255/0.2143, allocations: 408.8 kB / 357.9 MB, free: 74.98 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 0.0005538/0.2149, allocations: 361.1 kB / 358.3 MB, free: 74.95 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007331/0.2156, allocations: 0.5949 MB / 358.8 MB, free: 74.91 MB / 330.7 MB Notification: Performance of SimCode: time 1.814e-06/0.2156, allocations: 0 / 358.8 MB, free: 74.91 MB / 330.7 MB Notification: Performance of Templates: time 0.03562/0.2512, allocations: 38.47 MB / 397.3 MB, free: 45.55 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 -s gbode -gbm=radauIIA3 -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.3031423171050847]