Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0007801/0.0007801, allocations: 76.08 kB / 21.43 MB, free: 3.121 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.003061/0.003061, allocations: 141.3 kB / 24.68 MB, free: 8.914 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 0.8392/0.8392, allocations: 173.4 MB / 201.2 MB, free: 9.449 MB / 186.7 MB " [Timeout remaining time 179] Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.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.0.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.0.0_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.262e-06/1.262e-06, allocations: 0 / 319.7 MB, free: 5.887 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.633e-05/1.759e-05, allocations: 2.281 kB / 319.7 MB, free: 5.883 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.InvertersExtendedModel): time 0.007754/0.007771, allocations: 12.89 MB / 332.6 MB, free: 8.938 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.01396/0.02173, allocations: 17.93 MB / 350.5 MB, free: 6.93 MB / 314.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009053/0.02264, allocations: 138.5 kB / 350.6 MB, free: 6.793 MB / 314.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001675/0.02432, allocations: 1.176 MB / 351.8 MB, free: 5.609 MB / 314.7 MB Notification: Performance of NFTyping.typeBindings: time 0.003401/0.02772, allocations: 2.475 MB / 354.3 MB, free: 3.113 MB / 314.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001988/0.0297, allocations: 1.433 MB / 355.7 MB, free: 1.676 MB / 314.7 MB Notification: Performance of NFFlatten.flatten: time 0.004885/0.03459, allocations: 6.838 MB / 362.6 MB, free: 10.81 MB / 330.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003689/0.03496, allocations: 266.3 kB / 362.8 MB, free: 10.52 MB / 330.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001078/0.03604, allocations: 1.605 MB / 364.4 MB, free: 8.914 MB / 330.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006345/0.03667, allocations: 0.8134 MB / 365.2 MB, free: 8.098 MB / 330.7 MB Notification: Performance of NFPackage.collectConstants: time 9.349e-05/0.03676, allocations: 76 kB / 365.3 MB, free: 8.023 MB / 330.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001712/0.03848, allocations: 1.21 MB / 366.5 MB, free: 6.812 MB / 330.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001729/0.03865, allocations: 337.5 kB / 366.8 MB, free: 6.48 MB / 330.7 MB Notification: Performance of NFVerifyModel.verify: time 0.000484/0.03913, allocations: 0.7592 MB / 367.6 MB, free: 5.719 MB / 330.7 MB Notification: Performance of NFConvertDAE.convert: time 0.002641/0.04177, allocations: 3.955 MB / 371.6 MB, free: 1.75 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.564e-06/0.04178, allocations: 0 / 371.6 MB, free: 1.75 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.173e-06/0.04178, allocations: 4 kB / 371.6 MB, free: 1.746 MB / 330.7 MB Notification: Performance of Transformations before backend: time 2.192e-05/0.0418, allocations: 0 / 371.6 MB, free: 1.746 MB / 330.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.002863/0.04466, allocations: 3.843 MB / 375.4 MB, free: 13.84 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.476e-05/0.0447, allocations: 12.92 kB / 375.4 MB, free: 13.83 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002644/0.04496, allocations: 441.2 kB / 375.9 MB, free: 13.4 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002023/0.04699, allocations: 2.353 MB / 378.2 MB, free: 10.95 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.672e-05/0.04701, allocations: 37 kB / 378.2 MB, free: 10.91 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.499e-05/0.0471, allocations: 59.83 kB / 378.3 MB, free: 10.86 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007951/0.04789, allocations: 0.7343 MB / 379 MB, free: 10.12 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.331e-05/0.04791, allocations: 0 / 379 MB, free: 10.12 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.331e-05/0.04795, allocations: 23.98 kB / 379.1 MB, free: 10.09 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.444e-05/0.04796, allocations: 23.98 kB / 379.1 MB, free: 10.07 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000896/0.04886, allocations: 0.8124 MB / 379.9 MB, free: 9.258 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002794/0.05165, allocations: 2.793 MB / 382.7 MB, free: 6.414 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000645/0.0523, allocations: 0.5125 MB / 383.2 MB, free: 5.895 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005568/0.05286, allocations: 0.5731 MB / 383.8 MB, free: 5.316 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01379/0.06664, allocations: 13.71 MB / 397.5 MB, free: 7.227 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000454/0.0671, allocations: 365.8 kB / 397.8 MB, free: 6.855 MB / 362.7 MB Notification: Performance of pre-optimization done (n=49): time 1.783e-06/0.0671, allocations: 0 / 397.8 MB, free: 6.855 MB / 362.7 MB Notification: Performance of matching and sorting (n=49): time 0.001288/0.06839, allocations: 1.135 MB / 399 MB, free: 5.711 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.815e-05/0.06842, allocations: 55.41 kB / 399 MB, free: 5.645 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00233/0.07075, allocations: 3.102 MB / 402.1 MB, free: 2.543 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 3.377e-05/0.07079, allocations: 33.7 kB / 402.2 MB, free: 2.504 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008584/0.07165, allocations: 1.593 MB / 403.8 MB, free: 0.9023 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.571e-05/0.07174, allocations: 170.6 kB / 403.9 MB, free: 0.7344 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001851/0.07193, allocations: 226.4 kB / 404.1 MB, free: 0.5078 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 8.277e-05/0.07201, allocations: 338 kB / 404.5 MB, free: 176 kB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003303/0.07234, allocations: 241.8 kB / 404.7 MB, free: 15.93 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004695/0.07281, allocations: 0.6017 MB / 405.3 MB, free: 15.16 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008224/0.07363, allocations: 0.9022 MB / 406.2 MB, free: 14.08 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.039e-06/0.07364, allocations: 4 kB / 406.2 MB, free: 14.08 MB / 378.7 MB Notification: Performance of matching and sorting (n=110) (initialization): time 0.001179/0.07482, allocations: 1.268 MB / 407.5 MB, free: 12.8 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.831e-05/0.07483, allocations: 11.94 kB / 407.5 MB, free: 12.79 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.928e-05/0.07489, allocations: 84 kB / 407.6 MB, free: 12.71 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.137e-05/0.07492, allocations: 16 kB / 407.6 MB, free: 12.69 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003671/0.07528, allocations: 195.7 kB / 407.8 MB, free: 12.5 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.789e-05/0.0753, allocations: 31.84 kB / 407.8 MB, free: 12.47 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004664/0.07577, allocations: 119.4 kB / 407.9 MB, free: 12.35 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.804e-05/0.07584, allocations: 67.98 kB / 408 MB, free: 12.29 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.0004676/0.0763, allocations: 449.5 kB / 408.4 MB, free: 11.84 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002165/0.07652, allocations: 417.3 kB / 408.8 MB, free: 11.43 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001464/0.07798, allocations: 1.216 MB / 410.1 MB, free: 10.2 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.35e-06/0.07799, allocations: 4 kB / 410.1 MB, free: 10.2 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.189e-06/0.07799, allocations: 4 kB / 410.1 MB, free: 10.19 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.258e-06/0.078, allocations: 0 / 410.1 MB, free: 10.19 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0019/0.0799, allocations: 1.985 MB / 412 MB, free: 8.16 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.929e-05/0.07995, allocations: 75.94 kB / 412.1 MB, free: 8.086 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00023/0.08018, allocations: 91.86 kB / 412.2 MB, free: 7.996 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.737e-06/0.08018, allocations: 4 kB / 412.2 MB, free: 7.992 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.344e-05/0.08021, allocations: 36.05 kB / 412.3 MB, free: 7.957 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.174e-06/0.08022, allocations: 0 / 412.3 MB, free: 7.957 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.494e-06/0.08022, allocations: 7.938 kB / 412.3 MB, free: 7.949 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00125/0.08147, allocations: 1.337 MB / 413.6 MB, free: 6.586 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003974/0.08187, allocations: 443 kB / 414 MB, free: 6.152 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001463/0.08201, allocations: 15.98 kB / 414 MB, free: 6.137 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003466/0.08236, allocations: 23.97 kB / 414.1 MB, free: 6.113 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001051/0.08246, allocations: 63.92 kB / 414.1 MB, free: 6.051 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.87e-05/0.0825, allocations: 36 kB / 414.2 MB, free: 6.016 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.001517/0.08402, allocations: 2.007 MB / 416.2 MB, free: 4.016 MB / 378.7 MB Notification: Performance of sort global known variables: time 9e-08/0.08402, allocations: 4 kB / 416.2 MB, free: 4.012 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0007946/0.08482, allocations: 0.5969 MB / 416.8 MB, free: 3.414 MB / 378.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.00075/0.08557, allocations: 0.8192 MB / 417.6 MB, free: 2.59 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.000869/0.08643, allocations: 0.787 MB / 418.4 MB, free: 1.777 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 1.934e-06/0.08644, allocations: 0 / 418.4 MB, free: 1.777 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004032/0.08684, allocations: 423.3 kB / 418.8 MB, free: 1.34 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001349/0.08819, allocations: 0.6436 MB / 419.4 MB, free: 0.6914 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003732/0.09192, allocations: 4.563 MB / 424 MB, free: 12.08 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006757/0.0926, allocations: 1.166 MB / 425.2 MB, free: 10.88 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001618/0.09276, allocations: 156.5 kB / 425.3 MB, free: 10.72 MB / 394.7 MB Notification: Performance of SimCode: time 5.61e-07/0.09276, allocations: 0 / 425.3 MB, free: 10.72 MB / 394.7 MB Notification: Performance of Templates: time 0.15/0.2428, allocations: 40.31 MB / 465.6 MB, free: 112.9 MB / 410.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.makefile [Timeout 660] (rm -f Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.sim & ./Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Spice3/Examples/InvertersExtendedModel/InvertersExtendedModel.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.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: 7.069368272088468]