Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_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.001275/0.001275, allocations: 84.3 kB / 20.68 MB, free: 1.035 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.00146/0.00146, allocations: 168.8 kB / 23.95 MB, free: 4.172 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.447/1.447, allocations: 177.2 MB / 204.3 MB, free: 9.191 MB / 190.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.InvertersExtendedModel,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.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_4.1.0_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.262e-06/1.262e-06, allocations: 0 / 325.1 MB, free: 0.5625 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.118e-05/2.244e-05, allocations: 3.656 kB / 325.1 MB, free: 0.5586 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.InvertersExtendedModel): time 0.01462/0.01465, allocations: 12.91 MB / 338 MB, free: 7.441 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.03058/0.04523, allocations: 17.97 MB / 355.9 MB, free: 6.203 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002945/0.04818, allocations: 138.6 kB / 356.1 MB, free: 6.066 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003596/0.05177, allocations: 1.172 MB / 357.2 MB, free: 4.887 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.008395/0.06017, allocations: 2.475 MB / 359.7 MB, free: 2.391 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004465/0.06463, allocations: 1.441 MB / 361.2 MB, free: 0.9453 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.01175/0.07638, allocations: 6.909 MB / 368.1 MB, free: 10.01 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007652/0.07714, allocations: 266.3 kB / 368.3 MB, free: 9.727 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002452/0.07959, allocations: 1.613 MB / 369.9 MB, free: 8.109 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001233/0.08083, allocations: 0.8134 MB / 370.8 MB, free: 7.293 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000202/0.08103, allocations: 76 kB / 370.8 MB, free: 7.219 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003454/0.08448, allocations: 1.213 MB / 372 MB, free: 6.004 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003723/0.08486, allocations: 341.4 kB / 372.4 MB, free: 5.668 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001206/0.08606, allocations: 0.7632 MB / 373.1 MB, free: 4.902 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005644/0.09171, allocations: 3.955 MB / 377.1 MB, free: 0.9336 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.709e-06/0.09171, allocations: 0 / 377.1 MB, free: 0.9336 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.984e-06/0.09171, allocations: 0 / 377.1 MB, free: 0.9336 MB / 334.1 MB Notification: Performance of Transformations before backend: time 6.352e-05/0.09178, allocations: 0 / 377.1 MB, free: 0.9336 MB / 334.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.005819/0.0976, allocations: 3.847 MB / 380.9 MB, free: 13.03 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.887e-05/0.09763, allocations: 8.031 kB / 380.9 MB, free: 13.02 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005138/0.09815, allocations: 433.2 kB / 381.4 MB, free: 12.59 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00375/0.1019, allocations: 2.349 MB / 383.7 MB, free: 10.15 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.394e-05/0.1019, allocations: 37 kB / 383.8 MB, free: 10.11 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001323/0.1021, allocations: 59.88 kB / 383.8 MB, free: 10.05 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001474/0.1035, allocations: 0.7343 MB / 384.6 MB, free: 9.312 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.532e-05/0.1036, allocations: 4 kB / 384.6 MB, free: 9.309 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.315e-05/0.1036, allocations: 20 kB / 384.6 MB, free: 9.289 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.098e-05/0.1037, allocations: 23.98 kB / 384.6 MB, free: 9.266 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001768/0.1054, allocations: 0.8085 MB / 385.4 MB, free: 8.461 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005444/0.1109, allocations: 2.8 MB / 388.2 MB, free: 5.609 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001292/0.1122, allocations: 0.5203 MB / 388.7 MB, free: 5.082 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001057/0.1132, allocations: 0.5692 MB / 389.3 MB, free: 4.504 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02609/0.1393, allocations: 13.72 MB / 403 MB, free: 6.402 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008642/0.1402, allocations: 370 kB / 403.4 MB, free: 6.027 MB / 366.1 MB Notification: Performance of pre-optimization done (n=49): time 2.485e-06/0.1402, allocations: 0 / 403.4 MB, free: 6.027 MB / 366.1 MB Notification: Performance of matching and sorting (n=49): time 0.002606/0.1428, allocations: 1.127 MB / 404.5 MB, free: 4.891 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.34e-05/0.1428, allocations: 63.34 kB / 404.6 MB, free: 4.816 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004092/0.1469, allocations: 3.106 MB / 407.7 MB, free: 1.711 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 6.846e-05/0.147, allocations: 41.7 kB / 407.7 MB, free: 1.664 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001529/0.1485, allocations: 1.582 MB / 409.3 MB, free: 76 kB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001929/0.1487, allocations: 174.8 kB / 409.5 MB, free: 15.9 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003269/0.149, allocations: 226.4 kB / 409.7 MB, free: 15.67 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001915/0.1492, allocations: 337.9 kB / 410 MB, free: 15.34 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006562/0.1499, allocations: 241.8 kB / 410.3 MB, free: 15.1 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001002/0.1509, allocations: 0.6057 MB / 410.9 MB, free: 14.32 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001629/0.1525, allocations: 0.8945 MB / 411.8 MB, free: 13.25 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.546e-06/0.1525, allocations: 4 kB / 411.8 MB, free: 13.25 MB / 382.1 MB Notification: Performance of matching and sorting (n=110) (initialization): time 0.002397/0.1549, allocations: 1.264 MB / 413 MB, free: 11.98 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.551e-05/0.155, allocations: 15.75 kB / 413 MB, free: 11.97 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001159/0.1551, allocations: 83.98 kB / 413.1 MB, free: 11.89 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.257e-05/0.1551, allocations: 16 kB / 413.1 MB, free: 11.87 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000782/0.1559, allocations: 207.9 kB / 413.3 MB, free: 11.67 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.813e-05/0.1559, allocations: 27.92 kB / 413.4 MB, free: 11.64 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001117/0.157, allocations: 111.3 kB / 413.5 MB, free: 11.53 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001359/0.1572, allocations: 72 kB / 413.5 MB, free: 11.46 MB / 382.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.0008501/0.158, allocations: 445.5 kB / 414 MB, free: 11.02 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004376/0.1585, allocations: 421.3 kB / 414.4 MB, free: 10.6 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002913/0.1614, allocations: 1.212 MB / 415.6 MB, free: 9.379 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.636e-06/0.1614, allocations: 4 kB / 415.6 MB, free: 9.375 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.23e-06/0.1614, allocations: 0 / 415.6 MB, free: 9.375 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.536e-06/0.1614, allocations: 3.984 kB / 415.6 MB, free: 9.371 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003522/0.1649, allocations: 1.985 MB / 417.6 MB, free: 7.336 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001168/0.165, allocations: 68 kB / 417.7 MB, free: 7.27 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005297/0.1656, allocations: 91.91 kB / 417.8 MB, free: 7.18 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.763e-06/0.1656, allocations: 12 kB / 417.8 MB, free: 7.168 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.168e-05/0.1656, allocations: 35.94 kB / 417.8 MB, free: 7.133 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.581e-06/0.1656, allocations: 4 kB / 417.8 MB, free: 7.129 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.804e-06/0.1656, allocations: 3.938 kB / 417.8 MB, free: 7.125 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002491/0.1681, allocations: 1.344 MB / 419.2 MB, free: 5.754 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000756/0.1689, allocations: 431.1 kB / 419.6 MB, free: 5.332 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003198/0.1692, allocations: 8 kB / 419.6 MB, free: 5.324 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007423/0.1699, allocations: 31.95 kB / 419.6 MB, free: 5.293 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001764/0.1701, allocations: 63.88 kB / 419.7 MB, free: 5.23 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.057e-05/0.1702, allocations: 44.05 kB / 419.7 MB, free: 5.188 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.002715/0.1729, allocations: 2.01 MB / 421.7 MB, free: 3.184 MB / 382.1 MB Notification: Performance of sort global known variables: time 7e-08/0.1729, allocations: 0 / 421.7 MB, free: 3.184 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.001357/0.1743, allocations: 0.6008 MB / 422.3 MB, free: 2.582 MB / 382.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.001253/0.1755, allocations: 0.8199 MB / 423.1 MB, free: 1.75 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.001736/0.1773, allocations: 0.7751 MB / 423.9 MB, free: 0.957 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.275e-06/0.1773, allocations: 0 / 423.9 MB, free: 0.957 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008427/0.1781, allocations: 431 kB / 424.3 MB, free: 0.5078 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002758/0.1809, allocations: 0.6429 MB / 425 MB, free: 15.86 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006642/0.1875, allocations: 4.498 MB / 429.5 MB, free: 11.32 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001157/0.1887, allocations: 1.169 MB / 430.7 MB, free: 10.11 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.001106/0.1898, allocations: 361.3 kB / 431 MB, free: 9.754 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002544/0.19, allocations: 148.5 kB / 431.2 MB, free: 9.609 MB / 398.1 MB Notification: Performance of SimCode: time 8.82e-07/0.19, allocations: 0 / 431.2 MB, free: 9.609 MB / 398.1 MB Notification: Performance of Templates: time 0.06259/0.2526, allocations: 33.11 MB / 464.3 MB, free: 9.031 MB / 430.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.pipe ; mkfifo Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.pipe >> ../files/Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.sim & ./Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Spice3/Examples/InvertersExtendedModel/InvertersExtendedModel.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.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.588451646268368]