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.0009358/0.0009358, allocations: 80.8 kB / 21.49 MB, free: 2.992 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.001269/0.001269, allocations: 170.4 kB / 24.91 MB, free: 9.191 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.9473/0.9473, allocations: 177.1 MB / 205.3 MB, free: 5.492 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.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.583e-06/1.583e-06, allocations: 0 / 273.5 MB, free: 1.285 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.514e-05/1.672e-05, allocations: 2.312 kB / 273.5 MB, free: 1.281 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.InvertersExtendedModel): time 0.01069/0.01071, allocations: 14.3 MB / 287.8 MB, free: 2.922 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.1194/0.1301, allocations: 19.9 MB / 307.7 MB, free: 9.59 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002266/0.1324, allocations: 137.4 kB / 307.8 MB, free: 9.496 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.002603/0.135, allocations: 1.207 MB / 309 MB, free: 8.895 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.006435/0.1414, allocations: 2.432 MB / 311.4 MB, free: 7.34 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.003602/0.145, allocations: 1.418 MB / 312.9 MB, free: 6.246 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.005527/0.1506, allocations: 6.98 MB / 319.8 MB, free: 2.566 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004972/0.1511, allocations: 299 kB / 320.1 MB, free: 2.234 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002404/0.1535, allocations: 3.091 MB / 323.2 MB, free: 15.14 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0009072/0.1544, allocations: 0.8485 MB / 324.1 MB, free: 14.29 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001483/0.1545, allocations: 76 kB / 324.2 MB, free: 14.21 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002648/0.1572, allocations: 1.256 MB / 325.4 MB, free: 12.95 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 0.000188/0.1574, allocations: 349.4 kB / 325.8 MB, free: 12.61 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0006768/0.158, allocations: 0.7632 MB / 326.5 MB, free: 11.84 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.002779/0.1608, allocations: 2.875 MB / 329.4 MB, free: 8.957 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.72e-06/0.1608, allocations: 4 kB / 329.4 MB, free: 8.953 MB / 282.7 MB Notification: Performance of FrontEnd: time 1.182e-06/0.1608, allocations: 0 / 329.4 MB, free: 8.953 MB / 282.7 MB Notification: Performance of Transformations before backend: time 6.035e-05/0.1609, allocations: 3.938 kB / 329.4 MB, free: 8.949 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.002882/0.1638, allocations: 3.826 MB / 333.2 MB, free: 5.07 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.944e-05/0.1638, allocations: 8.031 kB / 333.2 MB, free: 5.062 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002857/0.1641, allocations: 293.6 kB / 333.5 MB, free: 4.777 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001943/0.166, allocations: 2.116 MB / 335.6 MB, free: 2.551 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.611e-05/0.1661, allocations: 36.94 kB / 335.7 MB, free: 2.512 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.563e-05/0.1661, allocations: 51.95 kB / 335.7 MB, free: 2.461 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005249/0.1667, allocations: 467.5 kB / 336.2 MB, free: 1.996 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.121e-05/0.1667, allocations: 0 / 336.2 MB, free: 1.996 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.894e-05/0.1667, allocations: 23.94 kB / 336.2 MB, free: 1.973 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.6e-05/0.1667, allocations: 19.98 kB / 336.2 MB, free: 1.953 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003457/0.1671, allocations: 228.5 kB / 336.4 MB, free: 1.734 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002278/0.1694, allocations: 1.564 MB / 338 MB, free: 136 kB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003025/0.1697, allocations: 280.9 kB / 338.3 MB, free: 15.85 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002816/0.1699, allocations: 326.9 kB / 338.6 MB, free: 15.53 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02296/0.1929, allocations: 23.02 MB / 361.6 MB, free: 7.645 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002591/0.1932, allocations: 221.8 kB / 361.8 MB, free: 7.414 MB / 314.7 MB Notification: Performance of pre-optimization done (n=49): time 2.224e-06/0.1932, allocations: 0 / 361.8 MB, free: 7.414 MB / 314.7 MB Notification: Performance of matching and sorting (n=49): time 0.0005537/0.1937, allocations: 491.2 kB / 362.3 MB, free: 6.934 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.287e-05/0.1937, allocations: 67.39 kB / 362.4 MB, free: 6.855 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001595/0.1953, allocations: 2.787 MB / 365.2 MB, free: 4.062 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 3.51e-05/0.1954, allocations: 41.7 kB / 365.2 MB, free: 4.016 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004082/0.1958, allocations: 0.7806 MB / 366 MB, free: 3.223 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.316e-05/0.1959, allocations: 170.6 kB / 366.2 MB, free: 3.055 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001548/0.196, allocations: 190.3 kB / 366.3 MB, free: 2.863 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 8.019e-05/0.1961, allocations: 345.8 kB / 366.7 MB, free: 2.52 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001044/0.1962, allocations: 72.59 kB / 366.8 MB, free: 2.449 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002647/0.1965, allocations: 464.2 kB / 367.2 MB, free: 1.816 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004607/0.1969, allocations: 0.6131 MB / 367.8 MB, free: 1.031 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.462e-06/0.1969, allocations: 8 kB / 367.8 MB, free: 1.023 MB / 314.7 MB Notification: Performance of matching and sorting (n=110) (initialization): time 0.0008884/0.1978, allocations: 0.7043 MB / 368.5 MB, free: 324 kB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.81e-05/0.1979, allocations: 8 kB / 368.5 MB, free: 316 kB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.187e-05/0.1979, allocations: 20 kB / 368.6 MB, free: 296 kB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.886e-05/0.1979, allocations: 20 kB / 368.6 MB, free: 276 kB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004202/0.1983, allocations: 224.1 kB / 368.8 MB, free: 52 kB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.401e-05/0.1984, allocations: 27.86 kB / 368.8 MB, free: 24 kB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000443/0.1988, allocations: 107.2 kB / 368.9 MB, free: 15.92 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.347e-05/0.1989, allocations: 40 kB / 369 MB, free: 15.88 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.0002594/0.1991, allocations: 166.3 kB / 369.1 MB, free: 15.71 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001791/0.1993, allocations: 259.7 kB / 369.4 MB, free: 15.45 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001012/0.2003, allocations: 0.7935 MB / 370.2 MB, free: 14.65 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.421e-06/0.2003, allocations: 8 kB / 370.2 MB, free: 14.64 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.483e-06/0.2003, allocations: 4 kB / 370.2 MB, free: 14.64 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.933e-06/0.2003, allocations: 7.922 kB / 370.2 MB, free: 14.63 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001396/0.2017, allocations: 1.594 MB / 371.8 MB, free: 13 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.12e-05/0.2018, allocations: 11.98 kB / 371.8 MB, free: 12.98 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002588/0.202, allocations: 103.9 kB / 371.9 MB, free: 12.88 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.546e-06/0.202, allocations: 0 / 371.9 MB, free: 12.88 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.151e-05/0.2021, allocations: 19.92 kB / 371.9 MB, free: 12.86 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.388e-06/0.2021, allocations: 6.75 kB / 371.9 MB, free: 12.86 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.462e-06/0.2021, allocations: 3.938 kB / 371.9 MB, free: 12.86 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005924/0.2027, allocations: 0.6338 MB / 372.6 MB, free: 12.2 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003617/0.203, allocations: 409.1 kB / 373 MB, free: 11.8 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001642/0.2032, allocations: 11.94 kB / 373 MB, free: 11.79 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000319/0.2035, allocations: 28.02 kB / 373 MB, free: 11.76 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001005/0.2036, allocations: 43.86 kB / 373.1 MB, free: 11.71 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.505e-05/0.2036, allocations: 12 kB / 373.1 MB, free: 11.7 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0009443/0.2046, allocations: 1.487 MB / 374.6 MB, free: 10.22 MB / 330.7 MB Notification: Performance of sort global known variables: time 8e-08/0.2046, allocations: 0 / 374.6 MB, free: 10.22 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0008428/0.2054, allocations: 0.6086 MB / 375.2 MB, free: 9.609 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.001142/0.2066, allocations: 0.9313 MB / 376.1 MB, free: 8.668 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0004663/0.207, allocations: 458.2 kB / 376.5 MB, free: 8.195 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 2.803e-05/0.2071, allocations: 40.5 kB / 376.6 MB, free: 8.152 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002116/0.2073, allocations: 248.9 kB / 376.8 MB, free: 7.883 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001295/0.2086, allocations: 0.6351 MB / 377.5 MB, free: 7.246 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003291/0.2119, allocations: 4.18 MB / 381.6 MB, free: 3 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002331/0.2121, allocations: 398.4 kB / 382 MB, free: 2.59 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 0.0005554/0.2127, allocations: 361.3 kB / 382.4 MB, free: 2.23 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001079/0.2137, allocations: 0.5927 MB / 383 MB, free: 1.633 MB / 330.7 MB Notification: Performance of SimCode: time 1.052e-06/0.2137, allocations: 0 / 383 MB, free: 1.633 MB / 330.7 MB Notification: Performance of Templates: time 0.08499/0.2987, allocations: 38.34 MB / 421.3 MB, free: 11.88 MB / 378.7 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=240 -s gbode -gbm=radauIIA3 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.pipe 2>&1) [Timeout 240] 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","",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.409579450264573]