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: translateModel(Modelica.Electrical.Spice3.Examples.FourInverters,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|mp1.S.v|mp2.S.v|mp3.S.v|mp4.S.v|v.p.v",fileNamePrefix="Modelica_trunk_Modelica.Electrical.Spice3.Examples.FourInverters") translateModel(Modelica.Electrical.Spice3.Examples.FourInverters,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|mp1.S.v|mp2.S.v|mp3.S.v|mp4.S.v|v.p.v",fileNamePrefix="Modelica_trunk_Modelica.Electrical.Spice3.Examples.FourInverters") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001579/0.001579, allocations: 114.3 kB / 18.46 MB, free: 4.617 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001981/0.001982, allocations: 206.8 kB / 19.41 MB, free: 3.668 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.386/1.386, allocations: 227.4 MB / 247.6 MB, free: 10.48 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001267/0.001267, allocations: 67.83 kB / 359.4 MB, free: 12.93 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2244/0.2256, allocations: 50.54 MB / 409.9 MB, free: 1.609 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.FourInverters): time 0.02176/0.2474, allocations: 26.72 MB / 436.7 MB, free: 6.785 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0267/0.2742, allocations: 22.37 MB / 459 MB, free: 336 kB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004165/0.2784, allocations: 174.6 kB / 459.2 MB, free: 160 kB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004547/0.2829, allocations: 1.789 MB / 461 MB, free: 14.36 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01275/0.2957, allocations: 3.251 MB / 464.2 MB, free: 11.08 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005505/0.3013, allocations: 1.627 MB / 465.9 MB, free: 9.449 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.01946/0.3207, allocations: 12.82 MB / 478.7 MB, free: 12.59 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001781/0.3226, allocations: 0.8553 MB / 479.5 MB, free: 11.7 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003146/0.3257, allocations: 2.119 MB / 481.7 MB, free: 9.57 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00313/0.3289, allocations: 2.1 MB / 483.8 MB, free: 7.457 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0008597/0.3298, allocations: 136 kB / 483.9 MB, free: 7.324 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005246/0.335, allocations: 1.541 MB / 485.4 MB, free: 5.781 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0009653/0.336, allocations: 0.5971 MB / 486 MB, free: 5.18 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00303/0.3391, allocations: 2.624 MB / 488.6 MB, free: 2.539 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.008147/0.3472, allocations: 6.667 MB / 495.3 MB, free: 11.84 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.785e-06/0.3472, allocations: 3.984 kB / 495.3 MB, free: 11.84 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.643e-06/0.3473, allocations: 0 / 495.3 MB, free: 11.84 MB / 414.1 MB Notification: Performance of Transformations before backend: time 0.000106/0.3474, allocations: 0 / 495.3 MB, free: 11.84 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.008471/0.3558, allocations: 6.93 MB / 0.4905 GB, free: 4.805 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.012e-05/0.3559, allocations: 8.031 kB / 0.4905 GB, free: 4.797 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007357/0.3566, allocations: 0.7803 MB / 0.4912 GB, free: 4.012 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005979/0.3626, allocations: 4.663 MB / 0.4958 GB, free: 15.26 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.124e-05/0.3627, allocations: 66 kB / 0.4959 GB, free: 15.2 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00022/0.3629, allocations: 107.9 kB / 0.496 GB, free: 15.09 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002136/0.3651, allocations: 1.301 MB / 0.4972 GB, free: 13.77 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.159e-05/0.3651, allocations: 3.984 kB / 0.4972 GB, free: 13.77 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001109/0.3652, allocations: 36 kB / 0.4973 GB, free: 13.73 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.372e-05/0.3653, allocations: 39.98 kB / 0.4973 GB, free: 13.7 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002462/0.3677, allocations: 1.48 MB / 0.4988 GB, free: 12.21 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00891/0.3766, allocations: 5.625 MB / 0.5043 GB, free: 6.5 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001621/0.3783, allocations: 0.9929 MB / 0.5052 GB, free: 5.496 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001564/0.3799, allocations: 1.216 MB / 0.5064 GB, free: 4.285 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.2286/0.6085, allocations: 61.06 MB / 0.566 GB, free: 103.2 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008623/0.6094, allocations: 0.5656 MB / 0.5666 GB, free: 102.8 MB / 462.1 MB Notification: Performance of pre-optimization done (n=85): time 2.815e-06/0.6094, allocations: 0 / 0.5666 GB, free: 102.8 MB / 462.1 MB Notification: Performance of matching and sorting (n=85): time 0.002667/0.6121, allocations: 1.907 MB / 0.5685 GB, free: 102.4 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.687e-05/0.6121, allocations: 64.67 kB / 0.5685 GB, free: 102.3 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004709/0.6168, allocations: 5.589 MB / 0.574 GB, free: 97.69 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 6.96e-05/0.6169, allocations: 37.7 kB / 0.574 GB, free: 97.64 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.00151/0.6184, allocations: 2.965 MB / 0.5769 GB, free: 94.75 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001704/0.6186, allocations: 313.5 kB / 0.5772 GB, free: 94.49 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003706/0.619, allocations: 431 kB / 0.5776 GB, free: 94.06 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 3.01e-05/0.619, allocations: 301.1 kB / 0.5779 GB, free: 93.77 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007048/0.6197, allocations: 410.2 kB / 0.5783 GB, free: 93.37 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008713/0.6206, allocations: 1.085 MB / 0.5794 GB, free: 91.98 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00165/0.6222, allocations: 1.616 MB / 0.5809 GB, free: 90.1 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.118e-06/0.6223, allocations: 8 kB / 0.5809 GB, free: 90.09 MB / 462.1 MB Notification: Performance of matching and sorting (n=200) (initialization): time 0.0026/0.6249, allocations: 2.234 MB / 0.5831 GB, free: 87.87 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.065e-05/0.6249, allocations: 19.94 kB / 0.5831 GB, free: 87.85 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001569/0.6251, allocations: 167.1 kB / 0.5833 GB, free: 87.69 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.083e-05/0.6251, allocations: 32 kB / 0.5833 GB, free: 87.66 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001047/0.6262, allocations: 359.1 kB / 0.5837 GB, free: 87.31 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.006e-05/0.6262, allocations: 51.8 kB / 0.5837 GB, free: 87.26 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001455/0.6277, allocations: 188.3 kB / 0.5839 GB, free: 87.12 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001384/0.6278, allocations: 128 kB / 0.584 GB, free: 86.99 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.0009356/0.6288, allocations: 0.7081 MB / 0.5847 GB, free: 86.29 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004134/0.6292, allocations: 0.7539 MB / 0.5854 GB, free: 85.54 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003554/0.6327, allocations: 2.152 MB / 0.5876 GB, free: 83.43 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.663e-06/0.6328, allocations: 3.984 kB / 0.5876 GB, free: 83.43 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.000161/0.6329, allocations: 140 kB / 0.5877 GB, free: 83.29 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009229/0.6338, allocations: 0.8475 MB / 0.5885 GB, free: 82.43 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005141/0.6344, allocations: 27.83 kB / 0.5885 GB, free: 82.41 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00105/0.6354, allocations: 27.97 kB / 0.5886 GB, free: 82.38 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002006/0.6356, allocations: 100.5 kB / 0.5887 GB, free: 82.28 MB / 462.1 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.002007/0.6376, allocations: 1.048 MB / 0.5897 GB, free: 81.25 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.002508/0.6402, allocations: 2.218 MB / 0.5919 GB, free: 79.01 MB / 462.1 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.0006253/0.6408, allocations: 396.8 kB / 0.5922 GB, free: 78.62 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.003303/0.6441, allocations: 3.604 MB / 0.5958 GB, free: 75.05 MB / 462.1 MB Notification: Performance of Backend: time 5.81e-07/0.6441, allocations: 0 / 0.5958 GB, free: 75.05 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.003541/0.6477, allocations: 2.4 MB / 0.5981 GB, free: 72.69 MB / 462.1 MB Notification: Performance of SimCode: time 0.009879/0.6576, allocations: 10.12 MB / 0.608 GB, free: 62.48 MB / 462.1 MB Notification: Performance of Templates: time 0.07733/0.7349, allocations: 59.4 MB / 0.666 GB, free: 3.285 MB / 462.1 MB make -j1 -f Modelica_trunk_Modelica.Electrical.Spice3.Examples.FourInverters.makefile (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 & ./Modelica_trunk_Modelica.Electrical.Spice3.Examples.FourInverters -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Electrical.Spice3.Examples.FourInverters.pipe 2>&1)