Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.1_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="empty",numberOfIntervals=3998,variableFilter="",fileNamePrefix="Modelica_3.1_Modelica.Electrical.Spice3.Examples.Inverter") translateModel(Modelica.Electrical.Spice3.Examples.Inverter,tolerance=1e-07,outputFormat="empty",numberOfIntervals=3998,variableFilter="",fileNamePrefix="Modelica_3.1_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.0009194/0.0009193, allocations: 91.38 kB / 15.06 MB, free: 1.098 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.001064/0.001064, allocations: 172.7 kB / 15.95 MB, free: 208 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.558/1.558, allocations: 205.4 MB / 222.1 MB, free: 5.527 MB / 174.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.0005677/0.000568, allocations: 8 kB / 278.9 MB, free: 12.7 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3055/0.306, allocations: 47.58 MB / 326.5 MB, free: 1.426 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Inverter): time 0.007121/0.3132, allocations: 6.78 MB / 333.2 MB, free: 12.03 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.02076/0.334, allocations: 16.78 MB / 350 MB, free: 11.88 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001813/0.3359, allocations: 35.69 kB / 350.1 MB, free: 11.84 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002532/0.3385, allocations: 0.6886 MB / 350.7 MB, free: 11.15 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007032/0.3455, allocations: 1.386 MB / 352.1 MB, free: 9.754 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005292/0.3508, allocations: 0.9989 MB / 353.1 MB, free: 8.75 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.007275/0.3581, allocations: 2.985 MB / 356.1 MB, free: 5.758 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0008/0.3589, allocations: 201.1 kB / 356.3 MB, free: 5.539 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001157/0.3601, allocations: 441.8 kB / 356.7 MB, free: 5.105 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001168/0.3613, allocations: 0.5048 MB / 357.3 MB, free: 4.598 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001923/0.3615, allocations: 24 kB / 357.3 MB, free: 4.574 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004741/0.3663, allocations: 1.066 MB / 358.3 MB, free: 3.508 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000228/0.3665, allocations: 139 kB / 358.5 MB, free: 3.371 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0007993/0.3673, allocations: 328.7 kB / 358.8 MB, free: 3.043 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002582/0.3699, allocations: 1.566 MB / 360.4 MB, free: 1.473 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.051e-05/0.3699, allocations: 4 kB / 360.4 MB, free: 1.469 MB / 286.1 MB Notification: Performance of FrontEnd: time 3.066e-06/0.37, allocations: 0 / 360.4 MB, free: 1.469 MB / 286.1 MB Notification: Performance of Transformations before backend: time 9.517e-05/0.3701, allocations: 0 / 360.4 MB, free: 1.469 MB / 286.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.003692/0.3738, allocations: 1.826 MB / 362.2 MB, free: 15.58 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.989e-05/0.3738, allocations: 12.03 kB / 362.2 MB, free: 15.57 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002199/0.374, allocations: 193.7 kB / 362.4 MB, free: 15.38 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001937/0.376, allocations: 1.289 MB / 363.7 MB, free: 14.02 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.968e-05/0.376, allocations: 20.56 kB / 363.7 MB, free: 14 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.653e-05/0.3761, allocations: 35.98 kB / 363.7 MB, free: 13.96 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008702/0.377, allocations: 453.2 kB / 364.2 MB, free: 13.52 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.355e-05/0.377, allocations: 0 / 364.2 MB, free: 13.52 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.109e-05/0.3771, allocations: 8 kB / 364.2 MB, free: 13.51 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.268e-05/0.3771, allocations: 8 kB / 364.2 MB, free: 13.5 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009994/0.3781, allocations: 0.5098 MB / 364.7 MB, free: 12.99 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002653/0.3808, allocations: 1.627 MB / 366.3 MB, free: 11.3 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000866/0.3817, allocations: 419.3 kB / 366.7 MB, free: 10.88 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007039/0.3824, allocations: 445.8 kB / 367.2 MB, free: 10.44 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01547/0.3979, allocations: 15.25 MB / 382.4 MB, free: 9.125 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006561/0.3986, allocations: 283 kB / 382.7 MB, free: 8.836 MB / 318.1 MB Notification: Performance of pre-optimization done (n=29): time 3.436e-06/0.3986, allocations: 0 / 382.7 MB, free: 8.836 MB / 318.1 MB Notification: Performance of matching and sorting (n=29): time 0.002583/0.4012, allocations: 0.9156 MB / 383.6 MB, free: 7.891 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.351e-05/0.4013, allocations: 59.39 kB / 383.7 MB, free: 7.82 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002212/0.4035, allocations: 1.44 MB / 385.1 MB, free: 6.344 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 4.611e-05/0.4035, allocations: 37.69 kB / 385.2 MB, free: 6.301 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006658/0.4042, allocations: 0.7226 MB / 385.9 MB, free: 5.574 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000112/0.4043, allocations: 106.6 kB / 386 MB, free: 5.469 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.699e-05/0.4044, allocations: 8 kB / 386 MB, free: 5.461 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001162/0.4045, allocations: 326 kB / 386.3 MB, free: 5.137 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004345/0.4049, allocations: 188.9 kB / 386.5 MB, free: 4.949 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005941/0.4056, allocations: 375.5 kB / 386.9 MB, free: 4.492 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004909/0.4061, allocations: 220 kB / 387.1 MB, free: 4.277 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.752e-06/0.4061, allocations: 4 kB / 387.1 MB, free: 4.273 MB / 318.1 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.00163/0.4077, allocations: 0.7868 MB / 387.9 MB, free: 3.477 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.74e-05/0.4077, allocations: 8 kB / 387.9 MB, free: 3.469 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.179e-05/0.4078, allocations: 43.98 kB / 387.9 MB, free: 3.426 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003559/0.4082, allocations: 140.8 kB / 388.1 MB, free: 3.285 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004075/0.4086, allocations: 111.8 kB / 388.2 MB, free: 3.176 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006666/0.4093, allocations: 0.6811 MB / 388.8 MB, free: 2.469 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007917/0.4101, allocations: 79.5 kB / 388.9 MB, free: 2.391 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.251e-05/0.4102, allocations: 40.05 kB / 389 MB, free: 2.352 MB / 318.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 ($PRE.vin.counter,vin.counter,$PRE.v.counter,v.counter,$whenCondition2,$whenCondition1,$PRE.vin.T0,vin.T0,$PRE.vin.counter2,vin.counter2,$PRE.v.T0,v.T0,$PRE.v.counter2,v.counter2) * 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 (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 5} Notification: Performance of prepare postOptimizeDAE: time 0.0006579/0.4109, allocations: 277.6 kB / 389.2 MB, free: 2.07 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003682/0.4112, allocations: 185.8 kB / 389.4 MB, free: 1.887 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002176/0.4134, allocations: 0.7932 MB / 390.2 MB, free: 1.082 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.005e-05/0.4135, allocations: 4 kB / 390.2 MB, free: 1.078 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.825e-06/0.4135, allocations: 4 kB / 390.2 MB, free: 1.074 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.598e-06/0.4135, allocations: 3.984 kB / 390.2 MB, free: 1.07 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00276/0.4163, allocations: 1.347 MB / 391.6 MB, free: 15.65 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.925e-05/0.4163, allocations: 40 kB / 391.6 MB, free: 15.61 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002407/0.4166, allocations: 59.95 kB / 391.7 MB, free: 15.55 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002899/0.4169, allocations: 128.7 kB / 391.8 MB, free: 15.43 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.503e-05/0.4169, allocations: 16 kB / 391.8 MB, free: 15.41 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006764/0.4176, allocations: 0.6734 MB / 392.5 MB, free: 14.71 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.916e-06/0.4176, allocations: 0 / 392.5 MB, free: 14.71 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001359/0.419, allocations: 0.7592 MB / 393.2 MB, free: 13.92 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000475/0.4195, allocations: 278.7 kB / 393.5 MB, free: 13.63 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002456/0.4197, allocations: 12 kB / 393.5 MB, free: 13.62 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005021/0.4202, allocations: 39.95 kB / 393.6 MB, free: 13.58 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001333/0.4204, allocations: 39.95 kB / 393.6 MB, free: 13.54 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.308e-05/0.4204, allocations: 20 kB / 393.6 MB, free: 13.52 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.001569/0.422, allocations: 0.9497 MB / 394.6 MB, free: 12.55 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.422, allocations: 4 kB / 394.6 MB, free: 12.55 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.001155/0.4232, allocations: 327.8 kB / 394.9 MB, free: 12.23 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 (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 5} Notification: Performance of Backend phase and start with SimCode phase: time 0.001051/0.4243, allocations: 0.5544 MB / 395.4 MB, free: 11.66 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.001388/0.4257, allocations: 0.5474 MB / 396 MB, free: 11.11 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 3.587e-06/0.4257, allocations: 0 / 396 MB, free: 11.11 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006578/0.4263, allocations: 319.4 kB / 396.3 MB, free: 10.78 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001153/0.4275, allocations: 250.9 kB / 396.5 MB, free: 10.53 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005042/0.4326, allocations: 2.525 MB / 399.1 MB, free: 7.965 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009669/0.4336, allocations: 1.153 MB / 400.2 MB, free: 6.781 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0007739/0.4343, allocations: 203.9 kB / 400.4 MB, free: 6.578 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001719/0.4345, allocations: 83.44 kB / 400.5 MB, free: 6.496 MB / 334.1 MB Notification: Performance of SimCode: time 1.342e-06/0.4345, allocations: 0 / 400.5 MB, free: 6.496 MB / 334.1 MB Notification: Performance of Templates: time 0.03729/0.4718, allocations: 18.47 MB / 419 MB, free: 4 MB / 350.1 MB make -j1 -f Modelica_3.1_Modelica.Electrical.Spice3.Examples.Inverter.makefile (rm -f Modelica_3.1_Modelica.Electrical.Spice3.Examples.Inverter.pipe ; mkfifo Modelica_3.1_Modelica.Electrical.Spice3.Examples.Inverter.pipe ; head -c 1048576 < Modelica_3.1_Modelica.Electrical.Spice3.Examples.Inverter.pipe >> ../files/Modelica_3.1_Modelica.Electrical.Spice3.Examples.Inverter.sim & ./Modelica_3.1_Modelica.Electrical.Spice3.Examples.Inverter -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.1_Modelica.Electrical.Spice3.Examples.Inverter.pipe 2>&1)