Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.2_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.2_Modelica.Electrical.Spice3.Examples.InvertersApartRecord") translateModel(Modelica.Electrical.Spice3.Examples.InvertersApartRecord,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.2.2_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.001106/0.001106, allocations: 105.8 kB / 16.92 MB, free: 6.145 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.001275/0.001275, allocations: 187.4 kB / 17.85 MB, free: 5.285 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.372/1.372, allocations: 205.1 MB / 223.7 MB, free: 12.29 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.001314/0.001314, allocations: 43.94 kB / 280 MB, free: 3.168 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09476/0.09609, allocations: 46.62 MB / 326.6 MB, free: 4.473 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.InvertersApartRecord): time 0.01338/0.1095, allocations: 14.03 MB / 340.6 MB, free: 6.379 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.02228/0.1318, allocations: 19.73 MB / 360.4 MB, free: 2.574 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002394/0.1343, allocations: 31.81 kB / 360.4 MB, free: 2.543 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003958/0.1383, allocations: 1.209 MB / 361.6 MB, free: 1.32 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.008382/0.1467, allocations: 2.262 MB / 363.9 MB, free: 15.04 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005442/0.1522, allocations: 1.396 MB / 365.3 MB, free: 13.64 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.009643/0.1618, allocations: 6.31 MB / 371.6 MB, free: 7.312 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0008082/0.1627, allocations: 461.1 kB / 372 MB, free: 6.832 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001291/0.164, allocations: 0.9718 MB / 373 MB, free: 5.855 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001108/0.1651, allocations: 1.083 MB / 374.1 MB, free: 4.766 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001818/0.1653, allocations: 80 kB / 374.2 MB, free: 4.688 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003393/0.1687, allocations: 1.156 MB / 375.3 MB, free: 3.531 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003011/0.169, allocations: 337.6 kB / 375.6 MB, free: 3.199 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001262/0.1703, allocations: 1.386 MB / 377 MB, free: 1.805 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.161/0.3313, allocations: 3.755 MB / 380.8 MB, free: 24.59 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.002e-06/0.3314, allocations: 0 / 380.8 MB, free: 24.59 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.373e-06/0.3314, allocations: 0 / 380.8 MB, free: 24.59 MB / 318.1 MB Notification: Performance of Transformations before backend: time 0.0001423/0.3315, allocations: 0 / 380.8 MB, free: 24.59 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.007163/0.3387, allocations: 3.71 MB / 384.5 MB, free: 22.5 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.319e-05/0.3388, allocations: 11.47 kB / 384.5 MB, free: 22.5 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005315/0.3393, allocations: 396.7 kB / 384.9 MB, free: 22.3 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003689/0.343, allocations: 2.451 MB / 387.3 MB, free: 21.48 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.719e-05/0.343, allocations: 40.94 kB / 387.4 MB, free: 21.48 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001398/0.3432, allocations: 51.8 kB / 387.4 MB, free: 21.48 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001495/0.3447, allocations: 0.7292 MB / 388.2 MB, free: 21.44 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.675e-05/0.3447, allocations: 0 / 388.2 MB, free: 21.44 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.674e-05/0.3448, allocations: 18.95 kB / 388.2 MB, free: 21.44 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.796e-05/0.3448, allocations: 19.59 kB / 388.2 MB, free: 21.44 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00166/0.3465, allocations: 0.8207 MB / 389 MB, free: 21.43 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005967/0.3525, allocations: 3.071 MB / 392.1 MB, free: 20.9 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001212/0.3537, allocations: 0.5785 MB / 392.7 MB, free: 20.87 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009578/0.3547, allocations: 0.6469 MB / 393.3 MB, free: 20.86 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02347/0.3782, allocations: 30.19 MB / 423.5 MB, free: 10.89 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000769/0.379, allocations: 362.7 kB / 423.9 MB, free: 10.53 MB / 334.1 MB Notification: Performance of pre-optimization done (n=49): time 2.365e-06/0.379, allocations: 0 / 423.9 MB, free: 10.53 MB / 334.1 MB Notification: Performance of matching and sorting (n=49): time 0.002381/0.3814, allocations: 1.099 MB / 425 MB, free: 9.422 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.109e-05/0.3815, allocations: 63.39 kB / 425 MB, free: 9.348 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004084/0.3855, allocations: 2.952 MB / 428 MB, free: 6.387 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 7.09e-05/0.3856, allocations: 37.7 kB / 428 MB, free: 6.344 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001282/0.3869, allocations: 1.493 MB / 429.5 MB, free: 4.844 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000162/0.3871, allocations: 169.7 kB / 429.7 MB, free: 4.684 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003075/0.3874, allocations: 230.1 kB / 429.9 MB, free: 4.453 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001371/0.3876, allocations: 338 kB / 430.2 MB, free: 4.117 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006639/0.3882, allocations: 245.8 kB / 430.5 MB, free: 3.879 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000812/0.389, allocations: 0.5966 MB / 431.1 MB, free: 3.113 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001465/0.3905, allocations: 0.895 MB / 432 MB, free: 2.102 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.897e-06/0.3905, allocations: 5.406 kB / 432 MB, free: 2.098 MB / 334.1 MB Notification: Performance of matching and sorting (n=110) (initialization): time 0.002188/0.3927, allocations: 1.228 MB / 433.2 MB, free: 0.9336 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.284e-05/0.3928, allocations: 12.94 kB / 433.2 MB, free: 0.9219 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001175/0.3929, allocations: 81.2 kB / 433.3 MB, free: 0.8438 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.958e-05/0.3929, allocations: 23.94 kB / 433.3 MB, free: 0.8203 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007165/0.3936, allocations: 201.8 kB / 433.5 MB, free: 0.6367 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.472e-05/0.3937, allocations: 30.45 kB / 433.5 MB, free: 0.6133 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001235/0.3949, allocations: 108.9 kB / 433.6 MB, free: 0.5078 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001003/0.395, allocations: 64 kB / 433.7 MB, free: 456 kB / 334.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.0007059/0.3957, allocations: 436.6 kB / 434.1 MB, free: 24 kB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004346/0.3962, allocations: 383.5 kB / 434.5 MB, free: 15.64 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002988/0.3992, allocations: 1.206 MB / 435.7 MB, free: 14.45 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.286e-06/0.3992, allocations: 4 kB / 435.7 MB, free: 14.45 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.741e-06/0.3992, allocations: 0 / 435.7 MB, free: 14.45 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.813e-06/0.3992, allocations: 7.984 kB / 435.7 MB, free: 14.44 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003635/0.4029, allocations: 2.091 MB / 437.8 MB, free: 12.29 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.571e-05/0.403, allocations: 68 kB / 437.9 MB, free: 12.22 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005038/0.4035, allocations: 106.8 kB / 438 MB, free: 12.12 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.412e-06/0.4035, allocations: 0 / 438 MB, free: 12.12 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.034e-05/0.4036, allocations: 32 kB / 438 MB, free: 12.09 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.382e-06/0.4036, allocations: 4 kB / 438 MB, free: 12.09 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.585e-06/0.4036, allocations: 0 / 438 MB, free: 12.09 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002312/0.4059, allocations: 1.3 MB / 439.3 MB, free: 10.77 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009036/0.4068, allocations: 484.1 kB / 439.8 MB, free: 10.27 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004772/0.4073, allocations: 16.05 kB / 439.8 MB, free: 10.26 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007918/0.4081, allocations: 23.97 kB / 439.8 MB, free: 10.23 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001561/0.4083, allocations: 59.95 kB / 439.9 MB, free: 10.18 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.519e-05/0.4084, allocations: 39.98 kB / 439.9 MB, free: 10.14 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.002718/0.4111, allocations: 1.923 MB / 441.8 MB, free: 8.219 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.61e-07/0.4111, allocations: 1.859 kB / 441.8 MB, free: 8.219 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.001787/0.4129, allocations: 0.5855 MB / 442.4 MB, free: 7.633 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.001356/0.4143, allocations: 0.7811 MB / 443.2 MB, free: 6.996 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001945/0.4162, allocations: 0.835 MB / 444.1 MB, free: 6.176 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.797e-06/0.4162, allocations: 0 / 444.1 MB, free: 6.176 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008242/0.4171, allocations: 453.7 kB / 444.5 MB, free: 5.719 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002502/0.4196, allocations: 0.517 MB / 445 MB, free: 5.199 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007138/0.4267, allocations: 4.398 MB / 449.4 MB, free: 0.7969 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001402/0.4282, allocations: 1.673 MB / 451.1 MB, free: 15.09 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.001314/0.4295, allocations: 357.3 kB / 451.4 MB, free: 14.73 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002981/0.4298, allocations: 155.4 kB / 451.6 MB, free: 14.58 MB / 366.1 MB Notification: Performance of SimCode: time 5.91e-07/0.4298, allocations: 5.859 kB / 451.6 MB, free: 14.58 MB / 366.1 MB Notification: Performance of Templates: time 0.05614/0.486, allocations: 31.26 MB / 482.8 MB, free: 15.45 MB / 398.1 MB make -j1 -f Modelica_3.2.2_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.makefile (rm -f Modelica_3.2.2_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.pipe ; mkfifo Modelica_3.2.2_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.pipe ; head -c 1048576 < Modelica_3.2.2_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.pipe >> ../files/Modelica_3.2.2_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.sim & ./Modelica_3.2.2_Modelica.Electrical.Spice3.Examples.InvertersApartRecord -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.2_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.pipe 2>&1)