Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_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 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.FourInverters,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Spice3_Examples_FourInverters",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Spice3.Examples.FourInverters,fileNamePrefix="Modelica_trunk_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.00117/0.00117, allocations: 122.2 kB / 17.79 MB, free: 5.273 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001126/0.001126, allocations: 202 kB / 18.74 MB, free: 4.332 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.39/1.39, allocations: 227.4 MB / 246.9 MB, free: 10.44 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001828/0.001828, allocations: 63.89 kB / 358.2 MB, free: 13.41 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2618/0.2636, allocations: 50.53 MB / 408.7 MB, free: 1.531 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.FourInverters): time 0.023/0.2867, allocations: 26.73 MB / 435.5 MB, free: 6.695 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.02666/0.3134, allocations: 22.36 MB / 457.8 MB, free: 252 kB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004807/0.3182, allocations: 174.6 kB / 458 MB, free: 76 kB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004845/0.3231, allocations: 1.791 MB / 459.8 MB, free: 14.27 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01237/0.3355, allocations: 3.247 MB / 463 MB, free: 11 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.007077/0.3426, allocations: 1.623 MB / 464.7 MB, free: 9.375 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.02082/0.3635, allocations: 12.82 MB / 477.5 MB, free: 12.52 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002232/0.3657, allocations: 0.8786 MB / 478.4 MB, free: 11.6 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003633/0.3694, allocations: 2.107 MB / 480.5 MB, free: 9.484 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003571/0.373, allocations: 2.107 MB / 482.6 MB, free: 7.363 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0007294/0.3737, allocations: 136 kB / 482.7 MB, free: 7.23 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.006234/0.38, allocations: 1.541 MB / 484.3 MB, free: 5.688 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0009356/0.3809, allocations: 0.5893 MB / 484.8 MB, free: 5.094 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003591/0.3846, allocations: 2.628 MB / 487.5 MB, free: 2.449 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.009219/0.3938, allocations: 6.671 MB / 494.1 MB, free: 11.75 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.658e-06/0.3938, allocations: 0 / 494.1 MB, free: 11.75 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.433e-06/0.3938, allocations: 0 / 494.1 MB, free: 11.75 MB / 414.1 MB Notification: Performance of Transformations before backend: time 0.0001884/0.394, allocations: 0 / 494.1 MB, free: 11.75 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.01195/0.406, allocations: 6.93 MB / 0.4893 GB, free: 4.715 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.843e-05/0.406, allocations: 12.03 kB / 0.4893 GB, free: 4.703 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003827/0.4064, allocations: 157.2 kB / 0.4895 GB, free: 4.539 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001267/0.4077, allocations: 0.7803 MB / 0.4902 GB, free: 3.754 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008575/0.4163, allocations: 4.652 MB / 0.4948 GB, free: 15.02 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.874e-05/0.4164, allocations: 66 kB / 0.4949 GB, free: 14.95 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004773/0.4169, allocations: 119.6 kB / 0.495 GB, free: 14.84 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003024/0.4199, allocations: 1.293 MB / 0.4962 GB, free: 13.53 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.454e-05/0.42, allocations: 0 / 0.4962 GB, free: 13.53 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001569/0.4201, allocations: 35.98 kB / 0.4963 GB, free: 13.49 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.695e-05/0.4202, allocations: 39.98 kB / 0.4963 GB, free: 13.45 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002686/0.4229, allocations: 1.48 MB / 0.4978 GB, free: 11.97 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0119/0.4348, allocations: 5.627 MB / 0.5032 GB, free: 6.25 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001854/0.4367, allocations: 0.9851 MB / 0.5042 GB, free: 5.254 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001699/0.4384, allocations: 1.223 MB / 0.5054 GB, free: 4.035 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.2556/0.6941, allocations: 61.06 MB / 0.565 GB, free: 103.2 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008864/0.695, allocations: 0.5594 MB / 0.5656 GB, free: 102.9 MB / 462.1 MB Notification: Performance of pre-optimization done (n=85): time 3.917e-06/0.695, allocations: 1.219 kB / 0.5656 GB, free: 102.9 MB / 462.1 MB Notification: Performance of matching and sorting (n=85): time 0.002902/0.6979, allocations: 1.909 MB / 0.5674 GB, free: 102.4 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.523e-05/0.698, allocations: 67.25 kB / 0.5675 GB, free: 102.4 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005068/0.703, allocations: 5.595 MB / 0.573 GB, free: 97.48 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 8.481e-05/0.7031, allocations: 37.7 kB / 0.573 GB, free: 97.43 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001664/0.7048, allocations: 2.964 MB / 0.5759 GB, free: 94.54 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001997/0.705, allocations: 308.3 kB / 0.5762 GB, free: 94.28 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003957/0.7054, allocations: 431 kB / 0.5766 GB, free: 93.86 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 4.102e-05/0.7055, allocations: 301.1 kB / 0.5769 GB, free: 93.56 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007336/0.7062, allocations: 403 kB / 0.5773 GB, free: 93.17 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009135/0.7071, allocations: 1.092 MB / 0.5783 GB, free: 91.77 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001704/0.7088, allocations: 1.61 MB / 0.5799 GB, free: 89.89 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.034e-05/0.7089, allocations: 7.188 kB / 0.5799 GB, free: 89.89 MB / 462.1 MB Notification: Performance of matching and sorting (n=200) (initialization): time 0.002861/0.7117, allocations: 2.242 MB / 0.5821 GB, free: 87.66 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.341e-05/0.7118, allocations: 16 kB / 0.5821 GB, free: 87.65 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001705/0.7119, allocations: 164 kB / 0.5823 GB, free: 87.49 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.399e-05/0.712, allocations: 32 kB / 0.5823 GB, free: 87.46 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001077/0.7131, allocations: 359.2 kB / 0.5827 GB, free: 87.11 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.701e-05/0.7131, allocations: 47.86 kB / 0.5827 GB, free: 87.06 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001677/0.7148, allocations: 192 kB / 0.5829 GB, free: 86.92 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001429/0.7149, allocations: 135.8 kB / 0.583 GB, free: 86.79 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.001002/0.7159, allocations: 0.7074 MB / 0.5837 GB, free: 86.09 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004903/0.7164, allocations: 0.7569 MB / 0.5844 GB, free: 85.33 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003453/0.7199, allocations: 2.16 MB / 0.5866 GB, free: 83.22 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.628e-06/0.7199, allocations: 4 kB / 0.5866 GB, free: 83.22 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.19e-06/0.7199, allocations: 4 kB / 0.5866 GB, free: 83.21 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.414e-06/0.7199, allocations: 3.984 kB / 0.5866 GB, free: 83.21 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00456/0.7245, allocations: 3.599 MB / 0.5901 GB, free: 79.57 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001526/0.7247, allocations: 140 kB / 0.5902 GB, free: 79.44 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007156/0.7254, allocations: 155.8 kB / 0.5904 GB, free: 79.29 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.512e-06/0.7254, allocations: 0 / 0.5904 GB, free: 79.29 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.614e-05/0.7255, allocations: 67.92 kB / 0.5904 GB, free: 79.22 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.701e-06/0.7255, allocations: 4 kB / 0.5904 GB, free: 79.21 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.513e-06/0.7255, allocations: 0 / 0.5904 GB, free: 79.21 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002794/0.7283, allocations: 2.192 MB / 0.5926 GB, free: 76.99 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001263/0.7296, allocations: 0.8553 MB / 0.5934 GB, free: 76.12 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005496/0.7302, allocations: 16 kB / 0.5934 GB, free: 76.11 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001137/0.7313, allocations: 35.95 kB / 0.5935 GB, free: 76.07 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001808/0.7315, allocations: 92.5 kB / 0.5935 GB, free: 75.98 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001056/0.7316, allocations: 72.86 kB / 0.5936 GB, free: 75.91 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.003959/0.7356, allocations: 3.608 MB / 0.5971 GB, free: 72.34 MB / 462.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.7356, allocations: 4 kB / 0.5971 GB, free: 72.33 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.002164/0.7377, allocations: 1.083 MB / 0.5982 GB, free: 71.32 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.004302/0.7421, allocations: 3.842 MB / 0.602 GB, free: 67.5 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.002118/0.7442, allocations: 1.432 MB / 0.6034 GB, free: 66.02 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 2.574e-06/0.7442, allocations: 0 / 0.6034 GB, free: 66.02 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009352/0.7451, allocations: 0.7706 MB / 0.6041 GB, free: 65.2 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004502/0.7497, allocations: 1.203 MB / 0.6053 GB, free: 64 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03588/0.7855, allocations: 30.57 MB / 0.6351 GB, free: 32.64 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001267/0.7868, allocations: 2.592 MB / 0.6377 GB, free: 30.03 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.001989/0.7888, allocations: 0.6885 MB / 0.6383 GB, free: 29.34 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001806/0.7907, allocations: 2.389 MB / 0.6407 GB, free: 26.95 MB / 462.1 MB Notification: Performance of SimCode: time 1.142e-06/0.7907, allocations: 0 / 0.6407 GB, free: 26.95 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3966/1.187, allocations: 111 MB / 0.7491 GB, free: 171.4 MB / 0.5138 GB Notification: Performance of buildModelFMU: Generate platform static: time 25.3/26.48, allocations: 6.234 kB / 0.7491 GB, free: 171.3 MB / 0.5138 GB (rm -f Modelica_trunk_Modelica.Electrical.Spice3.Examples.FourInverters.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Spice3.Examples.FourInverters.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Spice3.Examples.FourInverters.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Spice3.Examples.FourInverters.sim & python3 -m fmpy simulate --output-file Modelica_trunk_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_trunk_Modelica_Electrical_Spice3_Examples_FourInverters.fmu > Modelica_trunk_Modelica.Electrical.Spice3.Examples.FourInverters.pipe 2>&1)