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.00187/0.00187, allocations: 84.34 kB / 20.95 MB, free: 3.453 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.002259/0.002259, allocations: 169.3 kB / 24.26 MB, free: 148 kB / 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 1.527/1.527, allocations: 177.1 MB / 204.6 MB, free: 5.609 MB / 186.7 MB " [Timeout remaining time 178] 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.814e-06/1.814e-06, allocations: 0 / 272.3 MB, free: 1.844 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.581e-05/2.762e-05, allocations: 2.312 kB / 272.3 MB, free: 1.84 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.InvertersExtendedModel): time 0.0168/0.01683, allocations: 12.91 MB / 285.2 MB, free: 4.875 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.16/0.1768, allocations: 17.97 MB / 303.2 MB, free: 11.77 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002465/0.1793, allocations: 136.5 kB / 303.3 MB, free: 11.68 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.003842/0.1832, allocations: 1.167 MB / 304.5 MB, free: 11.11 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.008734/0.1919, allocations: 2.48 MB / 307 MB, free: 9.559 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.00535/0.1972, allocations: 1.444 MB / 308.4 MB, free: 8.684 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.008825/0.2061, allocations: 6.908 MB / 315.3 MB, free: 5.281 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006835/0.2067, allocations: 263.2 kB / 315.6 MB, free: 5.113 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002196/0.2089, allocations: 1.615 MB / 317.2 MB, free: 3.918 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0009411/0.2099, allocations: 0.8095 MB / 318 MB, free: 3.105 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001588/0.21, allocations: 76 kB / 318.1 MB, free: 3.031 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003511/0.2136, allocations: 1.213 MB / 319.3 MB, free: 1.816 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0002738/0.2138, allocations: 341.4 kB / 319.6 MB, free: 1.48 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001113/0.2149, allocations: 0.7671 MB / 320.4 MB, free: 0.7109 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.006311/0.2213, allocations: 3.958 MB / 324.3 MB, free: 12.74 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.967e-06/0.2213, allocations: 0 / 324.3 MB, free: 12.74 MB / 282.7 MB Notification: Performance of FrontEnd: time 1.733e-06/0.2213, allocations: 0 / 324.3 MB, free: 12.74 MB / 282.7 MB Notification: Performance of Transformations before backend: time 6.091e-05/0.2213, allocations: 0 / 324.3 MB, free: 12.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.006132/0.2274, allocations: 3.845 MB / 328.2 MB, free: 8.836 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.103e-05/0.2275, allocations: 12.03 kB / 328.2 MB, free: 8.824 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006627/0.2282, allocations: 469.2 kB / 328.7 MB, free: 8.363 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004433/0.2326, allocations: 2.642 MB / 331.3 MB, free: 5.629 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.839e-05/0.2326, allocations: 37 kB / 331.3 MB, free: 5.59 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001633/0.2328, allocations: 63.94 kB / 331.4 MB, free: 5.527 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001574/0.2344, allocations: 0.7304 MB / 332.1 MB, free: 4.793 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.495e-05/0.2344, allocations: 0 / 332.1 MB, free: 4.793 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.343e-05/0.2345, allocations: 23.94 kB / 332.2 MB, free: 4.77 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.638e-05/0.2345, allocations: 19.98 kB / 332.2 MB, free: 4.75 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001807/0.2363, allocations: 0.8202 MB / 333 MB, free: 3.934 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005573/0.2419, allocations: 2.805 MB / 335.8 MB, free: 1.074 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00131/0.2432, allocations: 0.5125 MB / 336.3 MB, free: 0.5508 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001275/0.2445, allocations: 0.5695 MB / 336.9 MB, free: 15.97 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.03649/0.2809, allocations: 15.25 MB / 352.1 MB, free: 348 kB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001226/0.2822, allocations: 366 kB / 352.5 MB, free: 15.97 MB / 314.7 MB Notification: Performance of pre-optimization done (n=49): time 3.377e-06/0.2822, allocations: 0 / 352.5 MB, free: 15.97 MB / 314.7 MB Notification: Performance of matching and sorting (n=49): time 0.003858/0.286, allocations: 1.143 MB / 353.6 MB, free: 14.82 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.684e-05/0.2861, allocations: 63.39 kB / 353.7 MB, free: 14.75 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006733/0.2928, allocations: 3.11 MB / 356.8 MB, free: 11.64 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001115/0.2929, allocations: 33.7 kB / 356.8 MB, free: 11.6 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002645/0.2956, allocations: 1.582 MB / 358.4 MB, free: 10.01 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002901/0.2959, allocations: 178.5 kB / 358.6 MB, free: 9.832 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005413/0.2964, allocations: 226.4 kB / 358.8 MB, free: 9.605 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0002793/0.2967, allocations: 334 kB / 359.1 MB, free: 9.273 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009214/0.2976, allocations: 249.8 kB / 359.4 MB, free: 9.027 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001521/0.2991, allocations: 0.5978 MB / 360 MB, free: 8.25 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002626/0.3018, allocations: 0.8983 MB / 360.9 MB, free: 7.184 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.297e-06/0.3018, allocations: 4 kB / 360.9 MB, free: 7.18 MB / 314.7 MB Notification: Performance of matching and sorting (n=110) (initialization): time 0.004003/0.3058, allocations: 1.303 MB / 362.2 MB, free: 5.871 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.17e-05/0.3058, allocations: 8 kB / 362.2 MB, free: 5.863 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001869/0.306, allocations: 83.06 kB / 362.3 MB, free: 5.785 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 5.316e-05/0.3061, allocations: 24.06 kB / 362.3 MB, free: 5.762 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001128/0.3072, allocations: 199.6 kB / 362.5 MB, free: 5.566 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.556e-05/0.3072, allocations: 27.86 kB / 362.5 MB, free: 5.539 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00175/0.309, allocations: 115.3 kB / 362.6 MB, free: 5.426 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001826/0.3092, allocations: 64 kB / 362.7 MB, free: 5.363 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.001208/0.3104, allocations: 457.5 kB / 363.1 MB, free: 4.906 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007886/0.3112, allocations: 429.3 kB / 363.6 MB, free: 4.484 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004569/0.3157, allocations: 1.205 MB / 364.8 MB, free: 3.273 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.184e-05/0.3157, allocations: 4 kB / 364.8 MB, free: 3.27 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.074e-06/0.3157, allocations: 0 / 364.8 MB, free: 3.27 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.323e-05/0.3158, allocations: 11.94 kB / 364.8 MB, free: 3.258 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0061/0.3219, allocations: 1.989 MB / 366.8 MB, free: 1.223 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001699/0.322, allocations: 68 kB / 366.8 MB, free: 1.156 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008287/0.3229, allocations: 91.86 kB / 366.9 MB, free: 1.066 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.654e-06/0.3229, allocations: 0 / 366.9 MB, free: 1.066 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001069/0.323, allocations: 39.98 kB / 367 MB, free: 1.027 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.618e-06/0.323, allocations: 3.938 kB / 367 MB, free: 1.023 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.37e-06/0.323, allocations: 3.938 kB / 367 MB, free: 1.02 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004343/0.3273, allocations: 1.356 MB / 368.3 MB, free: 15.63 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001396/0.3287, allocations: 451.2 kB / 368.8 MB, free: 15.19 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005146/0.3292, allocations: 12 kB / 368.8 MB, free: 15.18 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001298/0.3305, allocations: 31.91 kB / 368.8 MB, free: 15.15 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002747/0.3308, allocations: 63.92 kB / 368.9 MB, free: 15.09 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.00013/0.3309, allocations: 36 kB / 368.9 MB, free: 15.05 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.005321/0.3363, allocations: 2.01 MB / 370.9 MB, free: 13.05 MB / 330.7 MB Notification: Performance of sort global known variables: time 1.6e-07/0.3363, allocations: 0 / 370.9 MB, free: 13.05 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.002614/0.3389, allocations: 0.5969 MB / 371.5 MB, free: 12.45 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.001732/0.3406, allocations: 0.8408 MB / 372.4 MB, free: 11.61 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.001921/0.3425, allocations: 0.7759 MB / 373.1 MB, free: 10.8 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 3.427e-06/0.3425, allocations: 3.938 kB / 373.1 MB, free: 10.8 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0009229/0.3435, allocations: 427 kB / 373.6 MB, free: 10.36 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003186/0.3466, allocations: 0.6644 MB / 374.2 MB, free: 9.699 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00856/0.3552, allocations: 4.605 MB / 378.8 MB, free: 5.027 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001622/0.3568, allocations: 1.166 MB / 380 MB, free: 3.824 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 0.001295/0.3581, allocations: 361.3 kB / 380.3 MB, free: 3.465 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003444/0.3585, allocations: 148.5 kB / 380.5 MB, free: 3.32 MB / 330.7 MB Notification: Performance of SimCode: time 1.173e-06/0.3585, allocations: 0 / 380.5 MB, free: 3.32 MB / 330.7 MB Notification: Performance of Templates: time 0.06601/0.4245, allocations: 33.28 MB / 413.8 MB, free: 2.586 MB / 362.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=480 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.pipe 2>&1) [Timeout 480] 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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.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.677394698024727]