Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0-beta.om_Modelica.Electrical.Spice3.Examples.FourInverters.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 4.1.0-beta.om/package.mo", uses=false) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/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.FourInverters,fileNamePrefix="Modelica_4_1_0-beta_om_Modelica_Electrical_Spice3_Examples_FourInverters",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Spice3.Examples.FourInverters,fileNamePrefix="Modelica_4_1_0-beta_om_Modelica_Electrical_Spice3_Examples_FourInverters",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.00181/0.001811, allocations: 117.6 kB / 17.79 MB, free: 5.125 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001968/0.001968, allocations: 200.7 kB / 18.74 MB, free: 4.184 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo): time 1.498/1.498, allocations: 227.7 MB / 247.2 MB, free: 10.14 MB / 206.1 MB Warning: Requested package Modelica of version trunk, but this package was already loaded with version 4.1.0. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package Complex of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package ModelicaServices of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Notification: Performance of FrontEnd - loaded program: time 0.002211/0.002211, allocations: 63.89 kB / 358.5 MB, free: 13.23 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2881/0.2903, allocations: 50.55 MB / 409.1 MB, free: 1.328 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.FourInverters): time 0.02773/0.3181, allocations: 26.72 MB / 435.8 MB, free: 6.496 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.03448/0.3527, allocations: 22.36 MB / 458.2 MB, free: 44 kB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.006929/0.3597, allocations: 174.6 kB / 458.3 MB, free: 15.87 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.006296/0.366, allocations: 1.772 MB / 460.1 MB, free: 14.09 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01463/0.3807, allocations: 3.216 MB / 463.3 MB, free: 10.85 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.006171/0.3869, allocations: 1.619 MB / 464.9 MB, free: 9.227 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.02316/0.4101, allocations: 12.82 MB / 477.8 MB, free: 12.36 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002069/0.4122, allocations: 0.8669 MB / 478.6 MB, free: 11.46 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003763/0.416, allocations: 2.072 MB / 480.7 MB, free: 9.375 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003769/0.4198, allocations: 2.103 MB / 482.8 MB, free: 7.258 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0006167/0.4205, allocations: 136 kB / 482.9 MB, free: 7.125 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005716/0.4262, allocations: 1.541 MB / 484.5 MB, free: 5.582 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00107/0.4273, allocations: 0.5932 MB / 485.1 MB, free: 4.984 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00441/0.4317, allocations: 2.624 MB / 487.7 MB, free: 2.344 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01271/0.4444, allocations: 6.667 MB / 494.4 MB, free: 11.64 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.264e-06/0.4445, allocations: 0 / 494.4 MB, free: 11.64 MB / 414.1 MB Notification: Performance of FrontEnd: time 2.224e-06/0.4445, allocations: 0 / 494.4 MB, free: 11.64 MB / 414.1 MB Notification: Performance of Transformations before backend: time 0.0002465/0.4448, allocations: 0 / 494.4 MB, free: 11.64 MB / 414.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 288 * Number of variables: 288 Notification: Performance of Generate backend data structure: time 0.01448/0.4593, allocations: 6.93 MB / 0.4895 GB, free: 4.613 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.25e-05/0.4593, allocations: 12.03 kB / 0.4895 GB, free: 4.602 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002935/0.4596, allocations: 157.2 kB / 0.4897 GB, free: 4.438 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001459/0.4611, allocations: 0.7841 MB / 0.4905 GB, free: 3.648 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008447/0.4696, allocations: 4.663 MB / 0.495 GB, free: 14.9 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.797e-05/0.4697, allocations: 66 kB / 0.4951 GB, free: 14.83 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003045/0.47, allocations: 107.6 kB / 0.4952 GB, free: 14.73 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002544/0.4725, allocations: 1.297 MB / 0.4964 GB, free: 13.42 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.109e-05/0.4726, allocations: 0 / 0.4964 GB, free: 13.42 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001275/0.4727, allocations: 36 kB / 0.4965 GB, free: 13.38 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.221e-05/0.4728, allocations: 39.97 kB / 0.4965 GB, free: 13.34 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00282/0.4756, allocations: 1.48 MB / 0.498 GB, free: 11.86 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01125/0.4869, allocations: 5.627 MB / 0.5035 GB, free: 6.141 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00207/0.489, allocations: 0.9851 MB / 0.5044 GB, free: 5.145 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001877/0.4909, allocations: 1.227 MB / 0.5056 GB, free: 3.922 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.3046/0.7955, allocations: 61.06 MB / 0.5653 GB, free: 103 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009468/0.7965, allocations: 0.5629 MB / 0.5658 GB, free: 102.7 MB / 462.1 MB Notification: Performance of pre-optimization done (n=85): time 8.616e-06/0.7965, allocations: 6.859 kB / 0.5658 GB, free: 102.7 MB / 462.1 MB Notification: Performance of matching and sorting (n=85): time 0.003747/0.8003, allocations: 1.913 MB / 0.5677 GB, free: 102.2 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.21e-05/0.8003, allocations: 63.53 kB / 0.5677 GB, free: 102.1 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00694/0.8073, allocations: 5.592 MB / 0.5732 GB, free: 97.29 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002016/0.8075, allocations: 37.7 kB / 0.5732 GB, free: 97.24 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002051/0.8096, allocations: 2.963 MB / 0.5761 GB, free: 94.35 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000371/0.81, allocations: 309.5 kB / 0.5764 GB, free: 94.09 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004944/0.8105, allocations: 434.3 kB / 0.5768 GB, free: 93.66 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 4.45e-05/0.8105, allocations: 301.1 kB / 0.5771 GB, free: 93.37 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008282/0.8114, allocations: 399.8 kB / 0.5775 GB, free: 92.98 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001007/0.8124, allocations: 1.091 MB / 0.5786 GB, free: 91.59 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001946/0.8144, allocations: 1.61 MB / 0.5801 GB, free: 89.71 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.48e-05/0.8144, allocations: 8 kB / 0.5802 GB, free: 89.7 MB / 462.1 MB Notification: Performance of matching and sorting (n=200) (initialization): time 0.003598/0.818, allocations: 2.237 MB / 0.5823 GB, free: 87.48 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.252e-05/0.8181, allocations: 16 kB / 0.5824 GB, free: 87.46 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001745/0.8182, allocations: 167.8 kB / 0.5825 GB, free: 87.3 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 4.451e-05/0.8183, allocations: 32 kB / 0.5825 GB, free: 87.27 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001136/0.8194, allocations: 359.4 kB / 0.5829 GB, free: 86.92 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.616e-05/0.8195, allocations: 47.8 kB / 0.5829 GB, free: 86.87 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002128/0.8216, allocations: 195.9 kB / 0.5831 GB, free: 86.73 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002862/0.8219, allocations: 128 kB / 0.5832 GB, free: 86.6 MB / 462.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 108 * 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 (184): * Single equations (assignments): 176 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 8 * 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.001446/0.8234, allocations: 0.7094 MB / 0.5839 GB, free: 85.9 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001018/0.8244, allocations: 0.7569 MB / 0.5847 GB, free: 85.14 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004368/0.8288, allocations: 2.147 MB / 0.5868 GB, free: 83.06 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.179e-05/0.8289, allocations: 8 kB / 0.5868 GB, free: 83.05 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.013e-06/0.8289, allocations: 0 / 0.5868 GB, free: 83.05 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.707e-06/0.8289, allocations: 3.984 kB / 0.5868 GB, free: 83.05 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006844/0.8357, allocations: 3.614 MB / 0.5903 GB, free: 79.39 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.000129/0.8359, allocations: 141.3 kB / 0.5904 GB, free: 79.25 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000738/0.8367, allocations: 147.8 kB / 0.5906 GB, free: 79.11 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.415e-05/0.8367, allocations: 4 kB / 0.5906 GB, free: 79.11 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001487/0.8369, allocations: 64 kB / 0.5906 GB, free: 79.04 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.923e-06/0.8369, allocations: 5.562 kB / 0.5907 GB, free: 79.04 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.224e-06/0.8369, allocations: 0 / 0.5907 GB, free: 79.04 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003564/0.8405, allocations: 2.185 MB / 0.5928 GB, free: 76.82 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001678/0.8422, allocations: 0.8573 MB / 0.5936 GB, free: 75.95 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001004/0.8432, allocations: 12 kB / 0.5936 GB, free: 75.94 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001391/0.8446, allocations: 39.95 kB / 0.5937 GB, free: 75.9 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002669/0.8449, allocations: 96.5 kB / 0.5938 GB, free: 75.81 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001177/0.845, allocations: 71.98 kB / 0.5938 GB, free: 75.74 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.005713/0.8508, allocations: 3.604 MB / 0.5974 GB, free: 72.16 MB / 462.1 MB Notification: Performance of sort global known variables: time 6.61e-07/0.8508, allocations: 0 / 0.5974 GB, free: 72.16 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.003013/0.8538, allocations: 1.096 MB / 0.5984 GB, free: 71.14 MB / 462.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 4 (c1.vinternal,c2.vinternal,c3.vinternal,c4.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 (70): * Single equations (assignments): 56 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 8 * 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.005617/0.8595, allocations: 3.844 MB / 0.6022 GB, free: 67.31 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.002569/0.8621, allocations: 1.428 MB / 0.6036 GB, free: 65.84 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 9.658e-06/0.8621, allocations: 0 / 0.6036 GB, free: 65.84 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009958/0.8631, allocations: 0.7706 MB / 0.6043 GB, free: 65.02 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00706/0.8702, allocations: 1.201 MB / 0.6055 GB, free: 63.82 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04667/0.9169, allocations: 30.56 MB / 0.6353 GB, free: 32.47 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001837/0.9188, allocations: 2.595 MB / 0.6379 GB, free: 29.85 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.00221/0.9211, allocations: 0.6884 MB / 0.6386 GB, free: 29.16 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002635/0.9237, allocations: 2.393 MB / 0.6409 GB, free: 26.76 MB / 462.1 MB Notification: Performance of SimCode: time 1.203e-06/0.9237, allocations: 0 / 0.6409 GB, free: 26.76 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4353/1.359, allocations: 111.1 MB / 0.7494 GB, free: 171.2 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate platform static: time 27.44/28.8, allocations: 10.81 kB / 0.7494 GB, free: 171.2 MB / 0.5137 GB (rm -f Modelica_4.1.0-beta.om_Modelica.Electrical.Spice3.Examples.FourInverters.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Electrical.Spice3.Examples.FourInverters.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Electrical.Spice3.Examples.FourInverters.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Electrical.Spice3.Examples.FourInverters.sim & python3 -m fmpy simulate --output-file Modelica_4.1.0-beta.om_Modelica.Electrical.Spice3.Examples.FourInverters_res.csv --start-time 0 --stop-time 5 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.002 Modelica_4_1_0-beta_om_Modelica_Electrical_Spice3_Examples_FourInverters.fmu > Modelica_4.1.0-beta.om_Modelica.Electrical.Spice3.Examples.FourInverters.pipe 2>&1)