Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Inverter.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.001254/0.001254, allocations: 114.2 kB / 19.04 MB, free: 3.281 MB / 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.001217/0.001217, allocations: 188.5 kB / 22.21 MB, free: 112 kB / 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.471/1.471, allocations: 225.6 MB / 250.8 MB, free: 13.41 MB / 206.1 MB " [Timeout remaining time 178] 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.Inverter,tolerance=1e-07,outputFormat="mat",numberOfIntervals=1999,variableFilter="time|mp.S.v",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Inverter") translateModel(Modelica.Electrical.Spice3.Examples.Inverter,tolerance=1e-07,outputFormat="mat",numberOfIntervals=1999,variableFilter="time|mp.S.v",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Inverter") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001574/0.001574, allocations: 51.91 kB / 368.7 MB, free: 10.21 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2481/0.2497, allocations: 52.14 MB / 420.9 MB, free: 15.14 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Inverter): time 0.009202/0.2589, allocations: 8.075 MB / 428.9 MB, free: 7.027 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.02282/0.2817, allocations: 19.51 MB / 448.4 MB, free: 3.449 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001043/0.2828, allocations: 63.44 kB / 448.5 MB, free: 3.387 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002221/0.285, allocations: 0.8646 MB / 449.4 MB, free: 2.52 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005183/0.2902, allocations: 1.822 MB / 451.2 MB, free: 0.6875 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003876/0.2941, allocations: 1.355 MB / 452.5 MB, free: 15.32 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.004929/0.299, allocations: 3.269 MB / 455.8 MB, free: 12.05 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003121/0.2993, allocations: 128.7 kB / 455.9 MB, free: 11.9 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007491/0.3001, allocations: 0.5717 MB / 456.5 MB, free: 11.32 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006891/0.3007, allocations: 0.5589 MB / 457.1 MB, free: 10.76 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001028/0.3009, allocations: 47.94 kB / 457.1 MB, free: 10.71 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003404/0.3043, allocations: 1.436 MB / 458.6 MB, free: 9.277 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001719/0.3044, allocations: 170.8 kB / 458.7 MB, free: 9.109 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006643/0.3051, allocations: 0.6793 MB / 459.4 MB, free: 8.426 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003111/0.3082, allocations: 2.225 MB / 461.6 MB, free: 6.191 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.509e-06/0.3082, allocations: 0 / 461.6 MB, free: 6.191 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.423e-06/0.3082, allocations: 4 kB / 461.6 MB, free: 6.188 MB / 366.1 MB Notification: Performance of Transformations before backend: time 1.606e-05/0.3082, allocations: 0 / 461.6 MB, free: 6.188 MB / 366.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 80 * Number of variables: 80 Notification: Performance of Generate backend data structure: time 0.003068/0.3113, allocations: 2.07 MB / 463.7 MB, free: 4.055 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.837e-05/0.3113, allocations: 16.03 kB / 463.7 MB, free: 4.039 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000234/0.3116, allocations: 194.8 kB / 463.9 MB, free: 3.848 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001889/0.3135, allocations: 1.36 MB / 465.3 MB, free: 2.414 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.132e-05/0.3135, allocations: 20.56 kB / 465.3 MB, free: 2.395 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.273e-05/0.3136, allocations: 31.94 kB / 465.3 MB, free: 2.363 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009361/0.3145, allocations: 433.1 kB / 465.7 MB, free: 1.941 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.466e-05/0.3145, allocations: 3.938 kB / 465.7 MB, free: 1.938 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.487e-05/0.3146, allocations: 16 kB / 465.8 MB, free: 1.922 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.448e-05/0.3146, allocations: 11.98 kB / 465.8 MB, free: 1.91 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001113/0.3157, allocations: 470.1 kB / 466.2 MB, free: 1.445 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002796/0.3185, allocations: 1.623 MB / 467.9 MB, free: 15.75 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009135/0.3194, allocations: 339.4 kB / 468.2 MB, free: 15.41 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007289/0.3201, allocations: 370.3 kB / 468.5 MB, free: 15.05 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01646/0.3366, allocations: 15.22 MB / 483.8 MB, free: 13.75 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006242/0.3372, allocations: 251.2 kB / 484 MB, free: 13.5 MB / 398.1 MB Notification: Performance of pre-optimization done (n=29): time 1.954e-06/0.3372, allocations: 0 / 484 MB, free: 13.5 MB / 398.1 MB Notification: Performance of matching and sorting (n=29): time 0.002038/0.3393, allocations: 0.8379 MB / 484.8 MB, free: 12.63 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.942e-05/0.3393, allocations: 71.33 kB / 484.9 MB, free: 12.55 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001796/0.3411, allocations: 1.455 MB / 486.4 MB, free: 11.05 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 3.758e-05/0.3411, allocations: 33.7 kB / 486.4 MB, free: 11.02 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006527/0.3418, allocations: 0.7154 MB / 487.1 MB, free: 10.29 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.242e-05/0.3419, allocations: 103.2 kB / 487.2 MB, free: 10.19 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001952/0.3421, allocations: 130.1 kB / 487.3 MB, free: 10.06 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001403/0.3422, allocations: 322 kB / 487.7 MB, free: 9.738 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004444/0.3427, allocations: 157 kB / 487.8 MB, free: 9.586 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005942/0.3433, allocations: 367.4 kB / 488.2 MB, free: 9.137 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001041/0.3443, allocations: 0.5255 MB / 488.7 MB, free: 8.52 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.598e-06/0.3443, allocations: 7.984 kB / 488.7 MB, free: 8.512 MB / 398.1 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.001451/0.3458, allocations: 0.7571 MB / 489.5 MB, free: 7.746 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.98e-05/0.3458, allocations: 8 kB / 489.5 MB, free: 7.738 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.6e-05/0.3458, allocations: 43.98 kB / 489.5 MB, free: 7.695 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003176/0.3462, allocations: 133.5 kB / 489.6 MB, free: 7.562 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004101/0.3466, allocations: 107.8 kB / 489.7 MB, free: 7.457 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006712/0.3472, allocations: 0.6812 MB / 490.4 MB, free: 6.75 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005092/0.3478, allocations: 75.66 kB / 490.5 MB, free: 6.676 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.428e-05/0.3478, allocations: 36.06 kB / 490.5 MB, free: 6.641 MB / 398.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 30 * 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 (53): * Single equations (assignments): 52 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,5)} Notification: Performance of prepare postOptimizeDAE: time 0.0003862/0.3482, allocations: 277.6 kB / 490.8 MB, free: 6.359 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002073/0.3484, allocations: 202.7 kB / 491 MB, free: 6.16 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001779/0.3502, allocations: 0.747 MB / 491.8 MB, free: 5.402 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.759e-06/0.3502, allocations: 0 / 491.8 MB, free: 5.402 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.138e-06/0.3502, allocations: 0 / 491.8 MB, free: 5.402 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.807e-06/0.3502, allocations: 4 kB / 491.8 MB, free: 5.398 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0022/0.3524, allocations: 1.303 MB / 493.1 MB, free: 4.027 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.341e-05/0.3525, allocations: 39.98 kB / 493.1 MB, free: 3.988 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002505/0.3527, allocations: 43.95 kB / 493.1 MB, free: 3.945 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002523/0.353, allocations: 124.8 kB / 493.3 MB, free: 3.82 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.301e-05/0.353, allocations: 23.94 kB / 493.3 MB, free: 3.797 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.000616/0.3536, allocations: 0.6734 MB / 494 MB, free: 3.098 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.482e-06/0.3536, allocations: 0 / 494 MB, free: 3.098 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001313/0.3549, allocations: 0.7253 MB / 494.7 MB, free: 2.344 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003737/0.3553, allocations: 287.7 kB / 495 MB, free: 2.043 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001476/0.3555, allocations: 4 kB / 495 MB, free: 2.039 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004153/0.3559, allocations: 31.97 kB / 495 MB, free: 2.008 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000127/0.356, allocations: 51.83 kB / 495.1 MB, free: 1.957 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.244e-05/0.356, allocations: 16 kB / 495.1 MB, free: 1.941 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.001237/0.3573, allocations: 0.961 MB / 496 MB, free: 0.9609 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.3573, allocations: 0 / 496 MB, free: 0.9609 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0008218/0.3581, allocations: 335.5 kB / 496.4 MB, free: 0.6328 MB / 398.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 0 () * 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 (21): * Single equations (assignments): 14 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 6 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,5)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0008408/0.3589, allocations: 0.5654 MB / 496.9 MB, free: 60 kB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.001323/0.3603, allocations: 0.4934 MB / 497.4 MB, free: 15.55 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 1.933e-06/0.3603, allocations: 4.125 kB / 497.4 MB, free: 15.55 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006795/0.3609, allocations: 279.1 kB / 497.7 MB, free: 15.26 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001236/0.3622, allocations: 315 kB / 498 MB, free: 14.95 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003628/0.3658, allocations: 2.246 MB / 0.4885 GB, free: 12.66 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008314/0.3666, allocations: 1.153 MB / 0.4896 GB, free: 11.48 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0005161/0.3672, allocations: 203.8 kB / 0.4898 GB, free: 11.28 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001496/0.3673, allocations: 83.44 kB / 0.4899 GB, free: 11.2 MB / 414.1 MB Notification: Performance of SimCode: time 7.72e-07/0.3673, allocations: 0 / 0.4899 GB, free: 11.2 MB / 414.1 MB Notification: Performance of Templates: time 0.03471/0.402, allocations: 20.04 MB / 0.5095 GB, free: 7.293 MB / 430.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Inverter.makefile [Timeout 660] (rm -f Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Inverter.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Inverter.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Inverter.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Inverter.sim & ./Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Inverter -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Inverter.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Inverter_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Spice3/Examples/Inverter/Inverter.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Inverter.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.066380597651005]