Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.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.1_Modelica.Electrical.Spice3.Examples.InvertersApartRecord") translateModel(Modelica.Electrical.Spice3.Examples.InvertersApartRecord,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.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.001232/0.001232, allocations: 111.3 kB / 15.23 MB, free: 0.6406 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.00131/0.00131, allocations: 192 kB / 16.14 MB, free: 6.707 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.386/1.386, allocations: 205.1 MB / 222 MB, free: 4.758 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.001098/0.001098, allocations: 51.92 kB / 278 MB, free: 12.78 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2182/0.2193, allocations: 46.63 MB / 324.7 MB, free: 1.922 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.InvertersApartRecord): time 0.01185/0.2312, allocations: 13.9 MB / 338.6 MB, free: 6.219 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.02252/0.2537, allocations: 19.88 MB / 358.5 MB, free: 2.258 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003444/0.2572, allocations: 27.81 kB / 358.5 MB, free: 2.23 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003939/0.2613, allocations: 1.056 MB / 359.5 MB, free: 1.168 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.008151/0.2695, allocations: 1.891 MB / 361.4 MB, free: 15.27 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004788/0.2743, allocations: 1.156 MB / 362.6 MB, free: 14.11 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.01143/0.2858, allocations: 6.211 MB / 368.8 MB, free: 7.875 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001111/0.2869, allocations: 441.6 kB / 369.2 MB, free: 7.414 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001654/0.2886, allocations: 0.9404 MB / 370.2 MB, free: 6.469 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001125/0.2897, allocations: 1.067 MB / 371.2 MB, free: 5.395 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002108/0.29, allocations: 48 kB / 371.3 MB, free: 5.348 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003685/0.2937, allocations: 1.144 MB / 372.4 MB, free: 4.203 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003344/0.294, allocations: 301.6 kB / 372.7 MB, free: 3.906 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001303/0.2953, allocations: 1.358 MB / 374.1 MB, free: 2.539 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004367/0.2997, allocations: 3.693 MB / 377.8 MB, free: 14.83 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.358e-06/0.2997, allocations: 0 / 377.8 MB, free: 14.83 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.313e-06/0.2997, allocations: 0 / 377.8 MB, free: 14.83 MB / 318.1 MB Notification: Performance of Transformations before backend: time 4.918e-05/0.2998, allocations: 0 / 377.8 MB, free: 14.83 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.004899/0.3047, allocations: 3.705 MB / 381.5 MB, free: 11.04 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.236e-05/0.3047, allocations: 8.031 kB / 381.5 MB, free: 11.04 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004174/0.3052, allocations: 399.1 kB / 381.9 MB, free: 10.64 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003307/0.3085, allocations: 2.449 MB / 384.3 MB, free: 8.117 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.6e-05/0.3085, allocations: 40.94 kB / 384.4 MB, free: 8.078 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001235/0.3087, allocations: 55.89 kB / 384.4 MB, free: 8.023 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001366/0.31, allocations: 0.7304 MB / 385.1 MB, free: 7.289 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.445e-05/0.3101, allocations: 0 / 385.1 MB, free: 7.289 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.439e-05/0.3101, allocations: 20 kB / 385.2 MB, free: 7.27 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.141e-05/0.3102, allocations: 19.98 kB / 385.2 MB, free: 7.25 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001531/0.3117, allocations: 0.8202 MB / 386 MB, free: 6.426 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005516/0.3172, allocations: 3.072 MB / 389.1 MB, free: 3.27 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001243/0.3185, allocations: 0.5713 MB / 389.7 MB, free: 2.691 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009967/0.3195, allocations: 0.6523 MB / 390.3 MB, free: 2.031 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0286/0.3481, allocations: 30.19 MB / 420.5 MB, free: 15.73 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007566/0.3489, allocations: 361.7 kB / 420.8 MB, free: 15.37 MB / 366.1 MB Notification: Performance of pre-optimization done (n=49): time 2.454e-06/0.3489, allocations: 4 kB / 420.9 MB, free: 15.36 MB / 366.1 MB Notification: Performance of matching and sorting (n=49): time 0.002229/0.3512, allocations: 1.089 MB / 421.9 MB, free: 14.26 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.627e-05/0.3512, allocations: 67.34 kB / 422 MB, free: 14.18 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003426/0.3547, allocations: 2.948 MB / 425 MB, free: 11.23 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 4.996e-05/0.3547, allocations: 37.69 kB / 425 MB, free: 11.18 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001234/0.356, allocations: 1.49 MB / 426.5 MB, free: 9.684 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001486/0.3561, allocations: 173.6 kB / 426.7 MB, free: 9.512 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002983/0.3564, allocations: 230.1 kB / 426.9 MB, free: 9.281 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001237/0.3566, allocations: 345.9 kB / 427.2 MB, free: 8.938 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005725/0.3571, allocations: 241.9 kB / 427.4 MB, free: 8.703 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008169/0.358, allocations: 0.5981 MB / 428 MB, free: 7.934 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00139/0.3594, allocations: 0.8974 MB / 428.9 MB, free: 6.867 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.187e-06/0.3594, allocations: 4 kB / 428.9 MB, free: 6.863 MB / 366.1 MB Notification: Performance of matching and sorting (n=110) (initialization): time 0.00206/0.3615, allocations: 1.237 MB / 430.2 MB, free: 5.613 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.287e-05/0.3615, allocations: 12 kB / 430.2 MB, free: 5.602 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001076/0.3616, allocations: 83.98 kB / 430.3 MB, free: 5.52 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.233e-05/0.3616, allocations: 16 kB / 430.3 MB, free: 5.504 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007208/0.3624, allocations: 203.6 kB / 430.5 MB, free: 5.305 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.843e-05/0.3624, allocations: 19.94 kB / 430.5 MB, free: 5.285 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009072/0.3633, allocations: 111.2 kB / 430.6 MB, free: 5.176 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001057/0.3634, allocations: 71.98 kB / 430.7 MB, free: 5.105 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.0006394/0.3641, allocations: 433.4 kB / 431.1 MB, free: 4.672 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003201/0.3644, allocations: 383.3 kB / 431.5 MB, free: 4.293 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002762/0.3672, allocations: 1.198 MB / 432.7 MB, free: 3.086 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.015e-05/0.3672, allocations: 4 kB / 432.7 MB, free: 3.082 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.876e-06/0.3672, allocations: 0 / 432.7 MB, free: 3.082 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.754e-06/0.3672, allocations: 3.984 kB / 432.7 MB, free: 3.078 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003151/0.3704, allocations: 2.105 MB / 434.8 MB, free: 0.8984 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.877e-05/0.3705, allocations: 76.05 kB / 434.9 MB, free: 0.8242 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004744/0.3709, allocations: 87.86 kB / 435 MB, free: 0.7383 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.759e-06/0.371, allocations: 7.938 kB / 435 MB, free: 0.7305 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.278e-05/0.371, allocations: 32 kB / 435 MB, free: 0.6992 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.781e-06/0.371, allocations: 3.984 kB / 435 MB, free: 0.6953 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.485e-06/0.371, allocations: 7.984 kB / 435 MB, free: 0.6875 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002207/0.3732, allocations: 1.298 MB / 436.3 MB, free: 15.36 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006796/0.3739, allocations: 484.2 kB / 436.8 MB, free: 14.86 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000288/0.3742, allocations: 8 kB / 436.8 MB, free: 14.86 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006604/0.3749, allocations: 31.97 kB / 436.8 MB, free: 14.82 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001428/0.3751, allocations: 59.88 kB / 436.9 MB, free: 14.77 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.359e-05/0.3751, allocations: 47.98 kB / 436.9 MB, free: 14.72 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.002359/0.3775, allocations: 1.924 MB / 438.8 MB, free: 12.8 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.3775, allocations: 0 / 438.8 MB, free: 12.8 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.001284/0.3788, allocations: 0.5894 MB / 439.4 MB, free: 12.21 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.001081/0.3799, allocations: 0.7728 MB / 440.2 MB, free: 11.43 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.001607/0.3815, allocations: 0.8026 MB / 441 MB, free: 10.6 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 3.677e-06/0.3815, allocations: 4 kB / 441 MB, free: 10.59 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007665/0.3823, allocations: 451.2 kB / 441.5 MB, free: 10.13 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001882/0.3842, allocations: 494.7 kB / 441.9 MB, free: 9.641 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007134/0.3913, allocations: 5.19 MB / 447.1 MB, free: 4.414 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001132/0.3925, allocations: 1.677 MB / 448.8 MB, free: 2.711 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.001388/0.3939, allocations: 361.2 kB / 449.2 MB, free: 2.352 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002262/0.3941, allocations: 147.4 kB / 449.3 MB, free: 2.207 MB / 382.1 MB Notification: Performance of SimCode: time 9.12e-07/0.3941, allocations: 0 / 449.3 MB, free: 2.207 MB / 382.1 MB Notification: Performance of Templates: time 0.1952/0.5894, allocations: 30.2 MB / 479.5 MB, free: 95.86 MB / 382.1 MB make -j1 -f Modelica_3.1_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.makefile (rm -f Modelica_3.1_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.pipe ; mkfifo Modelica_3.1_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.pipe ; head -c 1048576 < Modelica_3.1_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.pipe >> ../files/Modelica_3.1_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.sim & ./Modelica_3.1_Modelica.Electrical.Spice3.Examples.InvertersApartRecord -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.1_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.pipe 2>&1)