Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Spice3.Examples.InvertersApartRecord,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Spice3_Examples_InvertersApartRecord",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Spice3.Examples.InvertersApartRecord,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Spice3_Examples_InvertersApartRecord",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001633/0.001633, allocations: 118.8 kB / 17.79 MB, free: 5.254 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.00194/0.00194, allocations: 198 kB / 18.73 MB, free: 4.312 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.453/1.453, allocations: 227.4 MB / 246.9 MB, free: 10.48 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001802/0.001802, allocations: 63.91 kB / 358.2 MB, free: 13.45 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2448/0.2466, allocations: 50.54 MB / 408.7 MB, free: 1.559 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.InvertersApartRecord): time 0.01519/0.2618, allocations: 14.73 MB / 423.5 MB, free: 2.773 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.02565/0.2875, allocations: 20.71 MB / 444.2 MB, free: 13.99 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002221/0.2898, allocations: 87.25 kB / 444.3 MB, free: 13.9 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003253/0.2931, allocations: 1.224 MB / 445.5 MB, free: 12.67 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00707/0.3002, allocations: 2.305 MB / 447.8 MB, free: 10.35 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00434/0.3045, allocations: 1.439 MB / 449.2 MB, free: 8.902 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0105/0.3151, allocations: 6.563 MB / 455.8 MB, free: 2.32 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0008568/0.3159, allocations: 457.1 kB / 456.2 MB, free: 1.844 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00171/0.3177, allocations: 1.085 MB / 457.3 MB, free: 0.7539 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001489/0.3192, allocations: 1.11 MB / 458.4 MB, free: 15.63 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001887/0.3194, allocations: 72 kB / 458.5 MB, free: 15.56 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003951/0.3233, allocations: 1.482 MB / 460 MB, free: 14.08 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003717/0.3237, allocations: 325.6 kB / 460.3 MB, free: 13.76 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001564/0.3253, allocations: 1.366 MB / 461.7 MB, free: 12.39 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005289/0.3306, allocations: 3.803 MB / 465.5 MB, free: 8.566 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.226e-06/0.3306, allocations: 0 / 465.5 MB, free: 8.566 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.493e-06/0.3306, allocations: 3.938 kB / 465.5 MB, free: 8.562 MB / 382.1 MB Notification: Performance of Transformations before backend: time 6.554e-05/0.3307, allocations: 3.938 kB / 465.5 MB, free: 8.559 MB / 382.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.005564/0.3363, allocations: 3.802 MB / 469.3 MB, free: 4.676 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.485e-05/0.3363, allocations: 12.03 kB / 469.3 MB, free: 4.664 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000145/0.3365, allocations: 102.5 kB / 469.4 MB, free: 4.555 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005055/0.337, allocations: 413.4 kB / 469.8 MB, free: 4.148 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003502/0.3405, allocations: 2.453 MB / 472.3 MB, free: 1.625 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.058e-05/0.3406, allocations: 37 kB / 472.3 MB, free: 1.59 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000134/0.3407, allocations: 48 kB / 472.3 MB, free: 1.543 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001413/0.3421, allocations: 0.7265 MB / 473.1 MB, free: 0.8086 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.937e-05/0.3422, allocations: 3.984 kB / 473.1 MB, free: 0.8047 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.618e-05/0.3422, allocations: 27.98 kB / 473.1 MB, free: 0.7773 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.474e-05/0.3423, allocations: 16 kB / 473.1 MB, free: 0.7617 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001634/0.3439, allocations: 0.8202 MB / 473.9 MB, free: 15.94 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005276/0.3492, allocations: 3.059 MB / 477 MB, free: 12.8 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001289/0.3505, allocations: 0.579 MB / 477.6 MB, free: 12.21 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001051/0.3516, allocations: 0.6438 MB / 478.2 MB, free: 11.56 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.033/0.3846, allocations: 30.75 MB / 0.497 GB, free: 8.559 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000779/0.3854, allocations: 365.7 kB / 0.4974 GB, free: 8.191 MB / 430.1 MB Notification: Performance of pre-optimization done (n=49): time 2.785e-06/0.3854, allocations: 0 / 0.4974 GB, free: 8.191 MB / 430.1 MB Notification: Performance of matching and sorting (n=49): time 0.002331/0.3878, allocations: 1.114 MB / 0.4985 GB, free: 7.066 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.298e-05/0.3878, allocations: 55.41 kB / 0.4985 GB, free: 7 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003749/0.3916, allocations: 2.939 MB / 0.5014 GB, free: 4.051 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 7.107e-05/0.3917, allocations: 37.7 kB / 0.5014 GB, free: 4.008 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001402/0.3931, allocations: 1.498 MB / 0.5029 GB, free: 2.5 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001794/0.3933, allocations: 170.6 kB / 0.5031 GB, free: 2.332 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003088/0.3936, allocations: 230.4 kB / 0.5033 GB, free: 2.102 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0001672/0.3937, allocations: 337.9 kB / 0.5036 GB, free: 1.766 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006015/0.3944, allocations: 245.9 kB / 0.5038 GB, free: 1.527 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008689/0.3952, allocations: 0.602 MB / 0.5044 GB, free: 0.7461 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001521/0.3968, allocations: 0.9012 MB / 0.5053 GB, free: 15.67 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.005e-05/0.3968, allocations: 0 / 0.5053 GB, free: 15.67 MB / 446.1 MB Notification: Performance of matching and sorting (n=110) (initialization): time 0.002274/0.3991, allocations: 1.247 MB / 0.5065 GB, free: 14.42 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.347e-05/0.3991, allocations: 12 kB / 0.5065 GB, free: 14.41 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001222/0.3992, allocations: 83.98 kB / 0.5066 GB, free: 14.33 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.113e-05/0.3993, allocations: 16.75 kB / 0.5066 GB, free: 14.31 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007278/0.4, allocations: 203.6 kB / 0.5068 GB, free: 14.11 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.984e-05/0.4001, allocations: 27.86 kB / 0.5068 GB, free: 14.09 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009367/0.401, allocations: 115.3 kB / 0.507 GB, free: 13.97 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001136/0.4011, allocations: 64 kB / 0.507 GB, free: 13.91 MB / 446.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 (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 (102): * Single equations (assignments): 98 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 4 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0007618/0.4019, allocations: 433.5 kB / 0.5074 GB, free: 13.48 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004153/0.4023, allocations: 401.5 kB / 0.5078 GB, free: 13.08 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002658/0.405, allocations: 1.19 MB / 0.509 GB, free: 11.88 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.467e-06/0.405, allocations: 4 kB / 0.509 GB, free: 11.87 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.464e-06/0.405, allocations: 3.984 kB / 0.509 GB, free: 11.87 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.753e-06/0.405, allocations: 7.984 kB / 0.509 GB, free: 11.86 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003396/0.4084, allocations: 2.096 MB / 0.511 GB, free: 9.695 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001055/0.4086, allocations: 68 kB / 0.5111 GB, free: 9.629 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004886/0.409, allocations: 99.78 kB / 0.5112 GB, free: 9.531 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.306e-06/0.4091, allocations: 4 kB / 0.5112 GB, free: 9.527 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.925e-05/0.4091, allocations: 32 kB / 0.5112 GB, free: 9.496 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.972e-06/0.4091, allocations: 4 kB / 0.5112 GB, free: 9.492 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.854e-06/0.4092, allocations: 64 / 0.5112 GB, free: 9.492 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002385/0.4115, allocations: 1.314 MB / 0.5125 GB, free: 8.148 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007733/0.4123, allocations: 494.4 kB / 0.513 GB, free: 7.645 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002593/0.4126, allocations: 11.98 kB / 0.513 GB, free: 7.633 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006795/0.4133, allocations: 27.97 kB / 0.513 GB, free: 7.605 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001622/0.4135, allocations: 63.95 kB / 0.5131 GB, free: 7.543 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.214e-05/0.4135, allocations: 39.98 kB / 0.5131 GB, free: 7.504 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.002622/0.4162, allocations: 1.907 MB / 0.515 GB, free: 5.598 MB / 446.1 MB Notification: Performance of sort global known variables: time 2.3e-07/0.4162, allocations: 0 / 0.515 GB, free: 5.598 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.001409/0.4176, allocations: 0.5852 MB / 0.5156 GB, free: 5.012 MB / 446.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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.003808/0.4214, allocations: 2.554 MB / 0.5181 GB, free: 2.426 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.001686/0.4231, allocations: 0.8098 MB / 0.5188 GB, free: 1.59 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 2.555e-06/0.4231, allocations: 256 / 0.5188 GB, free: 1.59 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008064/0.4239, allocations: 451 kB / 0.5193 GB, free: 1.125 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002589/0.4265, allocations: 0.6151 MB / 0.5199 GB, free: 0.5039 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.218/0.6446, allocations: 16.45 MB / 0.5359 GB, free: 129.3 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001618/0.6463, allocations: 1.662 MB / 0.5376 GB, free: 128.6 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.001206/0.6475, allocations: 359.1 kB / 0.5379 GB, free: 128.6 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001016/0.6485, allocations: 1.216 MB / 0.5391 GB, free: 128.3 MB / 462.1 MB Notification: Performance of SimCode: time 6.21e-07/0.6485, allocations: 1.375 kB / 0.5391 GB, free: 128.3 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08986/0.7384, allocations: 60.85 MB / 0.5985 GB, free: 74.28 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 15.56/16.29, allocations: 15.77 kB / 0.5985 GB, free: 74.27 MB / 462.1 MB (rm -f Modelica_trunk_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.sim & python3 -m fmpy simulate --output-file Modelica_trunk_Modelica.Electrical.Spice3.Examples.InvertersApartRecord_res.csv --start-time 0 --stop-time 5 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.002 Modelica_trunk_Modelica_Electrical_Spice3_Examples_InvertersApartRecord.fmu > Modelica_trunk_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.pipe 2>&1)