Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.1_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.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.InvertersApartRecord,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.1_Modelica.Electrical.Spice3.Examples.InvertersApartRecord") translateModel(Modelica.Electrical.Spice3.Examples.InvertersApartRecord,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.1_Modelica.Electrical.Spice3.Examples.InvertersApartRecord") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001283/0.001283, allocations: 100.1 kB / 15.05 MB, free: 1.105 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.001505/0.001505, allocations: 177.3 kB / 15.94 MB, free: 228 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.481/1.481, allocations: 205.4 MB / 222.1 MB, free: 5.531 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.0004694/0.0004694, allocations: 12 kB / 278.9 MB, free: 12.74 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2776/0.2781, allocations: 47.58 MB / 326.4 MB, free: 1.457 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.InvertersApartRecord): time 0.01052/0.2886, allocations: 11.28 MB / 337.7 MB, free: 8.223 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.02082/0.3095, allocations: 16.98 MB / 354.7 MB, free: 7.195 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002461/0.312, allocations: 35.75 kB / 354.7 MB, free: 7.16 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002945/0.315, allocations: 0.9718 MB / 355.7 MB, free: 6.184 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006281/0.3213, allocations: 2.06 MB / 357.8 MB, free: 4.117 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003599/0.3249, allocations: 1.141 MB / 358.9 MB, free: 2.973 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.01119/0.3361, allocations: 6.088 MB / 365 MB, free: 12.88 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0008688/0.337, allocations: 420.5 kB / 365.4 MB, free: 12.43 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001467/0.3385, allocations: 0.8318 MB / 366.2 MB, free: 11.6 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001151/0.3397, allocations: 0.9823 MB / 367.2 MB, free: 10.61 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001491/0.3398, allocations: 44 kB / 367.3 MB, free: 10.57 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003769/0.3436, allocations: 1.214 MB / 368.5 MB, free: 9.352 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003442/0.344, allocations: 274 kB / 368.7 MB, free: 9.082 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0008705/0.3448, allocations: 0.6248 MB / 369.4 MB, free: 8.449 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002937/0.3478, allocations: 2.615 MB / 372 MB, free: 5.828 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.378e-06/0.3478, allocations: 0 / 372 MB, free: 5.828 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.043e-06/0.3478, allocations: 3.938 kB / 372 MB, free: 5.824 MB / 302.1 MB Notification: Performance of Transformations before backend: time 5.602e-05/0.3479, allocations: 0 / 372 MB, free: 5.824 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: 154 * Number of variables: 154 Notification: Performance of Generate backend data structure: time 0.004995/0.3529, allocations: 3.264 MB / 375.2 MB, free: 2.484 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.576e-05/0.3529, allocations: 8.031 kB / 375.3 MB, free: 2.477 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006635/0.3536, allocations: 399.1 kB / 375.6 MB, free: 2.082 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003583/0.3572, allocations: 2.274 MB / 377.9 MB, free: 15.74 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.567e-05/0.3573, allocations: 37 kB / 378 MB, free: 15.7 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001195/0.3574, allocations: 51.91 kB / 378 MB, free: 15.65 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001293/0.3587, allocations: 0.746 MB / 378.7 MB, free: 14.9 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.264e-05/0.3587, allocations: 3.938 kB / 378.8 MB, free: 14.9 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.716e-05/0.3588, allocations: 20 kB / 378.8 MB, free: 14.88 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.242e-05/0.3588, allocations: 19.98 kB / 378.8 MB, free: 14.86 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001514/0.3603, allocations: 0.8593 MB / 379.7 MB, free: 14 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005016/0.3653, allocations: 3.065 MB / 382.7 MB, free: 10.85 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001195/0.3666, allocations: 0.6142 MB / 383.3 MB, free: 10.22 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02915/0.3957, allocations: 30.36 MB / 413.7 MB, free: 7.762 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007283/0.3965, allocations: 381.7 kB / 414.1 MB, free: 7.379 MB / 350.1 MB Notification: Performance of pre-optimization done (n=49): time 2.415e-06/0.3965, allocations: 0 / 414.1 MB, free: 7.379 MB / 350.1 MB Notification: Performance of matching and sorting (n=49): time 0.002303/0.3988, allocations: 1.478 MB / 415.5 MB, free: 5.816 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.218e-05/0.3989, allocations: 55.41 kB / 415.6 MB, free: 5.75 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003195/0.4021, allocations: 2.921 MB / 418.5 MB, free: 2.82 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 6.179e-05/0.4022, allocations: 29.7 kB / 418.5 MB, free: 2.785 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001151/0.4033, allocations: 1.497 MB / 420 MB, free: 1.277 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001475/0.4035, allocations: 169.6 kB / 420.2 MB, free: 1.109 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.993e-05/0.4035, allocations: 16 kB / 420.2 MB, free: 1.094 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001155/0.4036, allocations: 337.9 kB / 420.6 MB, free: 0.7578 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005651/0.4042, allocations: 261.9 kB / 420.8 MB, free: 0.5039 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007586/0.405, allocations: 0.6138 MB / 421.4 MB, free: 15.71 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006548/0.4056, allocations: 352.4 kB / 421.8 MB, free: 15.37 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.077e-06/0.4057, allocations: 7.938 kB / 421.8 MB, free: 15.36 MB / 366.1 MB Notification: Performance of matching and sorting (n=110) (initialization): time 0.001976/0.4076, allocations: 1.265 MB / 423 MB, free: 14.09 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.042e-05/0.4077, allocations: 8 kB / 423 MB, free: 14.08 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001061/0.4078, allocations: 84 kB / 423.1 MB, free: 14 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.455e-05/0.4078, allocations: 16 kB / 423.1 MB, free: 13.98 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006955/0.4085, allocations: 216 kB / 423.4 MB, free: 13.77 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.202e-05/0.4086, allocations: 27.86 kB / 423.4 MB, free: 13.74 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008577/0.4094, allocations: 119 kB / 423.5 MB, free: 13.62 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001032/0.4095, allocations: 71.98 kB / 423.6 MB, free: 13.55 MB / 366.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 56 * 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 (102): * Single equations (assignments): 98 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 4 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0006574/0.4102, allocations: 429.5 kB / 424 MB, free: 13.12 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003173/0.4105, allocations: 387.3 kB / 424.4 MB, free: 12.74 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002882/0.4134, allocations: 1.257 MB / 425.6 MB, free: 11.48 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.027e-06/0.4134, allocations: 8 kB / 425.6 MB, free: 11.47 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.861e-06/0.4134, allocations: 3.953 kB / 425.6 MB, free: 11.47 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.65e-06/0.4135, allocations: 3.984 kB / 425.6 MB, free: 11.46 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002979/0.4164, allocations: 2.124 MB / 427.8 MB, free: 9.266 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.64e-05/0.4165, allocations: 75.92 kB / 427.8 MB, free: 9.191 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004618/0.417, allocations: 103.9 kB / 427.9 MB, free: 9.09 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.276e-06/0.417, allocations: 7.953 kB / 427.9 MB, free: 9.082 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.493e-05/0.4171, allocations: 36 kB / 428 MB, free: 9.047 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.558e-06/0.4171, allocations: 3.984 kB / 428 MB, free: 9.043 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.126e-06/0.4171, allocations: 11.94 kB / 428 MB, free: 9.031 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002113/0.4192, allocations: 1.417 MB / 429.4 MB, free: 7.566 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007374/0.42, allocations: 468.3 kB / 429.9 MB, free: 7.086 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002834/0.4203, allocations: 12 kB / 429.9 MB, free: 7.074 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006436/0.4209, allocations: 44.02 kB / 429.9 MB, free: 7.031 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001497/0.4211, allocations: 55.94 kB / 430 MB, free: 6.977 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.204e-05/0.4212, allocations: 36 kB / 430 MB, free: 6.941 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.002509/0.4237, allocations: 1.884 MB / 431.9 MB, free: 5.059 MB / 366.1 MB Notification: Performance of sort global known variables: time 2.1e-07/0.4237, allocations: 0 / 431.9 MB, free: 5.059 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.001285/0.425, allocations: 0.5855 MB / 432.5 MB, free: 4.473 MB / 366.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 2 (c1.vinternal,c2.vinternal) * 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 (42): * Single equations (assignments): 32 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 4 * When equations: 6 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001056/0.426, allocations: 0.7572 MB / 433.2 MB, free: 3.707 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001684/0.4277, allocations: 0.8412 MB / 434.1 MB, free: 2.848 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 4.999e-06/0.4277, allocations: 4.125 kB / 434.1 MB, free: 2.844 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007438/0.4285, allocations: 467.1 kB / 434.5 MB, free: 2.359 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001504/0.43, allocations: 494.4 kB / 435 MB, free: 1.871 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007364/0.4374, allocations: 4.92 MB / 439.9 MB, free: 12.91 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001197/0.4386, allocations: 1.731 MB / 441.7 MB, free: 11.16 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.001441/0.4401, allocations: 357.3 kB / 442 MB, free: 10.8 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000216/0.4403, allocations: 155.4 kB / 442.2 MB, free: 10.65 MB / 382.1 MB Notification: Performance of SimCode: time 1.202e-06/0.4403, allocations: 0 / 442.2 MB, free: 10.65 MB / 382.1 MB Notification: Performance of Templates: time 0.2171/0.6574, allocations: 28.5 MB / 470.7 MB, free: 106 MB / 382.1 MB make -j1 -f Modelica_3.1_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.makefile Environment - environmentSimulation: (rm -f Modelica_3.1_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.pipe ; mkfifo Modelica_3.1_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.pipe ; head -c 1048576 < Modelica_3.1_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.pipe >> ../files/Modelica_3.1_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.sim & ./Modelica_3.1_Modelica.Electrical.Spice3.Examples.InvertersApartRecord -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.1_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.pipe 2>&1) Environment - environmentSimulation: