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.001033/0.001033, allocations: 111 kB / 17.74 MB, free: 5.34 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.001058/0.001058, allocations: 192.4 kB / 18.67 MB, free: 4.414 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.309/1.309, allocations: 222.9 MB / 242.4 MB, free: 15.16 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001163/0.001163, allocations: 47.92 kB / 352 MB, free: 3.254 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2981/0.2992, allocations: 49.44 MB / 401.4 MB, free: 8.75 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Inverter): time 0.009839/0.3091, allocations: 8.025 MB / 409.4 MB, free: 0.8125 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.02522/0.3344, allocations: 19.44 MB / 428.9 MB, free: 13.3 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001483/0.3359, allocations: 59.5 kB / 428.9 MB, free: 13.24 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002602/0.3386, allocations: 0.8475 MB / 429.8 MB, free: 12.39 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006244/0.3448, allocations: 1.795 MB / 431.6 MB, free: 10.59 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004665/0.3495, allocations: 1.342 MB / 432.9 MB, free: 9.238 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.005217/0.3548, allocations: 3.257 MB / 436.2 MB, free: 5.969 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004406/0.3552, allocations: 216.6 kB / 436.4 MB, free: 5.734 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009001/0.3561, allocations: 0.5677 MB / 436.9 MB, free: 5.164 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007242/0.3569, allocations: 0.5629 MB / 437.5 MB, free: 4.598 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001249/0.357, allocations: 40 kB / 437.5 MB, free: 4.559 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004019/0.361, allocations: 1.44 MB / 439 MB, free: 3.117 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001883/0.3612, allocations: 170.8 kB / 439.1 MB, free: 2.949 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006958/0.3619, allocations: 0.6792 MB / 439.8 MB, free: 2.266 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003094/0.365, allocations: 2.219 MB / 442 MB, free: 40 kB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.211e-06/0.3651, allocations: 0 / 442 MB, free: 40 kB / 350.1 MB Notification: Performance of FrontEnd: time 2.695e-06/0.3651, allocations: 0 / 442 MB, free: 40 kB / 350.1 MB Notification: Performance of Transformations before backend: time 2.02e-05/0.3651, allocations: 0 / 442 MB, free: 40 kB / 350.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.002974/0.3681, allocations: 2.008 MB / 444.1 MB, free: 13.97 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.067e-05/0.3681, allocations: 8.031 kB / 444.1 MB, free: 13.96 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002156/0.3684, allocations: 193.7 kB / 444.2 MB, free: 13.77 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001726/0.3701, allocations: 1.346 MB / 445.6 MB, free: 12.35 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.324e-05/0.3701, allocations: 20.56 kB / 445.6 MB, free: 12.33 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.275e-05/0.3702, allocations: 31.98 kB / 445.6 MB, free: 12.3 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008618/0.3711, allocations: 433.2 kB / 446.1 MB, free: 11.87 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.685e-05/0.3711, allocations: 3.938 kB / 446.1 MB, free: 11.87 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.586e-05/0.3712, allocations: 15.98 kB / 446.1 MB, free: 11.85 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.091e-05/0.3712, allocations: 4 kB / 446.1 MB, free: 11.85 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001014/0.3722, allocations: 478.1 kB / 446.6 MB, free: 11.38 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002683/0.3749, allocations: 1.607 MB / 448.2 MB, free: 9.699 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008767/0.3758, allocations: 379.2 kB / 448.5 MB, free: 9.32 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000685/0.3765, allocations: 418.3 kB / 448.9 MB, free: 8.91 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01678/0.3933, allocations: 15.21 MB / 464.2 MB, free: 7.625 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006403/0.394, allocations: 255.1 kB / 464.4 MB, free: 7.363 MB / 382.1 MB Notification: Performance of pre-optimization done (n=29): time 2.735e-06/0.394, allocations: 3.938 kB / 464.4 MB, free: 7.359 MB / 382.1 MB Notification: Performance of matching and sorting (n=29): time 0.002064/0.396, allocations: 0.8331 MB / 465.2 MB, free: 6.496 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.252e-05/0.3961, allocations: 67.27 kB / 465.3 MB, free: 6.418 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001828/0.398, allocations: 1.455 MB / 466.8 MB, free: 4.926 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 3.99e-05/0.398, allocations: 33.7 kB / 466.8 MB, free: 4.887 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006007/0.3986, allocations: 0.7187 MB / 467.5 MB, free: 4.16 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.892e-05/0.3987, allocations: 90.75 kB / 467.6 MB, free: 4.07 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001679/0.3989, allocations: 130 kB / 467.7 MB, free: 3.938 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001284/0.399, allocations: 326 kB / 468 MB, free: 3.613 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003971/0.3994, allocations: 161 kB / 468.2 MB, free: 3.457 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005353/0.4, allocations: 359.4 kB / 468.6 MB, free: 3.016 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009286/0.4009, allocations: 0.5333 MB / 469.1 MB, free: 2.391 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.827e-06/0.4009, allocations: 0 / 469.1 MB, free: 2.391 MB / 382.1 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.001377/0.4023, allocations: 0.743 MB / 469.8 MB, free: 1.637 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.454e-05/0.4023, allocations: 12.83 kB / 469.8 MB, free: 1.625 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.41e-05/0.4024, allocations: 40 kB / 469.9 MB, free: 1.586 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003109/0.4027, allocations: 140.7 kB / 470 MB, free: 1.445 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003969/0.4031, allocations: 103.8 kB / 470.1 MB, free: 1.344 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006223/0.4038, allocations: 0.685 MB / 470.8 MB, free: 0.6328 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005545/0.4043, allocations: 71.5 kB / 470.9 MB, free: 0.5625 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.631e-05/0.4044, allocations: 39.98 kB / 470.9 MB, free: 0.5234 MB / 382.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.0003864/0.4048, allocations: 273.3 kB / 471.2 MB, free: 256 kB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001797/0.405, allocations: 189.7 kB / 471.4 MB, free: 64 kB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001743/0.4067, allocations: 0.7509 MB / 472.1 MB, free: 15.3 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.34e-06/0.4068, allocations: 0 / 472.1 MB, free: 15.3 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.279e-06/0.4068, allocations: 4 kB / 472.1 MB, free: 15.3 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.781e-06/0.4068, allocations: 7.984 kB / 472.1 MB, free: 15.29 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002113/0.4089, allocations: 1.301 MB / 473.4 MB, free: 13.92 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.533e-05/0.409, allocations: 32 kB / 473.5 MB, free: 13.89 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002328/0.4092, allocations: 51.89 kB / 473.5 MB, free: 13.84 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002338/0.4095, allocations: 128.9 kB / 473.6 MB, free: 13.71 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.42e-05/0.4095, allocations: 19.94 kB / 473.7 MB, free: 13.69 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005704/0.4101, allocations: 0.6695 MB / 474.3 MB, free: 12.99 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.693e-06/0.4101, allocations: 3.938 kB / 474.3 MB, free: 12.99 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00124/0.4113, allocations: 0.7125 MB / 475 MB, free: 12.25 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003798/0.4117, allocations: 286.8 kB / 475.3 MB, free: 11.95 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001533/0.4119, allocations: 12 kB / 475.3 MB, free: 11.93 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004067/0.4123, allocations: 23.97 kB / 475.4 MB, free: 11.91 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001123/0.4124, allocations: 47.83 kB / 475.4 MB, free: 11.86 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.303e-05/0.4125, allocations: 20 kB / 475.4 MB, free: 11.84 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.001173/0.4136, allocations: 0.961 MB / 476.4 MB, free: 10.86 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.4137, allocations: 0 / 476.4 MB, free: 10.86 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0008848/0.4145, allocations: 327.8 kB / 476.7 MB, free: 10.54 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.0009538/0.4155, allocations: 0.5772 MB / 477.3 MB, free: 9.957 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.00129/0.4168, allocations: 0.52 MB / 477.8 MB, free: 9.426 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 4.338e-06/0.4168, allocations: 0 / 477.8 MB, free: 9.426 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006316/0.4175, allocations: 287.2 kB / 478.1 MB, free: 9.133 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001213/0.4187, allocations: 311.1 kB / 478.4 MB, free: 8.824 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003556/0.4223, allocations: 2.248 MB / 480.6 MB, free: 6.531 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000679/0.423, allocations: 1.145 MB / 481.8 MB, free: 5.355 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001599/0.4231, allocations: 91.44 kB / 481.9 MB, free: 5.27 MB / 398.1 MB Notification: Performance of SimCode: time 7.32e-07/0.4231, allocations: 4 kB / 481.9 MB, free: 5.266 MB / 398.1 MB Notification: Performance of Templates: time 0.03505/0.4582, allocations: 26.1 MB / 0.4961 GB, free: 11.22 MB / 430.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