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/Complex 3.2.2+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo) Using package Modelica with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo) Using package Complex with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+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/Complex 3.2.2+maint.om/package.mo): time 0.001594/0.001594, allocations: 188.6 kB / 8.353 MB, free: 0.707 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo): time 1.381/1.381, allocations: 194.3 MB / 203.1 MB, free: 9.328 MB / 171.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo): time 0.001766/0.001766, allocations: 118.7 kB / 248.1 MB, free: 6.324 MB / 203.1 MB Notification: Performance of FrontEnd - loaded program: time 1.322e-05/1.335e-05, allocations: 4 kB / 298.1 MB, free: 8.254 MB / 251.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08711/0.08714, allocations: 44.48 MB / 342.6 MB, free: 11.67 MB / 299.1 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2948/0.382, allocations: 97.11 MB / 439.7 MB, free: 14.99 MB / 331.1 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002092/0.3823, allocations: 79.05 kB / 439.7 MB, free: 14.95 MB / 331.1 MB Notification: Performance of FrontEnd - DAE generated: time 0.4475/0.8298, allocations: 120.1 MB / 0.5468 GB, free: 74.79 MB / 395.1 MB Notification: Performance of FrontEnd: time 1.593e-06/0.8298, allocations: 0 / 0.5468 GB, free: 74.79 MB / 395.1 MB Notification: Performance of Transformations before backend: time 9.754e-05/0.8299, allocations: 44.94 kB / 0.5468 GB, free: 74.79 MB / 395.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.006334/0.8363, allocations: 2.699 MB / 0.5495 GB, free: 73.3 MB / 395.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.398e-05/0.8363, allocations: 10.06 kB / 0.5495 GB, free: 73.3 MB / 395.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00116/0.8375, allocations: 398.3 kB / 0.5498 GB, free: 73.11 MB / 395.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005173/0.8427, allocations: 2.371 MB / 0.5522 GB, free: 72.45 MB / 395.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.671e-05/0.8427, allocations: 17.34 kB / 0.5522 GB, free: 72.45 MB / 395.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002086/0.843, allocations: 43 kB / 0.5522 GB, free: 72.44 MB / 395.1 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001167/0.8441, allocations: 0.6818 MB / 0.5529 GB, free: 72.44 MB / 395.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001293/0.8454, allocations: 0.7198 MB / 0.5536 GB, free: 72.32 MB / 395.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.712e-05/0.8455, allocations: 0 / 0.5536 GB, free: 72.32 MB / 395.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.569e-05/0.8456, allocations: 9.453 kB / 0.5536 GB, free: 72.31 MB / 395.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.39e-05/0.8456, allocations: 19.03 kB / 0.5536 GB, free: 72.31 MB / 395.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006166/0.8518, allocations: 3.074 MB / 0.5566 GB, free: 71.79 MB / 395.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006813/0.8525, allocations: 475.3 kB / 0.5571 GB, free: 71.76 MB / 395.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006678/0.8531, allocations: 0.5768 MB / 0.5576 GB, free: 71.74 MB / 395.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02989/0.883, allocations: 36.16 MB / 0.5929 GB, free: 44.41 MB / 395.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004224/0.8835, allocations: 311.6 kB / 0.5932 GB, free: 44.29 MB / 395.1 MB Notification: Performance of pre-optimization done (n=49): time 2.655e-06/0.8835, allocations: 0 / 0.5932 GB, free: 44.29 MB / 395.1 MB Notification: Performance of matching and sorting (n=49): time 0.001524/0.8851, allocations: 0.7808 MB / 0.594 GB, free: 43.96 MB / 395.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.707e-05/0.8851, allocations: 268.8 kB / 0.5943 GB, free: 43.64 MB / 395.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00396/0.8891, allocations: 2.314 MB / 0.5965 GB, free: 42.73 MB / 395.1 MB Notification: Performance of collectPreVariables (initialization): time 5.138e-05/0.8892, allocations: 33.42 kB / 0.5965 GB, free: 42.7 MB / 395.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.00116/0.8904, allocations: 1.496 MB / 0.598 GB, free: 41.48 MB / 395.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001306/0.8905, allocations: 166.7 kB / 0.5982 GB, free: 41.36 MB / 395.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.316e-05/0.8906, allocations: 3.938 kB / 0.5982 GB, free: 41.36 MB / 395.1 MB Notification: Performance of setup shared object (initialization): time 6.76e-05/0.8906, allocations: 344.4 kB / 0.5985 GB, free: 41.04 MB / 395.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002375/0.8909, allocations: 171.4 kB / 0.5987 GB, free: 40.97 MB / 395.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003696/0.8912, allocations: 0.5737 MB / 0.5992 GB, free: 40.35 MB / 395.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004108/0.8917, allocations: 265.3 kB / 0.5995 GB, free: 40.25 MB / 395.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.236e-06/0.8917, allocations: 4.875 kB / 0.5995 GB, free: 40.25 MB / 395.1 MB Notification: Performance of matching and sorting (n=110) (initialization): time 0.001633/0.8933, allocations: 1.035 MB / 0.6005 GB, free: 39.82 MB / 395.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.087e-05/0.8934, allocations: 12.19 kB / 0.6005 GB, free: 39.82 MB / 395.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.617e-05/0.8935, allocations: 80.8 kB / 0.6006 GB, free: 39.82 MB / 395.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.368e-05/0.8935, allocations: 25.94 kB / 0.6006 GB, free: 39.82 MB / 395.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007074/0.8942, allocations: 212.4 kB / 0.6008 GB, free: 39.79 MB / 395.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.239e-05/0.8942, allocations: 25.58 kB / 0.6008 GB, free: 39.79 MB / 395.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001669/0.8959, allocations: 105.7 kB / 0.6009 GB, free: 39.74 MB / 395.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001022/0.896, allocations: 65.34 kB / 0.601 GB, free: 39.73 MB / 395.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 ($PRE.vin.counter,vin.counter,$PRE.v.counter,v.counter,$whenCondition2,$whenCondition1,$PRE.vin.T0,vin.T0,$PRE.vin.counter2,vin.counter2,$PRE.v.T0,v.T0,$PRE.v.counter2,v.counter2) * Number of discrete 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002039/0.8962, allocations: 154.5 kB / 0.6011 GB, free: 39.59 MB / 395.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005928/0.8968, allocations: 383.1 kB / 0.6015 GB, free: 39.4 MB / 395.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002605/0.8995, allocations: 1.117 MB / 0.6026 GB, free: 38.99 MB / 395.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.679e-06/0.8995, allocations: 12.39 kB / 0.6026 GB, free: 38.98 MB / 395.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.673e-06/0.8995, allocations: 0 / 0.6026 GB, free: 38.98 MB / 395.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.863e-06/0.8995, allocations: 3.938 kB / 0.6026 GB, free: 38.98 MB / 395.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003811/0.9033, allocations: 2.008 MB / 0.6046 GB, free: 38.09 MB / 395.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.528e-05/0.9034, allocations: 67.83 kB / 0.6046 GB, free: 38.09 MB / 395.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004745/0.9039, allocations: 106.9 kB / 0.6047 GB, free: 38.08 MB / 395.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.145e-06/0.9039, allocations: 6.766 kB / 0.6048 GB, free: 38.08 MB / 395.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.448e-05/0.904, allocations: 35.42 kB / 0.6048 GB, free: 38.07 MB / 395.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.256e-06/0.904, allocations: 0 / 0.6048 GB, free: 38.07 MB / 395.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.066e-06/0.904, allocations: 0 / 0.6048 GB, free: 38.07 MB / 395.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001433/0.9055, allocations: 1.196 MB / 0.606 GB, free: 37.42 MB / 395.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001167/0.9066, allocations: 0.5504 MB / 0.6065 GB, free: 37.01 MB / 395.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008162/0.9075, allocations: 3.5 kB / 0.6065 GB, free: 37.01 MB / 395.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001078/0.9085, allocations: 36.3 kB / 0.6065 GB, free: 37.01 MB / 395.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001296/0.9087, allocations: 61.77 kB / 0.6066 GB, free: 37 MB / 395.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.285e-05/0.9088, allocations: 40.84 kB / 0.6066 GB, free: 37 MB / 395.1 MB Notification: Performance of sorting global known variables: time 0.002217/0.911, allocations: 1.72 MB / 0.6083 GB, free: 36.29 MB / 395.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.911, allocations: 0 / 0.6083 GB, free: 36.29 MB / 395.1 MB Notification: Performance of remove unused functions: time 0.001777/0.9128, allocations: 0.6039 MB / 0.6089 GB, free: 36.21 MB / 395.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) * 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001222/0.914, allocations: 0.9425 MB / 0.6098 GB, free: 35.92 MB / 395.1 MB Notification: Performance of simCode: created initialization part: time 0.0008406/0.9149, allocations: 0.6647 MB / 0.6105 GB, free: 35.62 MB / 395.1 MB Notification: Performance of simCode: created event and clocks part: time 3.296e-06/0.9149, allocations: 0 / 0.6105 GB, free: 35.62 MB / 395.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003678/0.9152, allocations: 389.5 kB / 0.6108 GB, free: 35.41 MB / 395.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001598/0.9168, allocations: 0.4955 MB / 0.6113 GB, free: 35.18 MB / 395.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004919/0.9218, allocations: 3.113 MB / 0.6144 GB, free: 33.86 MB / 395.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001073/0.9229, allocations: 1.728 MB / 0.616 GB, free: 33.09 MB / 395.1 MB Notification: Performance of simCode: alias equations: time 0.001246/0.9241, allocations: 384.7 kB / 0.6164 GB, free: 33 MB / 395.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002393/0.9244, allocations: 164.1 kB / 0.6166 GB, free: 32.99 MB / 395.1 MB Notification: Performance of SimCode: time 4.31e-07/0.9244, allocations: 0 / 0.6166 GB, free: 32.99 MB / 395.1 MB Notification: Performance of Templates: time 0.04417/0.9686, allocations: 28.2 MB / 0.6441 GB, free: 10.77 MB / 395.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)