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.00131/0.00131, allocations: 68.08 kB / 21.24 MB, free: 404 kB / 14.72 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.001341/0.001341, allocations: 156.5 kB / 24.48 MB, free: 3.461 MB / 14.72 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 1.376/1.376, allocations: 173.4 MB / 201.1 MB, free: 12.72 MB / 190.1 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 0.001543/0.001543, allocations: 46.42 kB / 319.4 MB, free: 3.285 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08057/0.08211, allocations: 52.17 MB / 371.6 MB, free: 7.383 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.InvertersExtendedModel): time 0.01453/0.09664, allocations: 12.9 MB / 384.5 MB, free: 10.43 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.02366/0.1203, allocations: 17.92 MB / 402.4 MB, free: 8.438 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001519/0.1218, allocations: 138.5 kB / 402.5 MB, free: 8.301 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002797/0.1246, allocations: 1.157 MB / 403.7 MB, free: 7.133 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006635/0.1313, allocations: 2.406 MB / 406.1 MB, free: 4.711 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003934/0.1352, allocations: 1.41 MB / 407.5 MB, free: 3.293 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.01005/0.1452, allocations: 6.673 MB / 414.2 MB, free: 12.6 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005307/0.1458, allocations: 266.3 kB / 414.4 MB, free: 12.31 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001526/0.1473, allocations: 1.194 MB / 415.6 MB, free: 11.11 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001462/0.1488, allocations: 1.094 MB / 416.7 MB, free: 10.01 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000205/0.149, allocations: 72 kB / 416.8 MB, free: 9.941 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003028/0.152, allocations: 1.202 MB / 418 MB, free: 8.738 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003647/0.1524, allocations: 337.5 kB / 418.3 MB, free: 8.406 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001154/0.1535, allocations: 1.044 MB / 419.4 MB, free: 7.355 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004698/0.1582, allocations: 4.04 MB / 423.4 MB, free: 3.297 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.918e-06/0.1582, allocations: 0 / 423.4 MB, free: 3.297 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.202e-06/0.1582, allocations: 3.938 kB / 423.4 MB, free: 3.293 MB / 382.1 MB Notification: Performance of Transformations before backend: time 3.593e-05/0.1583, allocations: 0 / 423.4 MB, free: 3.293 MB / 382.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.005613/0.1639, allocations: 3.886 MB / 427.3 MB, free: 15.35 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.319e-05/0.1639, allocations: 8.922 kB / 427.3 MB, free: 15.34 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004683/0.1644, allocations: 437.2 kB / 427.7 MB, free: 14.91 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003662/0.168, allocations: 2.345 MB / 430.1 MB, free: 12.47 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.304e-05/0.1681, allocations: 52.91 kB / 430.1 MB, free: 12.42 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001286/0.1682, allocations: 55.89 kB / 430.2 MB, free: 12.36 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00142/0.1696, allocations: 0.7343 MB / 430.9 MB, free: 11.62 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.644e-05/0.1696, allocations: 0 / 430.9 MB, free: 11.62 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.807e-05/0.1697, allocations: 16 kB / 430.9 MB, free: 11.61 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.251e-05/0.1697, allocations: 19.98 kB / 430.9 MB, free: 11.59 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00171/0.1714, allocations: 0.8163 MB / 431.8 MB, free: 10.77 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005084/0.1765, allocations: 2.804 MB / 434.6 MB, free: 7.918 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001252/0.1778, allocations: 0.5163 MB / 435.1 MB, free: 7.387 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001048/0.1788, allocations: 0.5692 MB / 435.7 MB, free: 6.812 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02555/0.2044, allocations: 13.71 MB / 449.4 MB, free: 8.719 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007871/0.2052, allocations: 362 kB / 449.7 MB, free: 8.355 MB / 414.1 MB Notification: Performance of pre-optimization done (n=49): time 2.194e-06/0.2052, allocations: 0 / 449.7 MB, free: 8.355 MB / 414.1 MB Notification: Performance of matching and sorting (n=49): time 0.002347/0.2075, allocations: 1.131 MB / 450.8 MB, free: 7.215 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.665e-05/0.2076, allocations: 63.33 kB / 450.9 MB, free: 7.141 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00374/0.2113, allocations: 3.106 MB / 454 MB, free: 4.035 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 5.197e-05/0.2113, allocations: 33.7 kB / 454 MB, free: 3.996 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001489/0.2128, allocations: 1.585 MB / 455.6 MB, free: 2.402 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000159/0.213, allocations: 178.5 kB / 455.8 MB, free: 2.227 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002975/0.2133, allocations: 230.4 kB / 456 MB, free: 1.996 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001533/0.2134, allocations: 342 kB / 456.4 MB, free: 1.656 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006338/0.2141, allocations: 241.8 kB / 456.6 MB, free: 1.418 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009064/0.215, allocations: 0.6017 MB / 457.2 MB, free: 0.6406 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001594/0.2166, allocations: 0.8984 MB / 458.1 MB, free: 15.57 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.37e-06/0.2166, allocations: 0 / 458.1 MB, free: 15.57 MB / 430.1 MB Notification: Performance of matching and sorting (n=110) (initialization): time 0.002197/0.2188, allocations: 1.268 MB / 459.4 MB, free: 14.3 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.252e-05/0.2188, allocations: 12 kB / 459.4 MB, free: 14.29 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001165/0.2189, allocations: 84.12 kB / 459.5 MB, free: 14.2 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.334e-05/0.219, allocations: 19.98 kB / 459.5 MB, free: 14.18 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007395/0.2197, allocations: 195.6 kB / 459.7 MB, free: 13.99 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.851e-05/0.2197, allocations: 27.86 kB / 459.7 MB, free: 13.96 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000894/0.2206, allocations: 115.3 kB / 459.8 MB, free: 13.85 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001079/0.2207, allocations: 67.98 kB / 459.9 MB, free: 13.79 MB / 430.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.0006715/0.2214, allocations: 449.5 kB / 460.3 MB, free: 13.34 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004269/0.2218, allocations: 425.3 kB / 460.7 MB, free: 12.92 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002664/0.2245, allocations: 1.212 MB / 461.9 MB, free: 11.7 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.694e-06/0.2245, allocations: 7.938 kB / 462 MB, free: 11.69 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.787e-06/0.2245, allocations: 4 kB / 462 MB, free: 11.68 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.719e-06/0.2245, allocations: 0 / 462 MB, free: 11.68 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00337/0.2279, allocations: 1.981 MB / 463.9 MB, free: 9.66 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001017/0.228, allocations: 68 kB / 464 MB, free: 9.594 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005031/0.2285, allocations: 91.86 kB / 464.1 MB, free: 9.504 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.51e-06/0.2285, allocations: 4 kB / 464.1 MB, free: 9.5 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.067e-05/0.2285, allocations: 31.98 kB / 464.1 MB, free: 9.469 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.384e-06/0.2285, allocations: 0 / 464.1 MB, free: 9.469 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.222e-06/0.2285, allocations: 4 kB / 464.1 MB, free: 9.465 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002461/0.231, allocations: 1.36 MB / 465.5 MB, free: 8.078 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008466/0.2319, allocations: 435 kB / 465.9 MB, free: 7.652 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002543/0.2321, allocations: 12 kB / 465.9 MB, free: 7.641 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000701/0.2328, allocations: 27.97 kB / 466 MB, free: 7.613 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001468/0.233, allocations: 59.92 kB / 466 MB, free: 7.555 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.982e-05/0.233, allocations: 36 kB / 466.1 MB, free: 7.52 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.002607/0.2356, allocations: 2.01 MB / 468.1 MB, free: 5.516 MB / 430.1 MB Notification: Performance of sort global known variables: time 9.1e-08/0.2356, allocations: 4 kB / 468.1 MB, free: 5.512 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.001292/0.2369, allocations: 0.593 MB / 468.7 MB, free: 4.918 MB / 430.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.001105/0.238, allocations: 0.7847 MB / 469.4 MB, free: 4.129 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.001601/0.2396, allocations: 0.7792 MB / 470.2 MB, free: 3.32 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 1.893e-06/0.2396, allocations: 0 / 470.2 MB, free: 3.32 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008113/0.2404, allocations: 431.6 kB / 470.6 MB, free: 2.875 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002525/0.243, allocations: 0.6357 MB / 471.3 MB, free: 2.234 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1556/0.3986, allocations: 4.576 MB / 475.9 MB, free: 93.4 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001103/0.3997, allocations: 1.161 MB / 477 MB, free: 93.21 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.001051/0.4008, allocations: 360 kB / 477.4 MB, free: 93.18 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002095/0.401, allocations: 154.2 kB / 477.5 MB, free: 93.18 MB / 430.1 MB Notification: Performance of SimCode: time 7.61e-07/0.401, allocations: 0.8438 kB / 477.5 MB, free: 93.18 MB / 430.1 MB Notification: Performance of Templates: time 0.045/0.446, allocations: 33.34 MB / 0.4989 GB, free: 68.35 MB / 430.1 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 -s ida -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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Spice3/Examples/InvertersExtendedModel/InvertersExtendedModel.csv","/var/lib/jenkins1/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: 5.508830780046992]