Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.2_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(Modelica.Electrical.Spice3.Examples.InvertersExtendedModel,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.2.2_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel") translateModel(Modelica.Electrical.Spice3.Examples.InvertersExtendedModel,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.2.2_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001069/0.001069, allocations: 102.8 kB / 16.5 MB, free: 6.688 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001059/0.001059, allocations: 193.9 kB / 17.42 MB, free: 6.09 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.379/1.379, allocations: 205.1 MB / 223.3 MB, free: 12.41 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001407/0.001407, allocations: 47.94 kB / 279.3 MB, free: 3.586 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09564/0.09706, allocations: 46.63 MB / 326 MB, free: 4.895 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.InvertersExtendedModel): time 0.01269/0.1098, allocations: 14.47 MB / 340.4 MB, free: 6.363 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.02193/0.1317, allocations: 19.95 MB / 360.4 MB, free: 2.34 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00321/0.135, allocations: 31.81 kB / 360.4 MB, free: 2.309 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003765/0.1388, allocations: 1.079 MB / 361.5 MB, free: 1.219 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.008608/0.1475, allocations: 1.934 MB / 363.4 MB, free: 15.27 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004508/0.152, allocations: 1.156 MB / 364.6 MB, free: 14.11 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.01048/0.1625, allocations: 6.339 MB / 370.9 MB, free: 7.754 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0008455/0.1634, allocations: 450 kB / 371.3 MB, free: 7.285 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00147/0.1649, allocations: 0.9754 MB / 372.3 MB, free: 6.305 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0009363/0.1658, allocations: 1.102 MB / 373.4 MB, free: 5.195 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001676/0.166, allocations: 52 kB / 373.5 MB, free: 5.145 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003578/0.1696, allocations: 1.132 MB / 374.6 MB, free: 4.012 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000358/0.17, allocations: 317.5 kB / 374.9 MB, free: 3.699 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001453/0.1714, allocations: 1.416 MB / 376.3 MB, free: 2.273 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.1609/0.3323, allocations: 3.893 MB / 380.2 MB, free: 23.63 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.563e-06/0.3324, allocations: 0 / 380.2 MB, free: 23.63 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.855e-06/0.3324, allocations: 0.6562 kB / 380.2 MB, free: 23.63 MB / 318.1 MB Notification: Performance of Transformations before backend: time 7.118e-05/0.3324, allocations: 1.375 kB / 380.2 MB, free: 23.63 MB / 318.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.00574/0.3382, allocations: 3.858 MB / 384.1 MB, free: 21.45 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.064e-05/0.3383, allocations: 11.25 kB / 384.1 MB, free: 21.45 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005493/0.3388, allocations: 413 kB / 384.5 MB, free: 21.24 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003812/0.3426, allocations: 2.504 MB / 387 MB, free: 20.4 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.126e-05/0.3427, allocations: 39.03 kB / 387 MB, free: 20.4 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001253/0.3428, allocations: 59.2 kB / 387.1 MB, free: 20.39 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00141/0.3442, allocations: 0.7248 MB / 387.8 MB, free: 20.35 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.79e-05/0.3443, allocations: 2.297 kB / 387.8 MB, free: 20.35 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.004e-05/0.3444, allocations: 22.95 kB / 387.8 MB, free: 20.35 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.66e-05/0.3444, allocations: 25.27 kB / 387.9 MB, free: 20.35 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001582/0.346, allocations: 0.8147 MB / 388.7 MB, free: 20.35 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004956/0.3509, allocations: 3.113 MB / 391.8 MB, free: 19.82 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001148/0.3521, allocations: 0.5803 MB / 392.4 MB, free: 19.79 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009208/0.353, allocations: 0.6478 MB / 393 MB, free: 19.77 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02524/0.3783, allocations: 30.2 MB / 423.2 MB, free: 10.29 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007633/0.3791, allocations: 371.9 kB / 423.6 MB, free: 9.922 MB / 334.1 MB Notification: Performance of pre-optimization done (n=49): time 3.206e-06/0.3791, allocations: 0 / 423.6 MB, free: 9.922 MB / 334.1 MB Notification: Performance of matching and sorting (n=49): time 0.002342/0.3814, allocations: 1.113 MB / 424.7 MB, free: 8.805 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.168e-05/0.3815, allocations: 62.41 kB / 424.8 MB, free: 8.734 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003675/0.3852, allocations: 3.107 MB / 427.9 MB, free: 5.629 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 5.639e-05/0.3852, allocations: 33.7 kB / 427.9 MB, free: 5.59 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001203/0.3865, allocations: 1.577 MB / 429.5 MB, free: 4.004 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001439/0.3866, allocations: 169.5 kB / 429.6 MB, free: 3.844 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002832/0.3869, allocations: 226.1 kB / 429.9 MB, free: 3.617 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001078/0.387, allocations: 341.9 kB / 430.2 MB, free: 3.277 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005771/0.3876, allocations: 244 kB / 430.4 MB, free: 3.043 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007496/0.3884, allocations: 0.603 MB / 431 MB, free: 2.281 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001354/0.3897, allocations: 0.897 MB / 431.9 MB, free: 1.27 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.712e-06/0.3897, allocations: 4 kB / 431.9 MB, free: 1.266 MB / 334.1 MB Notification: Performance of matching and sorting (n=110) (initialization): time 0.002082/0.3918, allocations: 1.26 MB / 433.2 MB, free: 76 kB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.007e-05/0.3919, allocations: 8 kB / 433.2 MB, free: 68 kB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001193/0.392, allocations: 84.14 kB / 433.3 MB, free: 15.98 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.039e-05/0.392, allocations: 26.75 kB / 433.3 MB, free: 15.96 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006986/0.3927, allocations: 195.6 kB / 433.5 MB, free: 15.78 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.102e-05/0.3928, allocations: 26.08 kB / 433.5 MB, free: 15.76 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001176/0.3939, allocations: 111 kB / 433.6 MB, free: 15.65 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001054/0.3941, allocations: 64 kB / 433.7 MB, free: 15.59 MB / 350.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.0007006/0.3948, allocations: 460.4 kB / 434.2 MB, free: 15.15 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003739/0.3951, allocations: 399.1 kB / 434.5 MB, free: 14.75 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002859/0.398, allocations: 1.218 MB / 435.8 MB, free: 13.55 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.264e-06/0.398, allocations: 4 kB / 435.8 MB, free: 13.54 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.27e-06/0.398, allocations: 0 / 435.8 MB, free: 13.54 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.979e-06/0.3981, allocations: 0.6562 kB / 435.8 MB, free: 13.54 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003359/0.4014, allocations: 2.154 MB / 437.9 MB, free: 11.34 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.715e-05/0.4015, allocations: 68 kB / 438 MB, free: 11.27 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004698/0.402, allocations: 97.38 kB / 438.1 MB, free: 11.18 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.484e-06/0.402, allocations: 4 kB / 438.1 MB, free: 11.18 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.929e-05/0.4021, allocations: 31.98 kB / 438.1 MB, free: 11.14 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.21e-06/0.4021, allocations: 4 kB / 438.1 MB, free: 11.14 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.964e-06/0.4021, allocations: 3.938 kB / 438.1 MB, free: 11.14 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002211/0.4043, allocations: 1.336 MB / 439.5 MB, free: 9.785 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000774/0.4051, allocations: 492 kB / 439.9 MB, free: 9.281 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003178/0.4054, allocations: 15.98 kB / 440 MB, free: 9.266 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006961/0.4061, allocations: 23.97 kB / 440 MB, free: 9.242 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001537/0.4063, allocations: 63.94 kB / 440 MB, free: 9.18 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.822e-05/0.4064, allocations: 36 kB / 440.1 MB, free: 9.145 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.002395/0.4088, allocations: 2.019 MB / 442.1 MB, free: 7.133 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.483e-06/0.4088, allocations: 64 / 442.1 MB, free: 7.133 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.001354/0.4101, allocations: 0.6042 MB / 442.7 MB, free: 6.531 MB / 350.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.001053/0.4112, allocations: 0.7875 MB / 443.5 MB, free: 5.898 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001509/0.4127, allocations: 0.799 MB / 444.3 MB, free: 5.109 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.335e-06/0.4127, allocations: 4.125 kB / 444.3 MB, free: 5.105 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007297/0.4135, allocations: 448.9 kB / 444.7 MB, free: 4.652 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001955/0.4154, allocations: 0.502 MB / 445.2 MB, free: 4.148 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007328/0.4228, allocations: 5.435 MB / 450.7 MB, free: 14.71 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001311/0.4241, allocations: 1.718 MB / 452.4 MB, free: 12.96 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.001341/0.4255, allocations: 365.4 kB / 452.7 MB, free: 12.6 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000221/0.4257, allocations: 155.4 kB / 452.9 MB, free: 12.45 MB / 366.1 MB Notification: Performance of SimCode: time 5.01e-07/0.4257, allocations: 0 / 452.9 MB, free: 12.45 MB / 366.1 MB Notification: Performance of Templates: time 0.05343/0.4791, allocations: 30.97 MB / 483.9 MB, free: 13.56 MB / 398.1 MB make -j1 -f Modelica_3.2.2_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.makefile (rm -f Modelica_3.2.2_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.pipe ; mkfifo Modelica_3.2.2_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.pipe ; head -c 1048576 < Modelica_3.2.2_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.pipe >> ../files/Modelica_3.2.2_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.sim & ./Modelica_3.2.2_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.2_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.pipe 2>&1)