Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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=3998,variableFilter="time|mp.S.v",fileNamePrefix="Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Inverter") translateModel(Modelica.Electrical.Spice3.Examples.Inverter,tolerance=1e-07,outputFormat="mat",numberOfIntervals=3998,variableFilter="time|mp.S.v",fileNamePrefix="Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Inverter") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001615/0.001614, allocations: 107.5 kB / 18.39 MB, free: 4.703 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001866/0.001866, allocations: 191 kB / 19.33 MB, free: 3.781 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.313/1.313, allocations: 205.1 MB / 225.2 MB, free: 12.23 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001212/0.001212, allocations: 47.94 kB / 329.2 MB, free: 3.312 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08714/0.08837, allocations: 46.62 MB / 375.8 MB, free: 4.582 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Inverter): time 0.1736/0.2621, allocations: 7.702 MB / 383.5 MB, free: 9.082 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.01717/0.2793, allocations: 18.52 MB / 402 MB, free: 12.17 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001054/0.2804, allocations: 63.19 kB / 402.1 MB, free: 12.14 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002371/0.2828, allocations: 0.8225 MB / 402.9 MB, free: 11.7 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006097/0.2889, allocations: 1.774 MB / 404.7 MB, free: 10.64 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.006264/0.2952, allocations: 1.289 MB / 406 MB, free: 9.945 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.005524/0.3007, allocations: 3.183 MB / 409.2 MB, free: 8.781 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003913/0.3011, allocations: 219.6 kB / 409.4 MB, free: 8.672 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007659/0.3019, allocations: 0.5164 MB / 409.9 MB, free: 8.469 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006684/0.3026, allocations: 0.557 MB / 410.5 MB, free: 8.191 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001062/0.3027, allocations: 42.81 kB / 410.5 MB, free: 8.191 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003905/0.3066, allocations: 1.124 MB / 411.6 MB, free: 7.977 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001759/0.3068, allocations: 175.9 kB / 411.8 MB, free: 7.855 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006523/0.3075, allocations: 0.6753 MB / 412.5 MB, free: 7.434 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003121/0.3106, allocations: 2.235 MB / 414.7 MB, free: 6.074 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.536e-06/0.3106, allocations: 0 / 414.7 MB, free: 6.074 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.974e-06/0.3106, allocations: 4 kB / 414.7 MB, free: 6.07 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.816e-05/0.3106, allocations: 1.281 kB / 414.7 MB, free: 6.07 MB / 334.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.003266/0.3139, allocations: 2.008 MB / 416.7 MB, free: 4.535 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.471e-05/0.314, allocations: 12.81 kB / 416.7 MB, free: 4.531 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002324/0.3142, allocations: 197 kB / 416.9 MB, free: 4.43 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001783/0.316, allocations: 1.362 MB / 418.3 MB, free: 3.344 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.142e-05/0.316, allocations: 23.09 kB / 418.3 MB, free: 3.332 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.171e-05/0.3161, allocations: 24.38 kB / 418.3 MB, free: 3.324 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008804/0.317, allocations: 432.7 kB / 418.8 MB, free: 3.07 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.364e-05/0.317, allocations: 4 kB / 418.8 MB, free: 3.066 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.694e-05/0.3171, allocations: 15.16 kB / 418.8 MB, free: 3.055 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.582e-05/0.3171, allocations: 10.92 kB / 418.8 MB, free: 3.051 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001113/0.3182, allocations: 473.7 kB / 419.2 MB, free: 2.863 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002746/0.321, allocations: 1.619 MB / 420.9 MB, free: 1.695 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009518/0.3219, allocations: 379.5 kB / 421.2 MB, free: 1.488 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007684/0.3227, allocations: 419.7 kB / 421.6 MB, free: 1.297 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01451/0.3372, allocations: 15.23 MB / 436.9 MB, free: 180 kB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005955/0.3379, allocations: 259 kB / 437.1 MB, free: 15.91 MB / 366.1 MB Notification: Performance of pre-optimization done (n=29): time 2.144e-06/0.3379, allocations: 0 / 437.1 MB, free: 15.91 MB / 366.1 MB Notification: Performance of matching and sorting (n=29): time 0.002002/0.3399, allocations: 0.8446 MB / 438 MB, free: 15.04 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.644e-05/0.3399, allocations: 59.41 kB / 438 MB, free: 14.96 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001558/0.3415, allocations: 1.464 MB / 439.5 MB, free: 13.46 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 3.746e-05/0.3415, allocations: 33.7 kB / 439.5 MB, free: 13.43 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005584/0.3421, allocations: 0.7188 MB / 440.2 MB, free: 12.7 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.878e-05/0.3422, allocations: 90.73 kB / 440.3 MB, free: 12.61 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001681/0.3424, allocations: 130 kB / 440.5 MB, free: 12.48 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.000106/0.3425, allocations: 322 kB / 440.8 MB, free: 12.16 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004293/0.3429, allocations: 165 kB / 440.9 MB, free: 12 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005409/0.3435, allocations: 362.1 kB / 441.3 MB, free: 11.55 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009617/0.3444, allocations: 0.5371 MB / 441.8 MB, free: 10.92 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.427e-06/0.3445, allocations: 0 / 441.8 MB, free: 10.92 MB / 366.1 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.001365/0.3458, allocations: 0.7585 MB / 442.6 MB, free: 10.15 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.582e-05/0.3459, allocations: 8 kB / 442.6 MB, free: 10.14 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.879e-05/0.3459, allocations: 43.98 kB / 442.6 MB, free: 10.1 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002712/0.3462, allocations: 133.6 kB / 442.8 MB, free: 9.969 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004001/0.3466, allocations: 107.8 kB / 442.9 MB, free: 9.863 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0005584/0.3472, allocations: 0.6888 MB / 443.6 MB, free: 9.148 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006877/0.3479, allocations: 75.47 kB / 443.6 MB, free: 9.074 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.947e-05/0.3479, allocations: 32 kB / 443.7 MB, free: 9.043 MB / 366.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.0003477/0.3483, allocations: 277.6 kB / 443.9 MB, free: 8.762 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001809/0.3485, allocations: 185.8 kB / 444.1 MB, free: 8.578 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001711/0.3502, allocations: 0.7454 MB / 444.9 MB, free: 7.824 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.328e-06/0.3502, allocations: 0 / 444.9 MB, free: 7.824 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.885e-06/0.3502, allocations: 0 / 444.9 MB, free: 7.824 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.108e-06/0.3502, allocations: 8 kB / 444.9 MB, free: 7.816 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002053/0.3523, allocations: 1.315 MB / 446.2 MB, free: 6.43 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.562e-05/0.3524, allocations: 36 kB / 446.2 MB, free: 6.395 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002466/0.3526, allocations: 43.95 kB / 446.3 MB, free: 6.352 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002235/0.3528, allocations: 132.8 kB / 446.4 MB, free: 6.219 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.582e-05/0.3529, allocations: 19.98 kB / 446.4 MB, free: 6.199 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.000535/0.3534, allocations: 0.6741 MB / 447.1 MB, free: 5.5 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.713e-06/0.3534, allocations: 0 / 447.1 MB, free: 5.5 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001272/0.3547, allocations: 0.7161 MB / 447.8 MB, free: 4.754 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003839/0.3551, allocations: 294.6 kB / 448.1 MB, free: 4.445 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001602/0.3553, allocations: 8 kB / 448.1 MB, free: 4.438 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004513/0.3557, allocations: 27.95 kB / 448.1 MB, free: 4.41 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001098/0.3559, allocations: 35.97 kB / 448.2 MB, free: 4.375 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.24e-05/0.3559, allocations: 22.88 kB / 448.2 MB, free: 4.355 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0011/0.357, allocations: 0.973 MB / 449.2 MB, free: 3.363 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.21e-07/0.357, allocations: 0 / 449.2 MB, free: 3.363 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0008987/0.3579, allocations: 327.8 kB / 449.5 MB, free: 3.043 MB / 366.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.0007892/0.3587, allocations: 0.5755 MB / 450.1 MB, free: 2.457 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001229/0.36, allocations: 0.5161 MB / 450.6 MB, free: 1.93 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.534e-06/0.36, allocations: 0 / 450.6 MB, free: 1.93 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006143/0.3606, allocations: 291.2 kB / 450.9 MB, free: 1.633 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001004/0.3616, allocations: 266.4 kB / 451.1 MB, free: 1.371 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003274/0.3649, allocations: 2.255 MB / 453.4 MB, free: 15.07 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006106/0.3655, allocations: 1.153 MB / 454.5 MB, free: 13.89 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001623/0.3657, allocations: 91.44 kB / 454.6 MB, free: 13.8 MB / 382.1 MB Notification: Performance of SimCode: time 4.21e-07/0.3657, allocations: 4 kB / 454.6 MB, free: 13.8 MB / 382.1 MB Notification: Performance of Templates: time 0.03126/0.397, allocations: 26.29 MB / 480.9 MB, free: 3.469 MB / 398.1 MB make -j1 -f Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Inverter.makefile (rm -f Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Inverter.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Inverter.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Inverter.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Inverter.sim & ./Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Inverter -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Inverter.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Inverter_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Electrical/Spice3/Examples/Inverter/Inverter.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Inverter.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) "" Variables in the reference:time,mp.S.v Variables in the result:mp.S.v,time