Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.2_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.2.2_Modelica.Electrical.Spice3.Examples.InvertersApartRecord") translateModel(Modelica.Electrical.Spice3.Examples.InvertersApartRecord,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.2.2_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.001054/0.001054, allocations: 93.84 kB / 16.3 MB, free: 5.996 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.001331/0.001331, allocations: 182.6 kB / 17.2 MB, free: 5.914 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.478/1.478, allocations: 205.4 MB / 223.4 MB, free: 13.16 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.0004778/0.0004778, allocations: 12 kB / 280.1 MB, free: 3.762 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08839/0.08888, allocations: 47.58 MB / 327.7 MB, free: 4.113 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.InvertersApartRecord): time 0.009694/0.09863, allocations: 11.28 MB / 339 MB, free: 8.801 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.02045/0.1192, allocations: 16.98 MB / 355.9 MB, free: 7.777 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002215/0.1214, allocations: 31.81 kB / 356 MB, free: 7.746 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003096/0.1246, allocations: 0.9679 MB / 356.9 MB, free: 6.773 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007506/0.1321, allocations: 2.057 MB / 359 MB, free: 4.711 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004086/0.1362, allocations: 1.149 MB / 360.1 MB, free: 3.559 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.01066/0.1469, allocations: 6.072 MB / 366.2 MB, free: 13.48 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0009497/0.1479, allocations: 416.5 kB / 366.6 MB, free: 13.04 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001543/0.1495, allocations: 0.8318 MB / 367.5 MB, free: 12.2 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0015/0.151, allocations: 0.9862 MB / 368.4 MB, free: 11.21 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.00015/0.1511, allocations: 40 kB / 368.5 MB, free: 11.17 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004376/0.1555, allocations: 1.214 MB / 369.7 MB, free: 9.953 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003027/0.1559, allocations: 273.9 kB / 370 MB, free: 9.684 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0007974/0.1567, allocations: 0.6287 MB / 370.6 MB, free: 9.047 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003207/0.1599, allocations: 2.618 MB / 373.2 MB, free: 6.422 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.905e-06/0.1599, allocations: 4 kB / 373.2 MB, free: 6.418 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.423e-06/0.1599, allocations: 0 / 373.2 MB, free: 6.418 MB / 318.1 MB Notification: Performance of Transformations before backend: time 4.033e-05/0.1599, allocations: 3.938 kB / 373.2 MB, free: 6.414 MB / 318.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.005145/0.1651, allocations: 3.268 MB / 376.5 MB, free: 3.07 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.412e-05/0.1652, allocations: 8.031 kB / 376.5 MB, free: 3.062 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004489/0.1656, allocations: 403.1 kB / 376.9 MB, free: 2.664 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003766/0.1694, allocations: 2.258 MB / 379.1 MB, free: 344 kB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.077e-05/0.1694, allocations: 41 kB / 379.2 MB, free: 304 kB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001193/0.1696, allocations: 55.91 kB / 379.2 MB, free: 248 kB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.1978/0.3674, allocations: 0.7415 MB / 380 MB, free: 36.58 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.43e-05/0.3674, allocations: 3.469 kB / 380 MB, free: 36.58 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.833e-05/0.3675, allocations: 17.58 kB / 380 MB, free: 36.58 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.699e-05/0.3676, allocations: 22.91 kB / 380 MB, free: 36.58 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002083/0.3697, allocations: 0.8591 MB / 380.9 MB, free: 36.58 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007344/0.377, allocations: 3.056 MB / 383.9 MB, free: 36.11 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001344/0.3784, allocations: 0.6231 MB / 384.6 MB, free: 36.09 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02858/0.407, allocations: 30.35 MB / 414.9 MB, free: 13.39 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006968/0.4078, allocations: 381.3 kB / 415.3 MB, free: 13.24 MB / 318.1 MB Notification: Performance of pre-optimization done (n=49): time 2.866e-06/0.4078, allocations: 0 / 415.3 MB, free: 13.24 MB / 318.1 MB Notification: Performance of matching and sorting (n=49): time 0.002311/0.4101, allocations: 1.473 MB / 416.8 MB, free: 12.52 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.221e-05/0.4101, allocations: 57.06 kB / 416.8 MB, free: 12.46 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003118/0.4133, allocations: 2.915 MB / 419.7 MB, free: 11.64 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 5.367e-05/0.4133, allocations: 39.89 kB / 419.8 MB, free: 11.61 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009813/0.4143, allocations: 1.496 MB / 421.3 MB, free: 11.06 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001238/0.4145, allocations: 165.3 kB / 421.4 MB, free: 10.9 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.087e-05/0.4145, allocations: 20.47 kB / 421.5 MB, free: 10.88 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 8.124e-05/0.4146, allocations: 338 kB / 421.8 MB, free: 10.55 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00053/0.4151, allocations: 261.8 kB / 422 MB, free: 10.29 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006354/0.4158, allocations: 0.6203 MB / 422.7 MB, free: 9.504 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005815/0.4164, allocations: 343.4 kB / 423 MB, free: 9.184 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.444e-06/0.4164, allocations: 4 kB / 423 MB, free: 9.18 MB / 318.1 MB Notification: Performance of matching and sorting (n=110) (initialization): time 0.001784/0.4182, allocations: 1.26 MB / 424.3 MB, free: 7.98 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.531e-05/0.4182, allocations: 15.98 kB / 424.3 MB, free: 7.965 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.954e-05/0.4183, allocations: 80 kB / 424.4 MB, free: 7.887 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.153e-05/0.4183, allocations: 20.7 kB / 424.4 MB, free: 7.867 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000743/0.4191, allocations: 217 kB / 424.6 MB, free: 7.672 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.464e-05/0.4191, allocations: 27.16 kB / 424.6 MB, free: 7.652 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00104/0.4202, allocations: 126.9 kB / 424.7 MB, free: 7.527 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.241e-05/0.4203, allocations: 64 kB / 424.8 MB, free: 7.465 MB / 318.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.000678/0.421, allocations: 433.5 kB / 425.2 MB, free: 7.047 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002585/0.4212, allocations: 383.4 kB / 425.6 MB, free: 6.668 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002676/0.4239, allocations: 1.263 MB / 426.9 MB, free: 5.41 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.646e-06/0.4239, allocations: 5.969 kB / 426.9 MB, free: 5.406 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.011e-06/0.4239, allocations: 0 / 426.9 MB, free: 5.406 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.06e-06/0.4239, allocations: 0 / 426.9 MB, free: 5.406 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002975/0.4269, allocations: 2.135 MB / 429 MB, free: 3.219 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.708e-05/0.427, allocations: 76.94 kB / 429.1 MB, free: 3.145 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000462/0.4275, allocations: 98.81 kB / 429.2 MB, free: 3.051 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.616e-06/0.4275, allocations: 5.75 kB / 429.2 MB, free: 3.047 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.102e-05/0.4276, allocations: 35.94 kB / 429.2 MB, free: 3.012 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.801e-06/0.4276, allocations: 8 kB / 429.2 MB, free: 3.004 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.685e-06/0.4276, allocations: 2.906 kB / 429.2 MB, free: 3.004 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00191/0.4295, allocations: 1.417 MB / 430.6 MB, free: 1.539 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007164/0.4302, allocations: 470.8 kB / 431.1 MB, free: 1.059 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002734/0.4305, allocations: 12 kB / 431.1 MB, free: 1.047 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006475/0.4312, allocations: 40.03 kB / 431.1 MB, free: 1.008 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001452/0.4313, allocations: 67.11 kB / 431.2 MB, free: 0.9453 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.283e-05/0.4314, allocations: 40 kB / 431.3 MB, free: 0.9062 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.002441/0.4338, allocations: 1.881 MB / 433.1 MB, free: 15.03 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.683e-06/0.4338, allocations: 0 / 433.1 MB, free: 15.03 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.001561/0.4354, allocations: 0.599 MB / 433.7 MB, free: 14.45 MB / 334.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.001164/0.4366, allocations: 0.74 MB / 434.5 MB, free: 13.88 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.00185/0.4385, allocations: 0.843 MB / 435.3 MB, free: 13.05 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 3.887e-06/0.4385, allocations: 0 / 435.3 MB, free: 13.05 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007604/0.4392, allocations: 464.9 kB / 435.8 MB, free: 12.58 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001493/0.4408, allocations: 490.5 kB / 436.2 MB, free: 12.1 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007492/0.4483, allocations: 4.921 MB / 441.2 MB, free: 7.16 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001332/0.4496, allocations: 1.731 MB / 442.9 MB, free: 5.402 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.001337/0.451, allocations: 361.3 kB / 443.3 MB, free: 5.043 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002202/0.4512, allocations: 147.4 kB / 443.4 MB, free: 4.898 MB / 334.1 MB Notification: Performance of SimCode: time 8.52e-07/0.4512, allocations: 0 / 443.4 MB, free: 4.898 MB / 334.1 MB Notification: Performance of Templates: time 0.05838/0.5096, allocations: 28.51 MB / 471.9 MB, free: 8.477 MB / 366.1 MB make -j1 -f Modelica_3.2.2_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.makefile Environment - environmentSimulation: (rm -f Modelica_3.2.2_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.pipe ; mkfifo Modelica_3.2.2_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.pipe ; head -c 1048576 < Modelica_3.2.2_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.pipe >> ../files/Modelica_3.2.2_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.sim & ./Modelica_3.2.2_Modelica.Electrical.Spice3.Examples.InvertersApartRecord -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.2_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.pipe 2>&1) Environment - environmentSimulation: