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.001123/0.001123, allocations: 113.2 kB / 17.78 MB, free: 5.262 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001268/0.001268, allocations: 207.8 kB / 18.74 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.369/1.369, allocations: 227.4 MB / 246.9 MB, free: 10.48 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001376/0.001376, allocations: 59.91 kB / 358.2 MB, free: 13.45 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2787/0.2801, allocations: 50.54 MB / 408.7 MB, free: 1.555 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.InvertersApartRecord): time 0.01295/0.2931, allocations: 14.72 MB / 423.5 MB, free: 2.777 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.02399/0.3171, allocations: 20.7 MB / 444.2 MB, free: 14 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003394/0.3205, allocations: 91.25 kB / 444.3 MB, free: 13.91 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004117/0.3247, allocations: 1.243 MB / 445.5 MB, free: 12.66 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.009306/0.334, allocations: 2.325 MB / 447.8 MB, free: 10.32 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005163/0.3392, allocations: 1.443 MB / 449.3 MB, free: 8.867 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.01068/0.3499, allocations: 6.555 MB / 455.8 MB, free: 2.293 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0009148/0.3509, allocations: 465 kB / 456.3 MB, free: 1.809 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00174/0.3526, allocations: 1.108 MB / 457.4 MB, free: 0.6953 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001324/0.354, allocations: 1.106 MB / 458.5 MB, free: 15.58 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001707/0.3541, allocations: 76 kB / 458.6 MB, free: 15.51 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003872/0.358, allocations: 1.479 MB / 460 MB, free: 14.03 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000376/0.3584, allocations: 337.6 kB / 460.4 MB, free: 13.7 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001513/0.3599, allocations: 1.362 MB / 461.7 MB, free: 12.32 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005615/0.3656, allocations: 3.799 MB / 465.5 MB, free: 8.508 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.16e-06/0.3656, allocations: 3.938 kB / 465.5 MB, free: 8.504 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.633e-06/0.3656, allocations: 0 / 465.5 MB, free: 8.504 MB / 382.1 MB Notification: Performance of Transformations before backend: time 8.685e-05/0.3657, allocations: 0 / 465.5 MB, free: 8.504 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.0058/0.3715, allocations: 3.802 MB / 469.3 MB, free: 4.621 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.665e-05/0.3716, allocations: 12.03 kB / 469.3 MB, free: 4.609 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001321/0.3717, allocations: 90.52 kB / 469.4 MB, free: 4.512 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004841/0.3722, allocations: 421.4 kB / 469.8 MB, free: 4.098 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003462/0.3757, allocations: 2.453 MB / 472.3 MB, free: 1.574 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.622e-05/0.3757, allocations: 37 kB / 472.3 MB, free: 1.539 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001347/0.3759, allocations: 55.98 kB / 472.4 MB, free: 1.484 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001354/0.3772, allocations: 0.7265 MB / 473.1 MB, free: 0.75 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.544e-05/0.3772, allocations: 0 / 473.1 MB, free: 0.75 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.815e-05/0.3773, allocations: 16 kB / 473.1 MB, free: 0.7344 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.201e-05/0.3773, allocations: 27.98 kB / 473.2 MB, free: 0.707 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001549/0.3789, allocations: 0.8124 MB / 474 MB, free: 15.89 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005382/0.3843, allocations: 3.071 MB / 477 MB, free: 12.74 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001243/0.3856, allocations: 0.5713 MB / 477.6 MB, free: 12.16 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001006/0.3866, allocations: 0.6477 MB / 478.3 MB, free: 11.5 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.03084/0.4174, allocations: 30.75 MB / 0.4971 GB, free: 8.5 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007697/0.4182, allocations: 369.6 kB / 0.4974 GB, free: 8.129 MB / 430.1 MB Notification: Performance of pre-optimization done (n=49): time 3.427e-06/0.4183, allocations: 0 / 0.4974 GB, free: 8.129 MB / 430.1 MB Notification: Performance of matching and sorting (n=49): time 0.002556/0.4208, allocations: 1.099 MB / 0.4985 GB, free: 7.02 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.424e-05/0.4209, allocations: 63.39 kB / 0.4986 GB, free: 6.945 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003894/0.4248, allocations: 2.931 MB / 0.5014 GB, free: 4.004 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 8.864e-05/0.4249, allocations: 41.69 kB / 0.5015 GB, free: 3.957 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001335/0.4263, allocations: 1.495 MB / 0.5029 GB, free: 2.453 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002251/0.4265, allocations: 174.6 kB / 0.5031 GB, free: 2.281 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003414/0.4269, allocations: 234.4 kB / 0.5033 GB, free: 2.047 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0001446/0.427, allocations: 338 kB / 0.5036 GB, free: 1.711 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005933/0.4276, allocations: 241.8 kB / 0.5039 GB, free: 1.477 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008073/0.4284, allocations: 0.5981 MB / 0.5045 GB, free: 0.6992 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001447/0.4299, allocations: 0.9013 MB / 0.5053 GB, free: 15.62 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.775e-06/0.4299, allocations: 7.938 kB / 0.5053 GB, free: 15.61 MB / 446.1 MB Notification: Performance of matching and sorting (n=110) (initialization): time 0.002262/0.4322, allocations: 1.251 MB / 0.5066 GB, free: 14.36 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.521e-05/0.4322, allocations: 8 kB / 0.5066 GB, free: 14.36 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001093/0.4323, allocations: 80 kB / 0.5067 GB, free: 14.28 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.193e-05/0.4324, allocations: 20 kB / 0.5067 GB, free: 14.26 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00072/0.4331, allocations: 204.2 kB / 0.5069 GB, free: 14.06 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.343e-05/0.4331, allocations: 27.86 kB / 0.5069 GB, free: 14.03 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001045/0.4342, allocations: 111.3 kB / 0.507 GB, free: 13.92 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001007/0.4343, allocations: 71.98 kB / 0.5071 GB, free: 13.85 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.0007497/0.435, allocations: 437.3 kB / 0.5075 GB, free: 13.41 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003734/0.4354, allocations: 397.5 kB / 0.5079 GB, free: 13.02 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002415/0.4378, allocations: 1.194 MB / 0.509 GB, free: 11.81 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.316e-06/0.4379, allocations: 4 kB / 0.509 GB, free: 11.81 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.919e-06/0.4379, allocations: 0 / 0.509 GB, free: 11.81 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.101e-06/0.4379, allocations: 3.984 kB / 0.509 GB, free: 11.8 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003217/0.4411, allocations: 2.1 MB / 0.5111 GB, free: 9.637 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.293e-05/0.4412, allocations: 71.94 kB / 0.5112 GB, free: 9.566 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004724/0.4417, allocations: 91.92 kB / 0.5112 GB, free: 9.477 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.04e-06/0.4417, allocations: 0 / 0.5112 GB, free: 9.477 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.468e-05/0.4418, allocations: 39.98 kB / 0.5113 GB, free: 9.438 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.067e-06/0.4418, allocations: 0 / 0.5113 GB, free: 9.438 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.583e-06/0.4418, allocations: 0 / 0.5113 GB, free: 9.438 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002214/0.444, allocations: 1.318 MB / 0.5126 GB, free: 8.09 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008409/0.4449, allocations: 498.4 kB / 0.513 GB, free: 7.582 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002989/0.4452, allocations: 11.98 kB / 0.5131 GB, free: 7.57 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006839/0.4459, allocations: 35.95 kB / 0.5131 GB, free: 7.535 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001448/0.446, allocations: 59.89 kB / 0.5131 GB, free: 7.477 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.322e-05/0.4461, allocations: 36 kB / 0.5132 GB, free: 7.441 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.002509/0.4486, allocations: 1.907 MB / 0.515 GB, free: 5.535 MB / 446.1 MB Notification: Performance of sort global known variables: time 3e-07/0.4486, allocations: 4 kB / 0.515 GB, free: 5.531 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.001311/0.4499, allocations: 0.5852 MB / 0.5156 GB, free: 4.945 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.003603/0.4535, allocations: 2.554 MB / 0.5181 GB, free: 2.359 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.001606/0.4552, allocations: 0.8049 MB / 0.5189 GB, free: 1.527 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 3.016e-06/0.4552, allocations: 1.312 kB / 0.5189 GB, free: 1.527 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007622/0.456, allocations: 447 kB / 0.5193 GB, free: 1.066 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002591/0.4586, allocations: 0.6267 MB / 0.5199 GB, free: 444 kB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2288/0.6873, allocations: 16.44 MB / 0.536 GB, free: 129.3 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001659/0.689, allocations: 1.667 MB / 0.5376 GB, free: 128.6 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.001351/0.6904, allocations: 355.8 kB / 0.538 GB, free: 128.5 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001414/0.6918, allocations: 1.219 MB / 0.5391 GB, free: 128.2 MB / 462.1 MB Notification: Performance of SimCode: time 1.844e-06/0.6918, allocations: 0 / 0.5391 GB, free: 128.2 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.09017/0.782, allocations: 60.85 MB / 0.5986 GB, free: 74.22 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 15.5/16.28, allocations: 19.77 kB / 0.5986 GB, free: 74.2 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)