Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007572/0.0007572, allocations: 76.05 kB / 10 MB, free: 0.6836 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001074/0.001831, allocations: 457.8 kB / 10.45 MB, free: 244 kB / 10.45 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001138/0.001138, allocations: 162 kB / 11.36 MB, free: 2.816 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.00167/0.002808, allocations: 475.6 kB / 11.82 MB, free: 2.348 MB / 13.93 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 0.9885/0.9885, allocations: 177.5 MB / 190 MB, free: 4.777 MB / 186.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.08492/1.073, allocations: 53.87 MB / 243.9 MB, free: 14.83 MB / 250.7 MB " [Timeout remaining time 179] Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/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_trunk_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_trunk_Modelica.Electrical.Spice3.Examples.InvertersApartRecord") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.402e-06/1.402e-06, allocations: 0 / 245.2 MB, free: 13.57 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.059e-05/2.199e-05, allocations: 9.828 kB / 245.2 MB, free: 13.56 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.InvertersApartRecord): time 0.01238/0.01241, allocations: 13.8 MB / 259 MB, free: 15.7 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.1432/0.1557, allocations: 19.91 MB / 278.9 MB, free: 0.6055 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001879/0.1575, allocations: 133.1 kB / 279 MB, free: 0.6055 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.002492/0.16, allocations: 1.18 MB / 280.2 MB, free: 0.5352 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.006748/0.1668, allocations: 2.386 MB / 282.6 MB, free: 56 kB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.004262/0.171, allocations: 1.405 MB / 284 MB, free: 15.83 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.008297/0.1793, allocations: 6.728 MB / 290.7 MB, free: 14.52 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006572/0.18, allocations: 300.1 kB / 291 MB, free: 14.36 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004023/0.184, allocations: 3.529 MB / 294.6 MB, free: 13.78 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001333/0.1853, allocations: 0.8241 MB / 295.4 MB, free: 13.58 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0003016/0.1856, allocations: 74.22 kB / 295.5 MB, free: 13.58 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003611/0.1893, allocations: 1.263 MB / 296.7 MB, free: 13.37 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0002073/0.1895, allocations: 271.4 kB / 297 MB, free: 13.23 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0009346/0.1904, allocations: 0.6817 MB / 297.7 MB, free: 12.89 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.003461/0.1939, allocations: 2.629 MB / 300.3 MB, free: 10.74 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.594e-05/0.1939, allocations: 0 / 300.3 MB, free: 10.74 MB / 282.7 MB Notification: Performance of FrontEnd: time 1.994e-06/0.1939, allocations: 0 / 300.3 MB, free: 10.74 MB / 282.7 MB Notification: Performance of Transformations before backend: time 0.0001172/0.194, allocations: 0 / 300.3 MB, free: 10.74 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.003974/0.198, allocations: 4.363 MB / 304.7 MB, free: 6.633 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.892e-05/0.198, allocations: 12.61 kB / 304.7 MB, free: 6.621 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003403/0.1983, allocations: 279.7 kB / 304.9 MB, free: 6.348 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002016/0.2004, allocations: 2.06 MB / 307 MB, free: 4.262 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.267e-05/0.2004, allocations: 33 kB / 307 MB, free: 4.227 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.209e-05/0.2005, allocations: 58.2 kB / 307.1 MB, free: 4.172 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000518/0.201, allocations: 467.5 kB / 307.5 MB, free: 3.707 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.518e-06/0.201, allocations: 0 / 307.5 MB, free: 3.707 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.746e-05/0.201, allocations: 20 kB / 307.6 MB, free: 3.688 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.538e-05/0.201, allocations: 23.92 kB / 307.6 MB, free: 3.664 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003296/0.2014, allocations: 228.5 kB / 307.8 MB, free: 3.441 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002045/0.2034, allocations: 1.568 MB / 309.4 MB, free: 1.891 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002661/0.2037, allocations: 286.2 kB / 309.7 MB, free: 1.609 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002556/0.2039, allocations: 326.9 kB / 310 MB, free: 1.297 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02353/0.2275, allocations: 22.95 MB / 332.9 MB, free: 9.66 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002816/0.2277, allocations: 221.8 kB / 333.1 MB, free: 9.434 MB / 314.7 MB Notification: Performance of pre-optimization done (n=49): time 1.403e-06/0.2277, allocations: 0 / 333.1 MB, free: 9.434 MB / 314.7 MB Notification: Performance of matching and sorting (n=49): time 0.0006947/0.2284, allocations: 489.9 kB / 333.6 MB, free: 8.957 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.639e-05/0.2285, allocations: 55.41 kB / 333.7 MB, free: 8.891 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001862/0.2304, allocations: 2.665 MB / 336.3 MB, free: 6.766 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 3.777e-05/0.2304, allocations: 37.7 kB / 336.4 MB, free: 6.723 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003823/0.2308, allocations: 0.7512 MB / 337.1 MB, free: 6.129 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001008/0.2309, allocations: 180.3 kB / 337.3 MB, free: 5.965 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001575/0.231, allocations: 184 kB / 337.5 MB, free: 5.797 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 8.518e-05/0.2311, allocations: 352.1 kB / 337.8 MB, free: 5.465 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.99e-05/0.2312, allocations: 73.97 kB / 337.9 MB, free: 5.391 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002617/0.2315, allocations: 452 kB / 338.3 MB, free: 4.793 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004616/0.2319, allocations: 0.6614 MB / 339 MB, free: 3.984 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.881e-06/0.2319, allocations: 4 kB / 339 MB, free: 3.98 MB / 314.7 MB Notification: Performance of matching and sorting (n=110) (initialization): time 0.000666/0.2326, allocations: 0.6876 MB / 339.7 MB, free: 3.289 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.882e-05/0.2326, allocations: 12 kB / 339.7 MB, free: 3.277 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.28e-05/0.2327, allocations: 26.3 kB / 339.7 MB, free: 3.254 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.103e-05/0.2327, allocations: 20 kB / 339.8 MB, free: 3.234 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004388/0.2331, allocations: 235.6 kB / 340 MB, free: 3.004 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.411e-05/0.2332, allocations: 20.88 kB / 340 MB, free: 2.984 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005118/0.2337, allocations: 107.3 kB / 340.1 MB, free: 2.879 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.899e-05/0.2337, allocations: 43.94 kB / 340.2 MB, free: 2.836 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.0002568/0.234, allocations: 173.5 kB / 340.3 MB, free: 2.656 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000189/0.2342, allocations: 243.7 kB / 340.6 MB, free: 2.418 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001026/0.2352, allocations: 0.7785 MB / 341.3 MB, free: 1.637 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.041e-06/0.2352, allocations: 11.94 kB / 341.3 MB, free: 1.625 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.903e-06/0.2352, allocations: 0 / 341.3 MB, free: 1.625 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.98e-06/0.2352, allocations: 3.984 kB / 341.4 MB, free: 1.621 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001418/0.2366, allocations: 1.551 MB / 342.9 MB, free: 440 kB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.631e-05/0.2367, allocations: 8.875 kB / 342.9 MB, free: 432 kB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002574/0.2369, allocations: 107.9 kB / 343 MB, free: 324 kB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003879/0.2373, allocations: 393.4 kB / 343.4 MB, free: 15.93 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.336e-06/0.2373, allocations: 11.92 kB / 343.4 MB, free: 15.91 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.588e-05/0.2374, allocations: 11.75 kB / 343.4 MB, free: 15.91 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.006e-06/0.2374, allocations: 0 / 343.4 MB, free: 15.91 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.387e-06/0.2374, allocations: 5.312 kB / 343.4 MB, free: 15.9 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006174/0.238, allocations: 0.6372 MB / 344.1 MB, free: 15.25 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001506/0.2381, allocations: 8 kB / 344.1 MB, free: 15.24 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003145/0.2384, allocations: 27.92 kB / 344.1 MB, free: 15.21 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.95e-05/0.2385, allocations: 43.86 kB / 344.1 MB, free: 15.17 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.408e-05/0.2386, allocations: 15.98 kB / 344.2 MB, free: 15.15 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0009274/0.2395, allocations: 1.413 MB / 345.6 MB, free: 13.92 MB / 330.7 MB Notification: Performance of sort global known variables: time 6e-08/0.2395, allocations: 0 / 345.6 MB, free: 13.92 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0009106/0.2404, allocations: 0.5853 MB / 346.2 MB, free: 13.33 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.0009801/0.2414, allocations: 0.9278 MB / 347.1 MB, free: 12.54 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0005367/0.2419, allocations: 470.9 kB / 347.5 MB, free: 12.07 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 5.552e-05/0.242, allocations: 52.47 kB / 347.6 MB, free: 12.02 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002801/0.2423, allocations: 267.6 kB / 347.9 MB, free: 11.73 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003724/0.246, allocations: 6.243 MB / 354.1 MB, free: 4.297 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007042/0.253, allocations: 4.015 MB / 358.1 MB, free: 236 kB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002576/0.2533, allocations: 388.7 kB / 358.5 MB, free: 15.83 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 0.0007431/0.254, allocations: 357.1 kB / 358.8 MB, free: 15.48 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007872/0.2548, allocations: 0.5772 MB / 359.4 MB, free: 14.89 MB / 346.7 MB Notification: Performance of SimCode: time 1.493e-06/0.2548, allocations: 0 / 359.4 MB, free: 14.89 MB / 346.7 MB Notification: Performance of Templates: time 0.04361/0.2984, allocations: 38.53 MB / 398 MB, free: 8.883 MB / 378.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_trunk_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.makefile [Timeout 660] (rm -f Modelica_trunk_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.sim & ./Modelica_trunk_Modelica.Electrical.Spice3.Examples.InvertersApartRecord -abortSlowSimulation -alarm=240 -emit_protected -ignoreHideResult -lv LOG_STATS > Modelica_trunk_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_trunk_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.257782718166709]