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.001048/0.001048, allocations: 115.3 kB / 15.34 MB, free: 0.5156 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.001548/0.001548, allocations: 191.4 kB / 16.25 MB, free: 6.625 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.394/1.394, allocations: 205.1 MB / 222.1 MB, free: 4.754 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.001146/0.001146, allocations: 51.94 kB / 278.2 MB, free: 12.7 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2062/0.2074, allocations: 46.62 MB / 324.8 MB, free: 1.941 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.InvertersApartRecord): time 0.01195/0.2194, allocations: 13.92 MB / 338.8 MB, free: 6.168 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.0202/0.2396, allocations: 19.47 MB / 358.2 MB, free: 2.617 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003933/0.2436, allocations: 31.81 kB / 358.3 MB, free: 2.586 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003587/0.2472, allocations: 1.053 MB / 359.3 MB, free: 1.527 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007634/0.2549, allocations: 1.95 MB / 361.3 MB, free: 15.56 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004542/0.2594, allocations: 1.207 MB / 362.5 MB, free: 14.35 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.01162/0.2711, allocations: 6.394 MB / 368.9 MB, free: 7.941 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001185/0.2723, allocations: 469.1 kB / 369.3 MB, free: 7.453 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001603/0.274, allocations: 0.9756 MB / 370.3 MB, free: 6.473 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001643/0.2756, allocations: 1.087 MB / 371.4 MB, free: 5.379 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002686/0.2759, allocations: 76 kB / 371.5 MB, free: 5.305 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003701/0.2796, allocations: 1.156 MB / 372.6 MB, free: 4.148 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004533/0.2801, allocations: 333.6 kB / 372.9 MB, free: 3.82 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001697/0.2818, allocations: 1.389 MB / 374.3 MB, free: 2.422 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005414/0.2872, allocations: 3.747 MB / 378.1 MB, free: 14.66 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.601e-06/0.2873, allocations: 0 / 378.1 MB, free: 14.66 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.533e-06/0.2873, allocations: 4 kB / 378.1 MB, free: 14.65 MB / 318.1 MB Notification: Performance of Transformations before backend: time 6.802e-05/0.2874, allocations: 0 / 378.1 MB, free: 14.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.005015/0.2924, allocations: 3.701 MB / 381.8 MB, free: 10.88 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.189e-05/0.2924, allocations: 16.03 kB / 381.8 MB, free: 10.86 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004497/0.2929, allocations: 411 kB / 382.2 MB, free: 10.45 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003249/0.2962, allocations: 2.438 MB / 384.6 MB, free: 7.938 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.29e-05/0.2962, allocations: 40.94 kB / 384.7 MB, free: 7.898 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000123/0.2963, allocations: 59.89 kB / 384.7 MB, free: 7.84 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001322/0.2977, allocations: 0.7343 MB / 385.5 MB, free: 7.102 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.52e-05/0.2977, allocations: 0 / 385.5 MB, free: 7.102 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.361e-05/0.2978, allocations: 16 kB / 385.5 MB, free: 7.086 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.064e-05/0.2978, allocations: 23.98 kB / 385.5 MB, free: 7.062 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001457/0.2993, allocations: 0.8163 MB / 386.3 MB, free: 6.242 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005066/0.3043, allocations: 3.069 MB / 389.4 MB, free: 3.094 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001192/0.3056, allocations: 0.579 MB / 390 MB, free: 2.504 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009462/0.3065, allocations: 0.6399 MB / 390.6 MB, free: 1.852 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02833/0.3349, allocations: 30.19 MB / 420.8 MB, free: 15.55 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008006/0.3357, allocations: 357.7 kB / 421.2 MB, free: 15.2 MB / 366.1 MB Notification: Performance of pre-optimization done (n=49): time 2.635e-06/0.3357, allocations: 0 / 421.2 MB, free: 15.2 MB / 366.1 MB Notification: Performance of matching and sorting (n=49): time 0.00284/0.3386, allocations: 1.097 MB / 422.2 MB, free: 14.09 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.627e-05/0.3387, allocations: 63.41 kB / 422.3 MB, free: 14.01 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003729/0.3424, allocations: 2.956 MB / 425.3 MB, free: 11.05 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001314/0.3426, allocations: 37.7 kB / 425.3 MB, free: 11 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001166/0.3437, allocations: 1.486 MB / 426.8 MB, free: 9.508 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001903/0.3439, allocations: 173.6 kB / 427 MB, free: 9.336 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002974/0.3442, allocations: 226.1 kB / 427.2 MB, free: 9.109 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001137/0.3444, allocations: 337.9 kB / 427.5 MB, free: 8.773 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005873/0.345, allocations: 241.9 kB / 427.7 MB, free: 8.539 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007529/0.3457, allocations: 0.6098 MB / 428.4 MB, free: 7.754 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001382/0.3471, allocations: 0.8857 MB / 429.2 MB, free: 6.699 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.913e-06/0.3471, allocations: 4 kB / 429.2 MB, free: 6.695 MB / 366.1 MB Notification: Performance of matching and sorting (n=110) (initialization): time 0.002297/0.3494, allocations: 1.234 MB / 430.5 MB, free: 5.449 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.733e-05/0.3495, allocations: 8.188 kB / 430.5 MB, free: 5.441 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001141/0.3496, allocations: 91.98 kB / 430.6 MB, free: 5.352 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.878e-05/0.3497, allocations: 20 kB / 430.6 MB, free: 5.332 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007106/0.3504, allocations: 207.6 kB / 430.8 MB, free: 5.129 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.192e-05/0.3504, allocations: 19.94 kB / 430.8 MB, free: 5.109 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001048/0.3515, allocations: 107.1 kB / 430.9 MB, free: 5.004 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001081/0.3516, allocations: 71.94 kB / 431 MB, free: 4.934 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.0008254/0.3524, allocations: 433.5 kB / 431.4 MB, free: 4.5 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004316/0.3528, allocations: 387.3 kB / 431.8 MB, free: 4.117 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002901/0.3558, allocations: 1.202 MB / 433 MB, free: 2.91 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.039e-05/0.3558, allocations: 8 kB / 433 MB, free: 2.902 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.715e-06/0.3558, allocations: 3.984 kB / 433 MB, free: 2.898 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.179e-06/0.3558, allocations: 0 / 433 MB, free: 2.898 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003107/0.3589, allocations: 2.097 MB / 435.1 MB, free: 0.7266 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.659e-05/0.359, allocations: 75.98 kB / 435.2 MB, free: 0.6523 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004935/0.3595, allocations: 91.92 kB / 435.3 MB, free: 0.5625 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.492e-06/0.3596, allocations: 0 / 435.3 MB, free: 0.5625 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.789e-05/0.3596, allocations: 35.98 kB / 435.3 MB, free: 0.5273 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.46e-06/0.3596, allocations: 4 kB / 435.3 MB, free: 0.5234 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.554e-06/0.3596, allocations: 3.938 kB / 435.3 MB, free: 0.5195 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002401/0.3621, allocations: 1.313 MB / 436.6 MB, free: 15.18 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008498/0.3629, allocations: 480.2 kB / 437.1 MB, free: 14.69 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003229/0.3633, allocations: 12 kB / 437.1 MB, free: 14.68 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006613/0.3639, allocations: 27.95 kB / 437.1 MB, free: 14.65 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001669/0.3641, allocations: 59.95 kB / 437.2 MB, free: 14.59 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.893e-05/0.3642, allocations: 39.94 kB / 437.2 MB, free: 14.55 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.002726/0.3669, allocations: 1.916 MB / 439.1 MB, free: 12.64 MB / 382.1 MB Notification: Performance of sort global known variables: time 3.51e-07/0.367, allocations: 4.062 kB / 439.2 MB, free: 12.63 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.00164/0.3686, allocations: 0.5894 MB / 439.7 MB, free: 12.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.001237/0.3699, allocations: 0.7845 MB / 440.5 MB, free: 11.25 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.001738/0.3716, allocations: 0.8299 MB / 441.4 MB, free: 10.39 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 3.456e-06/0.3716, allocations: 0 / 441.4 MB, free: 10.39 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007247/0.3724, allocations: 451.2 kB / 441.8 MB, free: 9.93 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002039/0.3744, allocations: 0.5181 MB / 442.3 MB, free: 9.406 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006457/0.3809, allocations: 5.2 MB / 447.5 MB, free: 4.172 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009999/0.3819, allocations: 1.665 MB / 449.2 MB, free: 2.48 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.001246/0.3832, allocations: 365.3 kB / 449.5 MB, free: 2.117 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002175/0.3834, allocations: 151.4 kB / 449.7 MB, free: 1.969 MB / 382.1 MB Notification: Performance of SimCode: time 9.92e-07/0.3834, allocations: 0 / 449.7 MB, free: 1.969 MB / 382.1 MB Notification: Performance of Templates: time 0.1944/0.5778, allocations: 31.06 MB / 480.7 MB, free: 95.26 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)