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.001268/0.001268, allocations: 110 kB / 18.4 MB, free: 4.699 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.001125/0.001125, allocations: 190.3 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.455/1.455, allocations: 205.1 MB / 225.2 MB, free: 12.24 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.001191/0.001191, allocations: 47.94 kB / 329.2 MB, free: 3.32 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09522/0.09642, allocations: 46.61 MB / 375.8 MB, free: 4.598 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Inverter): time 0.2159/0.3124, allocations: 7.721 MB / 383.5 MB, free: 9.098 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.01918/0.3316, allocations: 18.52 MB / 402 MB, free: 12.19 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001658/0.3333, allocations: 63 kB / 402.1 MB, free: 12.15 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00345/0.3368, allocations: 0.8231 MB / 402.9 MB, free: 11.71 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.008602/0.3454, allocations: 1.771 MB / 404.7 MB, free: 10.66 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005871/0.3513, allocations: 1.292 MB / 406 MB, free: 9.961 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.006948/0.3583, allocations: 3.183 MB / 409.2 MB, free: 8.797 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005213/0.3588, allocations: 223.8 kB / 409.4 MB, free: 8.684 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001143/0.36, allocations: 0.5172 MB / 409.9 MB, free: 8.48 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007149/0.3607, allocations: 0.551 MB / 410.5 MB, free: 8.211 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001292/0.3609, allocations: 44.73 kB / 410.5 MB, free: 8.207 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005561/0.3664, allocations: 1.124 MB / 411.6 MB, free: 7.992 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002036/0.3667, allocations: 171.5 kB / 411.8 MB, free: 7.875 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0008208/0.3675, allocations: 0.6839 MB / 412.5 MB, free: 7.445 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0044/0.3719, allocations: 2.233 MB / 414.7 MB, free: 6.09 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.312e-06/0.3719, allocations: 4 kB / 414.7 MB, free: 6.086 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.164e-06/0.3719, allocations: 1.5 kB / 414.7 MB, free: 6.086 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.871e-05/0.372, allocations: 0 / 414.7 MB, free: 6.086 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.00344/0.3754, allocations: 2.007 MB / 416.7 MB, free: 4.551 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.45e-05/0.3755, allocations: 13.19 kB / 416.7 MB, free: 4.547 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00025/0.3757, allocations: 197.6 kB / 416.9 MB, free: 4.445 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001829/0.3776, allocations: 1.362 MB / 418.3 MB, free: 3.359 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.549e-05/0.3776, allocations: 21.95 kB / 418.3 MB, free: 3.348 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.083e-05/0.3777, allocations: 25.31 kB / 418.3 MB, free: 3.34 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008946/0.3786, allocations: 432.3 kB / 418.8 MB, free: 3.086 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.359e-05/0.3786, allocations: 7.031 kB / 418.8 MB, free: 3.082 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.241e-05/0.3787, allocations: 11.94 kB / 418.8 MB, free: 3.07 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.182e-05/0.3787, allocations: 6.562 kB / 418.8 MB, free: 3.07 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001058/0.3797, allocations: 477.9 kB / 419.2 MB, free: 2.879 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002723/0.3825, allocations: 1.619 MB / 420.9 MB, free: 1.711 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009286/0.3834, allocations: 375.3 kB / 421.2 MB, free: 1.508 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007483/0.3842, allocations: 419.7 kB / 421.6 MB, free: 1.316 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01464/0.3988, allocations: 15.23 MB / 436.9 MB, free: 196 kB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006424/0.3995, allocations: 267 kB / 437.1 MB, free: 15.91 MB / 366.1 MB Notification: Performance of pre-optimization done (n=29): time 2.274e-06/0.3995, allocations: 0 / 437.1 MB, free: 15.91 MB / 366.1 MB Notification: Performance of matching and sorting (n=29): time 0.002065/0.4016, allocations: 0.8446 MB / 438 MB, free: 15.04 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.557e-05/0.4017, allocations: 55.41 kB / 438 MB, free: 14.98 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001919/0.4036, allocations: 1.464 MB / 439.5 MB, free: 13.48 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 4.048e-05/0.4036, allocations: 33.7 kB / 439.5 MB, free: 13.44 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005745/0.4042, allocations: 0.7188 MB / 440.2 MB, free: 12.71 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.322e-05/0.4043, allocations: 90.73 kB / 440.3 MB, free: 12.62 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001748/0.4045, allocations: 130 kB / 440.5 MB, free: 12.49 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001129/0.4046, allocations: 322 kB / 440.8 MB, free: 12.17 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004338/0.4051, allocations: 169 kB / 440.9 MB, free: 12 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005368/0.4056, allocations: 359.4 kB / 441.3 MB, free: 11.56 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009976/0.4066, allocations: 0.5333 MB / 441.8 MB, free: 10.93 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.309e-06/0.4066, allocations: 0 / 441.8 MB, free: 10.93 MB / 366.1 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.001423/0.4081, allocations: 0.7585 MB / 442.6 MB, free: 10.16 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.152e-05/0.4081, allocations: 8 kB / 442.6 MB, free: 10.16 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.309e-05/0.4082, allocations: 40.84 kB / 442.6 MB, free: 10.12 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003/0.4085, allocations: 140.8 kB / 442.8 MB, free: 9.977 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003963/0.4089, allocations: 104.7 kB / 442.9 MB, free: 9.875 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006204/0.4095, allocations: 0.685 MB / 443.6 MB, free: 9.164 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007218/0.4102, allocations: 79.45 kB / 443.6 MB, free: 9.086 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.435e-05/0.4103, allocations: 32 kB / 443.7 MB, free: 9.055 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.0003808/0.4107, allocations: 273.7 kB / 443.9 MB, free: 8.777 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002106/0.4109, allocations: 185.8 kB / 444.1 MB, free: 8.594 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0017/0.4126, allocations: 0.746 MB / 444.9 MB, free: 7.84 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.27e-06/0.4126, allocations: 0 / 444.9 MB, free: 7.84 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.43e-06/0.4127, allocations: 8 kB / 444.9 MB, free: 7.832 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.924e-06/0.4127, allocations: 6.734 kB / 444.9 MB, free: 7.828 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002095/0.4148, allocations: 1.319 MB / 446.2 MB, free: 6.438 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.811e-05/0.4148, allocations: 32 kB / 446.2 MB, free: 6.406 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002432/0.4151, allocations: 43.95 kB / 446.3 MB, free: 6.363 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002211/0.4153, allocations: 128.9 kB / 446.4 MB, free: 6.234 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.435e-05/0.4154, allocations: 16 kB / 446.4 MB, free: 6.219 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005367/0.4159, allocations: 0.6733 MB / 447.1 MB, free: 5.52 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.793e-06/0.4159, allocations: 0 / 447.1 MB, free: 5.52 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001236/0.4171, allocations: 0.7161 MB / 447.8 MB, free: 4.773 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004069/0.4176, allocations: 294.6 kB / 448.1 MB, free: 4.465 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001587/0.4177, allocations: 8 kB / 448.1 MB, free: 4.457 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004209/0.4182, allocations: 27.95 kB / 448.1 MB, free: 4.43 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001142/0.4183, allocations: 35.97 kB / 448.2 MB, free: 4.395 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.199e-05/0.4183, allocations: 27.98 kB / 448.2 MB, free: 4.367 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.001089/0.4194, allocations: 0.9614 MB / 449.1 MB, free: 3.387 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.4194, allocations: 3.938 kB / 449.1 MB, free: 3.383 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0009118/0.4204, allocations: 331.8 kB / 449.5 MB, free: 3.059 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.0009802/0.4213, allocations: 0.5789 MB / 450.1 MB, free: 2.469 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001507/0.4229, allocations: 0.5122 MB / 450.6 MB, free: 1.945 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 5.079e-06/0.4229, allocations: 0 / 450.6 MB, free: 1.945 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007183/0.4236, allocations: 291.2 kB / 450.8 MB, free: 1.648 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001207/0.4248, allocations: 266.4 kB / 451.1 MB, free: 1.391 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003559/0.4284, allocations: 2.255 MB / 453.4 MB, free: 15.09 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006233/0.429, allocations: 1.153 MB / 454.5 MB, free: 13.91 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001628/0.4292, allocations: 91.44 kB / 454.6 MB, free: 13.82 MB / 382.1 MB Notification: Performance of SimCode: time 6.81e-07/0.4292, allocations: 4 kB / 454.6 MB, free: 13.82 MB / 382.1 MB Notification: Performance of Templates: time 0.03134/0.4606, allocations: 26.06 MB / 480.7 MB, free: 3.719 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