Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.1_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.1_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel") translateModel(Modelica.Electrical.Spice3.Examples.InvertersExtendedModel,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.1_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.001126/0.001126, allocations: 108 kB / 15.6 MB, free: 132 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001238/0.001238, allocations: 192 kB / 16.53 MB, free: 6.391 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.382/1.382, allocations: 205.1 MB / 222.4 MB, free: 4.582 MB / 174.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.001414/0.001414, allocations: 48.39 kB / 278.7 MB, free: 12.38 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2312/0.2326, allocations: 46.64 MB / 325.3 MB, free: 1.863 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.InvertersExtendedModel): time 0.01405/0.2467, allocations: 14.61 MB / 339.9 MB, free: 5.285 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.02133/0.2681, allocations: 19.8 MB / 359.7 MB, free: 1.402 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002875/0.271, allocations: 27.88 kB / 359.7 MB, free: 1.375 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00367/0.2747, allocations: 1.241 MB / 361 MB, free: 128 kB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.009229/0.284, allocations: 2.297 MB / 363.3 MB, free: 13.81 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004685/0.2887, allocations: 1.389 MB / 364.7 MB, free: 12.41 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.01067/0.2994, allocations: 6.433 MB / 371.1 MB, free: 5.965 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001017/0.3004, allocations: 477.6 kB / 371.6 MB, free: 5.469 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001435/0.3019, allocations: 0.9989 MB / 372.6 MB, free: 4.465 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001114/0.303, allocations: 1.118 MB / 373.7 MB, free: 3.34 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001891/0.3032, allocations: 76 kB / 373.8 MB, free: 3.266 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003825/0.307, allocations: 1.163 MB / 374.9 MB, free: 2.102 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003923/0.3075, allocations: 337.5 kB / 375.3 MB, free: 1.77 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001529/0.309, allocations: 1.444 MB / 376.7 MB, free: 324 kB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005726/0.3147, allocations: 3.973 MB / 380.7 MB, free: 12.32 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.013e-06/0.3148, allocations: 0 / 380.7 MB, free: 12.32 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.983e-06/0.3148, allocations: 3.938 kB / 380.7 MB, free: 12.32 MB / 318.1 MB Notification: Performance of Transformations before backend: time 6.075e-05/0.3148, allocations: 4 kB / 380.7 MB, free: 12.32 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.005712/0.3206, allocations: 3.857 MB / 384.5 MB, free: 8.383 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.75e-05/0.3206, allocations: 12.02 kB / 384.5 MB, free: 8.371 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005388/0.3212, allocations: 414.9 kB / 385 MB, free: 7.961 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003563/0.3247, allocations: 2.507 MB / 387.5 MB, free: 5.379 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.642e-05/0.3248, allocations: 44.94 kB / 387.5 MB, free: 5.336 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001206/0.3249, allocations: 48 kB / 387.5 MB, free: 5.289 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001322/0.3263, allocations: 0.7304 MB / 388.3 MB, free: 4.551 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.418e-05/0.3263, allocations: 0 / 388.3 MB, free: 4.551 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.202e-05/0.3264, allocations: 20 kB / 388.3 MB, free: 4.531 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.239e-05/0.3264, allocations: 19.98 kB / 388.3 MB, free: 4.512 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001527/0.3279, allocations: 0.8202 MB / 389.1 MB, free: 3.688 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005015/0.3329, allocations: 3.116 MB / 392.3 MB, free: 0.4961 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00117/0.3341, allocations: 0.5752 MB / 392.8 MB, free: 15.91 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009437/0.3351, allocations: 0.6477 MB / 393.5 MB, free: 15.25 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02658/0.3617, allocations: 30.19 MB / 423.7 MB, free: 12.96 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007268/0.3624, allocations: 365.6 kB / 424 MB, free: 12.59 MB / 366.1 MB Notification: Performance of pre-optimization done (n=49): time 2.755e-06/0.3625, allocations: 0 / 424 MB, free: 12.59 MB / 366.1 MB Notification: Performance of matching and sorting (n=49): time 0.002404/0.3649, allocations: 1.12 MB / 425.1 MB, free: 11.46 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.208e-05/0.3649, allocations: 55.41 kB / 425.2 MB, free: 11.39 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003553/0.3685, allocations: 3.107 MB / 428.3 MB, free: 8.285 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 5.775e-05/0.3686, allocations: 37.7 kB / 428.3 MB, free: 8.242 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001248/0.3698, allocations: 1.577 MB / 429.9 MB, free: 6.652 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000149/0.37, allocations: 169.6 kB / 430.1 MB, free: 6.484 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002742/0.3703, allocations: 234.1 kB / 430.3 MB, free: 6.25 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001015/0.3704, allocations: 333.9 kB / 430.6 MB, free: 5.918 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005653/0.3709, allocations: 241.9 kB / 430.9 MB, free: 5.684 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007674/0.3717, allocations: 0.602 MB / 431.5 MB, free: 4.902 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001386/0.3731, allocations: 0.9012 MB / 432.4 MB, free: 3.832 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.175e-06/0.3731, allocations: 4 kB / 432.4 MB, free: 3.828 MB / 366.1 MB Notification: Performance of matching and sorting (n=110) (initialization): time 0.002162/0.3753, allocations: 1.252 MB / 433.6 MB, free: 2.562 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.687e-05/0.3753, allocations: 15.98 kB / 433.7 MB, free: 2.547 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000106/0.3754, allocations: 80 kB / 433.7 MB, free: 2.469 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.945e-05/0.3755, allocations: 16 kB / 433.7 MB, free: 2.453 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007022/0.3762, allocations: 208.2 kB / 433.9 MB, free: 2.25 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.571e-05/0.3762, allocations: 27.92 kB / 434 MB, free: 2.223 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001169/0.3774, allocations: 103.1 kB / 434.1 MB, free: 2.121 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000101/0.3775, allocations: 68 kB / 434.1 MB, free: 2.055 MB / 366.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.0008549/0.3784, allocations: 461.4 kB / 434.6 MB, free: 1.594 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000485/0.3789, allocations: 399.1 kB / 435 MB, free: 1.199 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003044/0.3819, allocations: 1.215 MB / 436.2 MB, free: 15.97 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.766e-06/0.3819, allocations: 4 kB / 436.2 MB, free: 15.97 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.262e-06/0.382, allocations: 4 kB / 436.2 MB, free: 15.96 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.276e-06/0.382, allocations: 7.938 kB / 436.2 MB, free: 15.96 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003849/0.3858, allocations: 2.155 MB / 438.4 MB, free: 13.73 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.793e-05/0.3859, allocations: 71.98 kB / 438.4 MB, free: 13.66 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000508/0.3865, allocations: 87.86 kB / 438.5 MB, free: 13.58 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.018e-05/0.3865, allocations: 4 kB / 438.5 MB, free: 13.57 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.092e-05/0.3866, allocations: 35.98 kB / 438.6 MB, free: 13.54 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.019e-06/0.3866, allocations: 8 kB / 438.6 MB, free: 13.53 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.067e-06/0.3866, allocations: 4 kB / 438.6 MB, free: 13.53 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002448/0.389, allocations: 1.321 MB / 439.9 MB, free: 12.18 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000898/0.3899, allocations: 496 kB / 440.4 MB, free: 11.67 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004218/0.3904, allocations: 8 kB / 440.4 MB, free: 11.66 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007649/0.3912, allocations: 40.02 kB / 440.4 MB, free: 11.62 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001582/0.3913, allocations: 55.95 kB / 440.5 MB, free: 11.57 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.929e-05/0.3914, allocations: 51.91 kB / 440.5 MB, free: 11.52 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.003331/0.3947, allocations: 2.019 MB / 442.6 MB, free: 9.508 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.3948, allocations: 0 / 442.6 MB, free: 9.508 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0016/0.3964, allocations: 0.605 MB / 443.2 MB, free: 8.902 MB / 382.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.001241/0.3976, allocations: 0.7728 MB / 443.9 MB, free: 8.125 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.001802/0.3994, allocations: 0.825 MB / 444.8 MB, free: 7.273 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 3.496e-06/0.3994, allocations: 0 / 444.8 MB, free: 7.273 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007796/0.4002, allocations: 460.3 kB / 445.2 MB, free: 6.801 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002191/0.4024, allocations: 0.5343 MB / 445.7 MB, free: 6.262 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007344/0.4098, allocations: 4.598 MB / 450.3 MB, free: 1.625 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.1493/0.5592, allocations: 1.717 MB / 452.1 MB, free: 116.1 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.001958/0.5612, allocations: 361.2 kB / 452.4 MB, free: 116.1 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005028/0.5617, allocations: 151.3 kB / 452.6 MB, free: 116.1 MB / 382.1 MB Notification: Performance of SimCode: time 1.623e-06/0.5617, allocations: 0 / 452.6 MB, free: 116.1 MB / 382.1 MB Notification: Performance of Templates: time 0.05266/0.6144, allocations: 32.08 MB / 484.6 MB, free: 91.07 MB / 382.1 MB make -j1 -f Modelica_3.1_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.makefile (rm -f Modelica_3.1_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.pipe ; mkfifo Modelica_3.1_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.pipe ; head -c 1048576 < Modelica_3.1_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.pipe >> ../files/Modelica_3.1_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.sim & ./Modelica_3.1_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.1_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.pipe 2>&1)