Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.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.0007622/0.0007622, allocations: 77.05 kB / 10 MB, free: 0.6836 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001141/0.001903, allocations: 449.8 kB / 10.44 MB, free: 252 kB / 10.45 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.00075/0.00075, allocations: 165.1 kB / 11.36 MB, free: 2.816 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001028/0.001778, allocations: 479.5 kB / 11.82 MB, free: 2.344 MB / 13.93 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.9578/0.9578, allocations: 177.2 MB / 189.8 MB, free: 5.262 MB / 186.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.1121/1.07, allocations: 53.66 MB / 243.4 MB, free: 15.52 MB / 250.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.InvertersApartRecord,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.InvertersApartRecord") translateModel(Modelica.Electrical.Spice3.Examples.InvertersApartRecord,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.InvertersApartRecord") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.933e-06/1.933e-06, allocations: 0 / 244.7 MB, free: 14.25 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.544e-05/2.737e-05, allocations: 2.312 kB / 244.7 MB, free: 14.24 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.InvertersApartRecord): time 0.01387/0.0139, allocations: 13.8 MB / 258.5 MB, free: 388 kB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.1406/0.1545, allocations: 19.91 MB / 278.4 MB, free: 0.6016 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001977/0.1565, allocations: 136.2 kB / 278.5 MB, free: 0.5977 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.002411/0.1589, allocations: 1.176 MB / 279.7 MB, free: 0.5352 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.006282/0.1652, allocations: 2.388 MB / 282.1 MB, free: 64 kB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.003791/0.169, allocations: 1.404 MB / 283.5 MB, free: 15.84 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.007317/0.1763, allocations: 6.722 MB / 290.2 MB, free: 14.52 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005851/0.1769, allocations: 297.3 kB / 290.5 MB, free: 14.37 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00354/0.1804, allocations: 3.524 MB / 294.1 MB, free: 13.8 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00103/0.1814, allocations: 0.8237 MB / 294.9 MB, free: 13.64 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 0.000228/0.1817, allocations: 71.53 kB / 294.9 MB, free: 13.64 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002672/0.1843, allocations: 1.272 MB / 296.2 MB, free: 13.51 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001823/0.1845, allocations: 264.2 kB / 296.5 MB, free: 13.38 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0006999/0.1852, allocations: 0.6792 MB / 297.2 MB, free: 13.23 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.002748/0.188, allocations: 2.636 MB / 299.8 MB, free: 11.09 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.358e-05/0.188, allocations: 0 / 299.8 MB, free: 11.09 MB / 282.7 MB Notification: Performance of FrontEnd: time 1.563e-06/0.188, allocations: 2.906 kB / 299.8 MB, free: 11.09 MB / 282.7 MB Notification: Performance of Transformations before backend: time 7.631e-05/0.1881, allocations: 0 / 299.8 MB, free: 11.09 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.003642/0.1917, allocations: 4.366 MB / 304.2 MB, free: 7.086 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.752e-05/0.1917, allocations: 8.031 kB / 304.2 MB, free: 7.078 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003372/0.1921, allocations: 283.6 kB / 304.4 MB, free: 6.801 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001983/0.1941, allocations: 2.058 MB / 306.5 MB, free: 4.73 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.452e-05/0.1941, allocations: 40.75 kB / 306.5 MB, free: 4.691 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.131e-05/0.1942, allocations: 53.52 kB / 306.6 MB, free: 4.641 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005221/0.1947, allocations: 467.5 kB / 307 MB, free: 4.172 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.121e-05/0.1947, allocations: 0 / 307 MB, free: 4.172 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.073e-05/0.1947, allocations: 20 kB / 307.1 MB, free: 4.152 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.668e-05/0.1948, allocations: 23.92 kB / 307.1 MB, free: 4.129 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003403/0.1951, allocations: 224.5 kB / 307.3 MB, free: 3.91 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002122/0.1972, allocations: 1.566 MB / 308.9 MB, free: 2.375 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003041/0.1975, allocations: 284.7 kB / 309.2 MB, free: 2.102 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002657/0.1978, allocations: 328 kB / 309.5 MB, free: 1.789 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02333/0.2211, allocations: 22.95 MB / 332.4 MB, free: 10.15 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002704/0.2214, allocations: 221.6 kB / 332.6 MB, free: 9.934 MB / 314.7 MB Notification: Performance of pre-optimization done (n=49): time 2.084e-06/0.2214, allocations: 0 / 332.6 MB, free: 9.934 MB / 314.7 MB Notification: Performance of matching and sorting (n=49): time 0.0005694/0.222, allocations: 481.2 kB / 333.1 MB, free: 9.465 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.272e-05/0.222, allocations: 58.5 kB / 333.2 MB, free: 9.398 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001521/0.2235, allocations: 2.666 MB / 335.8 MB, free: 7.273 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 3.728e-05/0.2235, allocations: 37.7 kB / 335.9 MB, free: 7.23 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003706/0.2239, allocations: 0.7493 MB / 336.6 MB, free: 6.637 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.501e-05/0.224, allocations: 177 kB / 336.8 MB, free: 6.477 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001505/0.2242, allocations: 196.8 kB / 337 MB, free: 6.297 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 7.653e-05/0.2242, allocations: 347.5 kB / 337.3 MB, free: 5.969 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.807e-05/0.2243, allocations: 73.97 kB / 337.4 MB, free: 5.895 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000249/0.2246, allocations: 455.4 kB / 337.8 MB, free: 5.301 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004653/0.2251, allocations: 0.6517 MB / 338.5 MB, free: 4.543 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.316e-06/0.2251, allocations: 4 kB / 338.5 MB, free: 4.539 MB / 314.7 MB Notification: Performance of matching and sorting (n=110) (initialization): time 0.0006407/0.2257, allocations: 0.6969 MB / 339.2 MB, free: 3.906 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.769e-05/0.2257, allocations: 8 kB / 339.2 MB, free: 3.898 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.052e-05/0.2258, allocations: 20 kB / 339.2 MB, free: 3.879 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.005e-05/0.2258, allocations: 20 kB / 339.2 MB, free: 3.859 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004329/0.2262, allocations: 235.6 kB / 339.5 MB, free: 3.629 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.535e-05/0.2262, allocations: 27.97 kB / 339.5 MB, free: 3.602 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004458/0.2267, allocations: 107.2 kB / 339.6 MB, free: 3.496 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.751e-05/0.2268, allocations: 43.94 kB / 339.7 MB, free: 3.453 MB / 314.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.0002646/0.227, allocations: 172 kB / 339.8 MB, free: 3.277 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001777/0.2272, allocations: 245.1 kB / 340.1 MB, free: 3.039 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001224/0.2284, allocations: 0.7846 MB / 340.8 MB, free: 2.254 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.22e-06/0.2284, allocations: 8 kB / 340.8 MB, free: 2.246 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.843e-06/0.2284, allocations: 0 / 340.8 MB, free: 2.246 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.62e-06/0.2284, allocations: 3.984 kB / 340.9 MB, free: 2.242 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001696/0.2301, allocations: 1.55 MB / 342.4 MB, free: 1.051 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.477e-05/0.2302, allocations: 11.98 kB / 342.4 MB, free: 1.039 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000345/0.2305, allocations: 103.9 kB / 342.5 MB, free: 0.9375 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004776/0.231, allocations: 392.1 kB / 342.9 MB, free: 0.5547 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.928e-06/0.231, allocations: 8.062 kB / 342.9 MB, free: 0.5469 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.679e-05/0.231, allocations: 11.94 kB / 342.9 MB, free: 0.5352 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.25e-06/0.2311, allocations: 4 kB / 342.9 MB, free: 0.5312 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.854e-06/0.2311, allocations: 0 / 342.9 MB, free: 0.5312 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007794/0.2318, allocations: 0.6357 MB / 343.6 MB, free: 15.88 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002231/0.2321, allocations: 8 kB / 343.6 MB, free: 15.87 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004913/0.2325, allocations: 27.92 kB / 343.6 MB, free: 15.84 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001162/0.2327, allocations: 39.92 kB / 343.6 MB, free: 15.8 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.45e-05/0.2327, allocations: 12.88 kB / 343.6 MB, free: 15.79 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.001177/0.2339, allocations: 1.42 MB / 345.1 MB, free: 14.55 MB / 330.7 MB Notification: Performance of sort global known variables: time 9.1e-08/0.2339, allocations: 0 / 345.1 MB, free: 14.55 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.001081/0.235, allocations: 0.5891 MB / 345.7 MB, free: 13.96 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.00113/0.2361, allocations: 0.9225 MB / 346.6 MB, free: 13.17 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0006162/0.2367, allocations: 484.4 kB / 347.1 MB, free: 12.69 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 5.097e-05/0.2368, allocations: 52 kB / 347.1 MB, free: 12.64 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003313/0.2371, allocations: 264.1 kB / 347.4 MB, free: 12.36 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003892/0.241, allocations: 6.245 MB / 353.6 MB, free: 4.906 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008968/0.25, allocations: 4.017 MB / 357.6 MB, free: 0.8398 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002937/0.2502, allocations: 384.7 kB / 358 MB, free: 456 kB / 330.7 MB Notification: Performance of simCode: alias equations: time 0.0007805/0.251, allocations: 361.1 kB / 358.3 MB, free: 88 kB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001273/0.2523, allocations: 0.5732 MB / 358.9 MB, free: 15.51 MB / 346.7 MB Notification: Performance of SimCode: time 8.62e-07/0.2523, allocations: 0 / 358.9 MB, free: 15.51 MB / 346.7 MB Notification: Performance of Templates: time 0.05187/0.3042, allocations: 38.58 MB / 397.5 MB, free: 9.508 MB / 378.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.pipe ; mkfifo Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.pipe >> ../files/Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.sim & ./Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.InvertersApartRecord -abortSlowSimulation -alarm=240 -emit_protected -ignoreHideResult -lv LOG_STATS > Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.InvertersApartRecord_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Spice3/Examples/InvertersApartRecord/InvertersApartRecord.csv","",relTol=0.003,relTolDiffMinMax=0.003,tube=OpenModelica.Scripting.TubeAlgorithm.rectangle) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 3.3092248486354947]