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) 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 4.0.0+maint.om/package.mo", uses=false) 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=3998,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=3998,variableFilter="time|mp.S.v",fileNamePrefix="Modelica_4.0.0_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.001673/0.001673, allocations: 109 kB / 17.28 MB, free: 6.059 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.001869/0.001869, allocations: 197.3 kB / 18.21 MB, free: 5.145 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.4/1.4, allocations: 222.9 MB / 241.9 MB, free: 13.71 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001086/0.001086, allocations: 43.95 kB / 300.8 MB, free: 5.949 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09988/0.101, allocations: 49.45 MB / 350.2 MB, free: 4.496 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Inverter): time 0.008636/0.1097, allocations: 7.994 MB / 358.2 MB, free: 12.46 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.2222/0.3319, allocations: 19.23 MB / 377.5 MB, free: 8.938 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002028/0.334, allocations: 30.34 kB / 377.5 MB, free: 8.938 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003575/0.3376, allocations: 0.7721 MB / 378.3 MB, free: 8.898 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00839/0.3461, allocations: 1.541 MB / 379.8 MB, free: 8.566 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00815/0.3543, allocations: 1.167 MB / 381 MB, free: 8.32 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.006653/0.361, allocations: 3.294 MB / 384.3 MB, free: 7.703 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004486/0.3614, allocations: 222.1 kB / 384.5 MB, free: 7.617 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001035/0.3625, allocations: 0.5584 MB / 385 MB, free: 7.453 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006402/0.3631, allocations: 0.5601 MB / 385.6 MB, free: 7.242 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 9.945e-05/0.3632, allocations: 44.53 kB / 385.6 MB, free: 7.242 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.006087/0.3693, allocations: 1.448 MB / 387.1 MB, free: 6.977 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003939/0.3698, allocations: 177.5 kB / 387.3 MB, free: 6.859 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001308/0.3711, allocations: 0.6748 MB / 387.9 MB, free: 6.438 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002987/0.3741, allocations: 1.611 MB / 389.6 MB, free: 5.984 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.466e-06/0.3741, allocations: 0.9688 kB / 389.6 MB, free: 5.984 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.925e-06/0.3741, allocations: 0.8438 kB / 389.6 MB, free: 5.984 MB / 302.1 MB Notification: Performance of Transformations before backend: time 3.159e-05/0.3741, allocations: 0 / 389.6 MB, free: 5.984 MB / 302.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.004207/0.3784, allocations: 2.019 MB / 391.6 MB, free: 4.621 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.021e-05/0.3784, allocations: 9.531 kB / 391.6 MB, free: 4.621 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003624/0.3788, allocations: 189.2 kB / 391.8 MB, free: 4.527 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002125/0.3809, allocations: 1.363 MB / 393.1 MB, free: 3.797 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.732e-05/0.381, allocations: 19.25 kB / 393.1 MB, free: 3.789 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.127e-05/0.3811, allocations: 28.22 kB / 393.2 MB, free: 3.781 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009293/0.382, allocations: 433.9 kB / 393.6 MB, free: 3.605 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.373e-05/0.382, allocations: 0 / 393.6 MB, free: 3.605 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.682e-05/0.3821, allocations: 14.92 kB / 393.6 MB, free: 3.594 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.626e-05/0.3821, allocations: 10.12 kB / 393.6 MB, free: 3.59 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001044/0.3832, allocations: 472.1 kB / 394.1 MB, free: 3.406 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002953/0.3861, allocations: 1.622 MB / 395.7 MB, free: 2.25 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008939/0.387, allocations: 376.4 kB / 396.1 MB, free: 2.047 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007532/0.3878, allocations: 411.3 kB / 396.5 MB, free: 1.863 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01531/0.4031, allocations: 15.2 MB / 411.7 MB, free: 2.746 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006174/0.4038, allocations: 259.1 kB / 411.9 MB, free: 2.48 MB / 318.1 MB Notification: Performance of pre-optimization done (n=29): time 3.536e-06/0.4038, allocations: 0 / 411.9 MB, free: 2.48 MB / 318.1 MB Notification: Performance of matching and sorting (n=29): time 0.00225/0.4061, allocations: 0.8412 MB / 412.8 MB, free: 1.609 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.124e-05/0.4061, allocations: 67.34 kB / 412.8 MB, free: 1.531 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001917/0.4081, allocations: 1.451 MB / 414.3 MB, free: 44 kB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 5.375e-05/0.4081, allocations: 37.69 kB / 414.3 MB, free: 0 / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006181/0.4088, allocations: 0.7178 MB / 415 MB, free: 15.27 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001005/0.4089, allocations: 101.5 kB / 415.1 MB, free: 15.18 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002079/0.4091, allocations: 126 kB / 415.3 MB, free: 15.04 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001298/0.4092, allocations: 329.9 kB / 415.6 MB, free: 14.71 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004306/0.4097, allocations: 160.3 kB / 415.7 MB, free: 14.56 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005631/0.4102, allocations: 359.4 kB / 416.1 MB, free: 14.12 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009849/0.4112, allocations: 0.5415 MB / 416.6 MB, free: 13.49 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.398e-06/0.4112, allocations: 0 / 416.6 MB, free: 13.49 MB / 334.1 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.00168/0.4129, allocations: 0.7504 MB / 417.4 MB, free: 12.73 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.338e-05/0.413, allocations: 8 kB / 417.4 MB, free: 12.73 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.296e-05/0.413, allocations: 36 kB / 417.4 MB, free: 12.69 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003445/0.4134, allocations: 141.4 kB / 417.6 MB, free: 12.55 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004053/0.4138, allocations: 107.8 kB / 417.7 MB, free: 12.45 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.000654/0.4145, allocations: 0.6811 MB / 418.3 MB, free: 11.74 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001007/0.4155, allocations: 75.47 kB / 418.4 MB, free: 11.66 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.121e-05/0.4156, allocations: 32 kB / 418.5 MB, free: 11.63 MB / 334.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.0005916/0.4162, allocations: 276.5 kB / 418.7 MB, free: 11.36 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003325/0.4165, allocations: 181.8 kB / 418.9 MB, free: 11.18 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002116/0.4186, allocations: 0.7567 MB / 419.7 MB, free: 10.41 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.322e-06/0.4187, allocations: 0 / 419.7 MB, free: 10.41 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.29e-06/0.4187, allocations: 4 kB / 419.7 MB, free: 10.41 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.95e-06/0.4187, allocations: 3.938 kB / 419.7 MB, free: 10.41 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002751/0.4214, allocations: 1.309 MB / 421 MB, free: 9.031 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.171e-05/0.4215, allocations: 32 kB / 421 MB, free: 9 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002533/0.4218, allocations: 47.89 kB / 421.1 MB, free: 8.953 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002641/0.422, allocations: 124.8 kB / 421.2 MB, free: 8.828 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.252e-05/0.4221, allocations: 16 kB / 421.2 MB, free: 8.812 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006383/0.4227, allocations: 0.6773 MB / 421.9 MB, free: 8.109 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.255e-06/0.4228, allocations: 0 / 421.9 MB, free: 8.109 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00142/0.4242, allocations: 0.7037 MB / 422.6 MB, free: 7.379 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006941/0.4249, allocations: 278.8 kB / 422.8 MB, free: 7.086 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003756/0.4253, allocations: 11.94 kB / 422.9 MB, free: 7.078 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005997/0.4259, allocations: 27.95 kB / 422.9 MB, free: 7.051 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001362/0.426, allocations: 39.97 kB / 422.9 MB, free: 7.012 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.082e-05/0.4261, allocations: 23.98 kB / 422.9 MB, free: 6.988 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.001669/0.4278, allocations: 0.9571 MB / 423.9 MB, free: 6.012 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.4278, allocations: 0 / 423.9 MB, free: 6.012 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.001243/0.429, allocations: 331.8 kB / 424.2 MB, free: 5.688 MB / 334.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.000963/0.43, allocations: 0.5825 MB / 424.8 MB, free: 5.203 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.001403/0.4314, allocations: 0.52 MB / 425.3 MB, free: 4.672 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 8.526e-06/0.4314, allocations: 4.125 kB / 425.3 MB, free: 4.668 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000648/0.4321, allocations: 296.7 kB / 425.6 MB, free: 4.367 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00156/0.4337, allocations: 318.7 kB / 425.9 MB, free: 4.051 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003911/0.4376, allocations: 2.678 MB / 428.6 MB, free: 1.328 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006745/0.4383, allocations: 1.145 MB / 429.8 MB, free: 156 kB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001872/0.4385, allocations: 87.44 kB / 429.8 MB, free: 68 kB / 334.1 MB Notification: Performance of SimCode: time 7.01e-07/0.4385, allocations: 4 kB / 429.8 MB, free: 64 kB / 334.1 MB Notification: Performance of Templates: time 0.04007/0.4786, allocations: 25.74 MB / 455.6 MB, free: 6.391 MB / 366.1 MB make -j1 -f Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Inverter.makefile (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) diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Inverter_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Spice3/Examples/Inverter/Inverter.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_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