Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0-beta.om_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.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: translateModel(Modelica.Electrical.Spice3.Examples.InvertersExtendedModel,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|mp1.S.v|mp2.S.v|v.p.v",fileNamePrefix="Modelica_4.1.0-beta.om_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel") translateModel(Modelica.Electrical.Spice3.Examples.InvertersExtendedModel,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|mp1.S.v|mp2.S.v|v.p.v",fileNamePrefix="Modelica_4.1.0-beta.om_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001237/0.001237, allocations: 117.6 kB / 18.45 MB, free: 4.613 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001284/0.001284, allocations: 216.7 kB / 19.41 MB, free: 3.66 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.399/1.399, allocations: 227.7 MB / 247.9 MB, free: 10.18 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.001881/0.001881, allocations: 59.91 kB / 359.7 MB, free: 12.78 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2217/0.2236, allocations: 50.54 MB / 410.2 MB, free: 1.449 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.InvertersExtendedModel): time 0.01592/0.2395, allocations: 15.36 MB / 425.5 MB, free: 2.031 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.02494/0.2644, allocations: 20.83 MB / 446.4 MB, free: 13.12 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001918/0.2663, allocations: 91.25 kB / 446.5 MB, free: 13.04 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003108/0.2694, allocations: 1.267 MB / 447.7 MB, free: 11.76 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006905/0.2764, allocations: 2.367 MB / 450.1 MB, free: 9.379 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004439/0.2808, allocations: 1.447 MB / 451.5 MB, free: 7.922 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.01041/0.2912, allocations: 6.703 MB / 458.3 MB, free: 1.199 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007759/0.292, allocations: 277.6 kB / 458.5 MB, free: 0.8984 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001695/0.2937, allocations: 1.143 MB / 459.7 MB, free: 15.75 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001459/0.2951, allocations: 1.141 MB / 460.8 MB, free: 14.6 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001959/0.2953, allocations: 76 kB / 460.9 MB, free: 14.53 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003793/0.2991, allocations: 1.475 MB / 462.4 MB, free: 13.05 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003549/0.2995, allocations: 333.5 kB / 462.7 MB, free: 12.72 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001482/0.301, allocations: 1.436 MB / 464.1 MB, free: 11.28 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005647/0.3066, allocations: 4.009 MB / 468.1 MB, free: 7.25 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.618e-06/0.3066, allocations: 0 / 468.1 MB, free: 7.25 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.413e-06/0.3066, allocations: 4 kB / 468.1 MB, free: 7.246 MB / 382.1 MB Notification: Performance of Transformations before backend: time 4.138e-05/0.3066, allocations: 0 / 468.1 MB, free: 7.246 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.006262/0.3129, allocations: 3.958 MB / 472.1 MB, free: 3.207 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.167e-05/0.313, allocations: 12.03 kB / 472.1 MB, free: 3.195 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005062/0.3135, allocations: 429.3 kB / 472.5 MB, free: 2.773 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003737/0.3172, allocations: 2.499 MB / 475 MB, free: 212 kB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.083e-05/0.3172, allocations: 40.98 kB / 475.1 MB, free: 172 kB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001486/0.3174, allocations: 63.94 kB / 475.1 MB, free: 108 kB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001445/0.3188, allocations: 0.7265 MB / 475.8 MB, free: 15.37 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.487e-05/0.3188, allocations: 0 / 475.8 MB, free: 15.37 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.4e-05/0.3189, allocations: 16 kB / 475.9 MB, free: 15.36 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.055e-05/0.3189, allocations: 23.98 kB / 475.9 MB, free: 15.33 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001641/0.3206, allocations: 0.8163 MB / 476.7 MB, free: 14.52 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005601/0.3262, allocations: 3.114 MB / 479.8 MB, free: 11.32 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001275/0.3275, allocations: 0.5243 MB / 480.3 MB, free: 10.79 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00103/0.3285, allocations: 0.5618 MB / 480.9 MB, free: 10.22 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.03398/0.3625, allocations: 30.77 MB / 0.4997 GB, free: 7.199 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007898/0.3633, allocations: 357.7 kB / 0.5 GB, free: 6.84 MB / 430.1 MB Notification: Performance of pre-optimization done (n=49): time 2.465e-06/0.3633, allocations: 0 / 0.5 GB, free: 6.84 MB / 430.1 MB Notification: Performance of matching and sorting (n=49): time 0.002474/0.3657, allocations: 1.134 MB / 0.5011 GB, free: 5.699 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.584e-05/0.3658, allocations: 63.38 kB / 0.5012 GB, free: 5.625 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003978/0.3698, allocations: 3.087 MB / 0.5042 GB, free: 2.539 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 7.304e-05/0.3698, allocations: 33.7 kB / 0.5042 GB, free: 2.5 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001501/0.3713, allocations: 1.585 MB / 0.5058 GB, free: 0.9062 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001969/0.3715, allocations: 178.5 kB / 0.506 GB, free: 0.7305 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003129/0.3719, allocations: 230.4 kB / 0.5062 GB, free: 0.5 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0001548/0.372, allocations: 338 kB / 0.5065 GB, free: 168 kB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006496/0.3727, allocations: 245.9 kB / 0.5067 GB, free: 15.92 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008854/0.3735, allocations: 0.602 MB / 0.5073 GB, free: 15.14 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001578/0.3751, allocations: 0.8973 MB / 0.5082 GB, free: 14.07 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.088e-05/0.3751, allocations: 7.938 kB / 0.5082 GB, free: 14.06 MB / 446.1 MB Notification: Performance of matching and sorting (n=110) (initialization): time 0.002379/0.3775, allocations: 1.259 MB / 0.5094 GB, free: 12.8 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.362e-05/0.3775, allocations: 8 kB / 0.5094 GB, free: 12.79 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001182/0.3777, allocations: 80 kB / 0.5095 GB, free: 12.71 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.48e-05/0.3777, allocations: 23.98 kB / 0.5095 GB, free: 12.69 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007481/0.3784, allocations: 195.6 kB / 0.5097 GB, free: 12.5 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.647e-05/0.3785, allocations: 23.92 kB / 0.5097 GB, free: 12.48 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001038/0.3795, allocations: 115.4 kB / 0.5099 GB, free: 12.36 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001053/0.3796, allocations: 67.98 kB / 0.5099 GB, free: 12.3 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.0008112/0.3804, allocations: 457.3 kB / 0.5104 GB, free: 11.84 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004885/0.3809, allocations: 417.3 kB / 0.5108 GB, free: 11.42 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00276/0.3837, allocations: 1.219 MB / 0.5119 GB, free: 10.18 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.606e-06/0.3837, allocations: 4 kB / 0.5119 GB, free: 10.18 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.298e-06/0.3837, allocations: 4 kB / 0.512 GB, free: 10.18 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.208e-06/0.3837, allocations: 0 / 0.512 GB, free: 10.18 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003617/0.3873, allocations: 2.143 MB / 0.514 GB, free: 7.969 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001078/0.3874, allocations: 71.98 kB / 0.5141 GB, free: 7.898 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005042/0.3879, allocations: 99.92 kB / 0.5142 GB, free: 7.801 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.4e-06/0.3879, allocations: 0 / 0.5142 GB, free: 7.801 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.295e-05/0.388, allocations: 39.98 kB / 0.5142 GB, free: 7.762 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.861e-06/0.388, allocations: 4 kB / 0.5142 GB, free: 7.758 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.463e-06/0.388, allocations: 0 / 0.5142 GB, free: 7.758 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00241/0.3904, allocations: 1.347 MB / 0.5156 GB, free: 6.383 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008859/0.3913, allocations: 0.5022 MB / 0.5161 GB, free: 5.859 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002734/0.3916, allocations: 12 kB / 0.5161 GB, free: 5.848 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006936/0.3923, allocations: 31.95 kB / 0.5161 GB, free: 5.816 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001554/0.3924, allocations: 59.89 kB / 0.5162 GB, free: 5.758 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.591e-05/0.3925, allocations: 39.98 kB / 0.5162 GB, free: 5.719 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.002812/0.3953, allocations: 2.01 MB / 0.5182 GB, free: 3.715 MB / 446.1 MB Notification: Performance of sort global known variables: time 1e-07/0.3953, allocations: 0 / 0.5182 GB, free: 3.715 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.001532/0.3968, allocations: 0.593 MB / 0.5187 GB, free: 3.121 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.001232/0.3981, allocations: 0.7807 MB / 0.5195 GB, free: 2.332 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.00174/0.3998, allocations: 0.7748 MB / 0.5203 GB, free: 1.531 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 2.534e-06/0.3998, allocations: 4 kB / 0.5203 GB, free: 1.527 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008008/0.4006, allocations: 431.1 kB / 0.5207 GB, free: 1.082 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002709/0.4033, allocations: 0.6448 MB / 0.5213 GB, free: 444 kB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006659/0.41, allocations: 4.594 MB / 0.5258 GB, free: 11.8 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00131/0.4113, allocations: 1.718 MB / 0.5275 GB, free: 10.05 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.001037/0.4123, allocations: 357.3 kB / 0.5278 GB, free: 9.695 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002451/0.4126, allocations: 155.4 kB / 0.528 GB, free: 9.543 MB / 462.1 MB Notification: Performance of SimCode: time 1.092e-06/0.4126, allocations: 0 / 0.528 GB, free: 9.543 MB / 462.1 MB Notification: Performance of Templates: time 0.2207/0.6333, allocations: 32.29 MB / 0.5595 GB, free: 115.9 MB / 462.1 MB make -j1 -f Modelica_4.1.0-beta.om_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.makefile (rm -f Modelica_4.1.0-beta.om_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.sim & ./Modelica_4.1.0-beta.om_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel -abortSlowSimulation -alarm=480 -s gbode -emit_protected -lv LOG_STATS > Modelica_4.1.0-beta.om_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.pipe 2>&1)