Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.1_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.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.InvertersApartRecord,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.2.1_Modelica.Electrical.Spice3.Examples.InvertersApartRecord") translateModel(Modelica.Electrical.Spice3.Examples.InvertersApartRecord,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.2.1_Modelica.Electrical.Spice3.Examples.InvertersApartRecord") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00128/0.00128, allocations: 108 kB / 15.61 MB, free: 148 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.001371/0.001371, allocations: 197.1 kB / 16.53 MB, free: 6.656 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.605 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.001313/0.001313, allocations: 55.92 kB / 278.7 MB, free: 12.34 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1915/0.1928, allocations: 46.62 MB / 325.3 MB, free: 2.062 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.InvertersApartRecord): time 0.0122/0.205, allocations: 14.03 MB / 339.3 MB, free: 6.004 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.02249/0.2276, allocations: 19.73 MB / 359.1 MB, free: 2.188 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002895/0.2305, allocations: 27.81 kB / 359.1 MB, free: 2.16 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003143/0.2337, allocations: 1.203 MB / 360.3 MB, free: 0.9492 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007067/0.2408, allocations: 2.266 MB / 362.6 MB, free: 14.66 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004168/0.245, allocations: 1.381 MB / 363.9 MB, free: 13.28 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.009127/0.2541, allocations: 6.321 MB / 370.3 MB, free: 6.941 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0009407/0.2551, allocations: 469.1 kB / 370.7 MB, free: 6.453 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001496/0.2566, allocations: 0.9601 MB / 371.7 MB, free: 5.488 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001656/0.2583, allocations: 1.087 MB / 372.8 MB, free: 4.395 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003673/0.2587, allocations: 76 kB / 372.8 MB, free: 4.32 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003696/0.2624, allocations: 1.159 MB / 374 MB, free: 3.16 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003619/0.2628, allocations: 337.5 kB / 374.3 MB, free: 2.828 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001531/0.2643, allocations: 1.382 MB / 375.7 MB, free: 1.438 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004629/0.2689, allocations: 3.767 MB / 379.5 MB, free: 13.65 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.641e-06/0.269, allocations: 0 / 379.5 MB, free: 13.65 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.214e-06/0.269, allocations: 0 / 379.5 MB, free: 13.65 MB / 318.1 MB Notification: Performance of Transformations before backend: time 7.721e-05/0.2691, allocations: 0 / 379.5 MB, free: 13.65 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.005613/0.2747, allocations: 3.705 MB / 383.2 MB, free: 9.871 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.201e-05/0.2747, allocations: 12.02 kB / 383.2 MB, free: 9.859 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004001/0.2751, allocations: 403.1 kB / 383.6 MB, free: 9.461 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003307/0.2785, allocations: 2.445 MB / 386 MB, free: 6.938 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.173e-05/0.2785, allocations: 40.94 kB / 386.1 MB, free: 6.898 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000122/0.2786, allocations: 55.89 kB / 386.1 MB, free: 6.844 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001283/0.2799, allocations: 0.7304 MB / 386.9 MB, free: 6.105 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.775e-05/0.28, allocations: 3.938 kB / 386.9 MB, free: 6.102 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.028e-05/0.28, allocations: 20 kB / 386.9 MB, free: 6.082 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.168e-05/0.2801, allocations: 19.98 kB / 386.9 MB, free: 6.062 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001535/0.2816, allocations: 0.8163 MB / 387.7 MB, free: 5.242 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004874/0.2865, allocations: 3.069 MB / 390.8 MB, free: 2.094 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001178/0.2877, allocations: 0.5752 MB / 391.4 MB, free: 1.504 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009694/0.2887, allocations: 0.6438 MB / 392 MB, free: 0.8555 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02709/0.3158, allocations: 30.2 MB / 422.2 MB, free: 14.55 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007366/0.3165, allocations: 357.7 kB / 422.6 MB, free: 14.2 MB / 366.1 MB Notification: Performance of pre-optimization done (n=49): time 2.595e-06/0.3166, allocations: 0 / 422.6 MB, free: 14.2 MB / 366.1 MB Notification: Performance of matching and sorting (n=49): time 0.002319/0.3189, allocations: 1.096 MB / 423.6 MB, free: 13.09 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.831e-05/0.3189, allocations: 63.39 kB / 423.7 MB, free: 13.01 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003335/0.3223, allocations: 2.956 MB / 426.7 MB, free: 10.05 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 6.345e-05/0.3224, allocations: 33.7 kB / 426.7 MB, free: 10.01 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001187/0.3235, allocations: 1.494 MB / 428.2 MB, free: 8.504 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001485/0.3237, allocations: 165.6 kB / 428.4 MB, free: 8.34 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002868/0.324, allocations: 230.1 kB / 428.6 MB, free: 8.109 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.000108/0.3241, allocations: 338 kB / 428.9 MB, free: 7.773 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005794/0.3247, allocations: 245.8 kB / 429.1 MB, free: 7.535 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007939/0.3255, allocations: 0.5981 MB / 429.7 MB, free: 6.758 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0014/0.3269, allocations: 0.8974 MB / 430.6 MB, free: 5.691 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.302e-06/0.3269, allocations: 7.938 kB / 430.7 MB, free: 5.684 MB / 366.1 MB Notification: Performance of matching and sorting (n=110) (initialization): time 0.002112/0.3291, allocations: 1.234 MB / 431.9 MB, free: 4.438 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.322e-05/0.3291, allocations: 12.06 kB / 431.9 MB, free: 4.426 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001071/0.3292, allocations: 84 kB / 432 MB, free: 4.344 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.809e-05/0.3292, allocations: 20 kB / 432 MB, free: 4.324 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000695/0.3299, allocations: 203.6 kB / 432.2 MB, free: 4.125 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.205e-05/0.33, allocations: 23.92 kB / 432.2 MB, free: 4.102 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009263/0.3309, allocations: 111.1 kB / 432.3 MB, free: 3.992 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.876e-05/0.331, allocations: 67.98 kB / 432.4 MB, free: 3.926 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.0006655/0.3317, allocations: 437.4 kB / 432.8 MB, free: 3.488 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003395/0.332, allocations: 383.3 kB / 433.2 MB, free: 3.109 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00288/0.3349, allocations: 1.198 MB / 434.4 MB, free: 1.906 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.375e-06/0.3349, allocations: 8 kB / 434.4 MB, free: 1.898 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.492e-06/0.335, allocations: 0 / 434.4 MB, free: 1.898 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.802e-06/0.335, allocations: 3.984 kB / 434.4 MB, free: 1.895 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00338/0.3384, allocations: 2.097 MB / 436.5 MB, free: 15.72 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.64e-05/0.3385, allocations: 72 kB / 436.6 MB, free: 15.65 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005041/0.339, allocations: 99.91 kB / 436.7 MB, free: 15.55 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.959e-06/0.339, allocations: 0 / 436.7 MB, free: 15.55 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.424e-05/0.3391, allocations: 36 kB / 436.7 MB, free: 15.52 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.141e-06/0.3391, allocations: 0 / 436.7 MB, free: 15.52 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.146e-06/0.3391, allocations: 7.922 kB / 436.7 MB, free: 15.51 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002225/0.3413, allocations: 1.305 MB / 438 MB, free: 14.18 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007527/0.3421, allocations: 480.2 kB / 438.5 MB, free: 13.69 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003162/0.3424, allocations: 15.98 kB / 438.5 MB, free: 13.67 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006535/0.3431, allocations: 27.91 kB / 438.5 MB, free: 13.64 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000156/0.3432, allocations: 59.95 kB / 438.6 MB, free: 13.59 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.204e-05/0.3433, allocations: 43.92 kB / 438.6 MB, free: 13.54 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.002391/0.3457, allocations: 1.924 MB / 440.6 MB, free: 11.62 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.61e-07/0.3457, allocations: 0 / 440.6 MB, free: 11.62 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.001354/0.3471, allocations: 0.5855 MB / 441.1 MB, free: 11.04 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.001002/0.3481, allocations: 0.7728 MB / 441.9 MB, free: 10.26 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.001717/0.3498, allocations: 0.8297 MB / 442.7 MB, free: 9.402 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.796e-06/0.3498, allocations: 0 / 442.7 MB, free: 9.402 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007693/0.3506, allocations: 451.2 kB / 443.2 MB, free: 8.938 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001764/0.3524, allocations: 0.5182 MB / 443.7 MB, free: 8.414 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005742/0.3581, allocations: 4.399 MB / 448.1 MB, free: 3.98 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001022/0.3592, allocations: 1.669 MB / 449.8 MB, free: 2.285 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.001223/0.3604, allocations: 365.3 kB / 450.1 MB, free: 1.922 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002167/0.3607, allocations: 151.4 kB / 450.3 MB, free: 1.773 MB / 382.1 MB Notification: Performance of SimCode: time 4.71e-07/0.3607, allocations: 0 / 450.3 MB, free: 1.773 MB / 382.1 MB Notification: Performance of Templates: time 0.1883/0.549, allocations: 31.26 MB / 481.5 MB, free: 94.81 MB / 382.1 MB make -j1 -f Modelica_3.2.1_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.makefile (rm -f Modelica_3.2.1_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.pipe ; mkfifo Modelica_3.2.1_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.pipe ; head -c 1048576 < Modelica_3.2.1_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.pipe >> ../files/Modelica_3.2.1_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.sim & ./Modelica_3.2.1_Modelica.Electrical.Spice3.Examples.InvertersApartRecord -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.1_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.pipe 2>&1)