Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_ModelicaTest.Electrical.QuasiStatic.SinglePhase.Ideal.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) 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 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: translateModel(ModelicaTest.Electrical.QuasiStatic.SinglePhase.Ideal,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|I.re|I.im",fileNamePrefix="ModelicaTest_3.2.3_ModelicaTest.Electrical.QuasiStatic.SinglePhase.Ideal") translateModel(ModelicaTest.Electrical.QuasiStatic.SinglePhase.Ideal,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|I.re|I.im",fileNamePrefix="ModelicaTest_3.2.3_ModelicaTest.Electrical.QuasiStatic.SinglePhase.Ideal") [:1:1-1:32:writable] Error: Class GC_set_max_heap_size not found in scope (looking for a function or record). Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.0009777/0.0009778, allocations: 185.7 kB / 7.803 MB, free: 2.445 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 0.9952/0.9952, allocations: 205.2 MB / 213.4 MB, free: 13.85 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008078/0.0008078, allocations: 92.42 kB / 261.4 MB, free: 13.46 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.1508/0.1508, allocations: 43.49 MB / 352.8 MB, free: 1.863 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 4.678e-06/4.699e-06, allocations: 0 / 417.7 MB, free: 40.54 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1981/0.1982, allocations: 58.83 MB / 476.6 MB, free: 5.223 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1084/0.3066, allocations: 100.1 MB / 0.5631 GB, free: 14.86 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001987/0.3069, allocations: 79.95 kB / 0.5632 GB, free: 14.79 MB / 410.7 MB Notification: Performance of FrontEnd: time 0.08085/0.3877, allocations: 38.31 MB / 0.6006 GB, free: 8.012 MB / 442.7 MB Notification: Performance of Transformations before backend: time 3.667e-05/0.3878, allocations: 20 kB / 0.6006 GB, free: 7.992 MB / 442.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 349 * Number of variables: 349 Notification: Performance of Generate backend data structure: time 0.004651/0.3924, allocations: 1.725 MB / 0.6023 GB, free: 6.219 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.116e-05/0.3925, allocations: 11.97 kB / 0.6023 GB, free: 6.207 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007039/0.3995, allocations: 1.138 MB / 0.6034 GB, free: 5.066 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008771/0.4004, allocations: 0.6026 MB / 0.604 GB, free: 4.422 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.287e-05/0.4005, allocations: 44 kB / 0.604 GB, free: 4.379 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001665/0.4006, allocations: 84 kB / 0.6041 GB, free: 4.297 MB / 442.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.002248/0.4029, allocations: 1.419 MB / 0.6055 GB, free: 2.875 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001916/0.4048, allocations: 1.21 MB / 0.6067 GB, free: 1.621 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.665e-05/0.4049, allocations: 7.844 kB / 0.6067 GB, free: 1.613 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.657e-05/0.405, allocations: 0 / 0.6067 GB, free: 1.613 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.514e-05/0.405, allocations: 40 kB / 0.6067 GB, free: 1.574 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007382/0.4124, allocations: 5.889 MB / 0.6125 GB, free: 11.3 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00118/0.4136, allocations: 0.9353 MB / 0.6134 GB, free: 10.34 MB / 458.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000738/0.4143, allocations: 0.5761 MB / 0.614 GB, free: 9.758 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000138/0.4145, allocations: 114 kB / 0.6141 GB, free: 9.629 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.917e-05/0.4145, allocations: 47.56 kB / 0.6141 GB, free: 9.574 MB / 458.7 MB Notification: Performance of pre-optimization done (n=129): time 2.524e-06/0.4145, allocations: 0 / 0.6141 GB, free: 9.574 MB / 458.7 MB Notification: Performance of matching and sorting (n=129): time 0.002197/0.4167, allocations: 1.233 MB / 0.6153 GB, free: 8.332 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.045e-05/0.4168, allocations: 94.14 kB / 0.6154 GB, free: 8.223 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003225/0.4171, allocations: 340.9 kB / 0.6157 GB, free: 7.883 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 6.315e-05/0.4172, allocations: 25.7 kB / 0.6158 GB, free: 7.852 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002017/0.4174, allocations: 439.3 kB / 0.6162 GB, free: 7.414 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002593/0.4177, allocations: 413.7 kB / 0.6166 GB, free: 7.004 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.605e-05/0.4177, allocations: 0 / 0.6166 GB, free: 7.004 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.0001294/0.4179, allocations: 382.7 kB / 0.6169 GB, free: 6.621 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006133/0.4185, allocations: 406.6 kB / 0.6173 GB, free: 6.227 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007563/0.4192, allocations: 0.6532 MB / 0.618 GB, free: 5.465 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001077/0.4203, allocations: 0.5138 MB / 0.6185 GB, free: 4.957 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.079e-06/0.4203, allocations: 8 kB / 0.6185 GB, free: 4.949 MB / 458.7 MB Notification: Performance of matching and sorting (n=165) (initialization): time 0.002626/0.423, allocations: 1.472 MB / 0.6199 GB, free: 3.457 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.25e-05/0.423, allocations: 4 kB / 0.6199 GB, free: 3.453 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.709e-05/0.423, allocations: 8.531 kB / 0.6199 GB, free: 3.445 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0014/0.4244, allocations: 0.4889 MB / 0.6204 GB, free: 2.961 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007931/0.4252, allocations: 207.7 kB / 0.6206 GB, free: 2.758 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005726/0.431, allocations: 3.961 MB / 0.6245 GB, free: 14.68 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006986/0.4317, allocations: 102.8 kB / 0.6246 GB, free: 14.58 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.75e-05/0.4318, allocations: 55.98 kB / 0.6246 GB, free: 14.53 MB / 474.7 MB Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: impedance.i.re:VARIABLE(unit = "A" ) "Real part of complex current" type: Real impedance.v.re:VARIABLE(unit = "V" ) "Imaginary part of complex voltage" type: Real admittance.i.re:VARIABLE(unit = "A" ) "Real part of complex current" type: Real variableAdmittance.v.re:VARIABLE(unit = "V" ) "Imaginary part of complex voltage" type: Real idealIntermediateSwitch.s4.re:VARIABLE(unit = "1" protected = true ) "Real part of complex number" type: Real idealCommutingSwitch.s2.re:VARIABLE(unit = "1" protected = true ) "Real part of complex number" type: Real idealOpeningSwitch.s.re:VARIABLE(unit = "1" protected = true ) "Real part of complex number" type: Real idealCommutingSwitch.s1.re:VARIABLE(unit = "1" protected = true ) "Real part of complex number" type: Real idealIntermediateSwitch.s1.re:VARIABLE(unit = "1" protected = true ) "Real part of complex number" type: Real idealCommutingSwitch.s2.im:VARIABLE(unit = "1" protected = true ) "Imaginary part of complex number" type: Real idealIntermediateSwitch.s1.im:VARIABLE(unit = "1" protected = true ) "Imaginary part of complex number" type: Real idealIntermediateSwitch.s4.im:VARIABLE(unit = "1" protected = true ) "Imaginary part of complex number" type: Real idealIntermediateSwitch.s2.im:VARIABLE(unit = "1" protected = true ) "Imaginary part of complex number" type: Real idealIntermediateSwitch.s2.re:VARIABLE(unit = "1" protected = true ) "Real part of complex number" type: Real idealIntermediateSwitch.s3.re:VARIABLE(unit = "1" protected = true ) "Real part of complex number" type: Real idealIntermediateSwitch.s3.im:VARIABLE(unit = "1" protected = true ) "Imaginary part of complex number" type: Real idealOpeningSwitch.s.im:VARIABLE(unit = "1" protected = true ) "Imaginary part of complex number" type: Real idealClosingSwitch.s.im:VARIABLE(unit = "1" protected = true ) "Imaginary part of complex number" type: Real idealCommutingSwitch.s1.im:VARIABLE(unit = "1" protected = true ) "Imaginary part of complex number" type: Real idealClosingSwitch.s.re:VARIABLE(unit = "1" protected = true ) "Real part of complex number" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 33 * Number of states: 0 () * Number of discrete variables: 4 (booleanStep1.y,booleanStep2.y,booleanStep3.y,booleanStep4.y) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (116): * Single equations (assignments): 115 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {20 30} Notification: Performance of prepare postOptimizeDAE: time 0.0002764/0.4321, allocations: 180.8 kB / 0.6248 GB, free: 14.34 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000147/0.4322, allocations: 75.06 kB / 0.6249 GB, free: 14.27 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002579/0.4348, allocations: 1.479 MB / 0.6263 GB, free: 12.77 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.437e-05/0.4348, allocations: 12 kB / 0.6263 GB, free: 12.76 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.384e-06/0.4348, allocations: 0 / 0.6263 GB, free: 12.76 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.165e-05/0.4349, allocations: 7.984 kB / 0.6263 GB, free: 12.75 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003918/0.4388, allocations: 2.623 MB / 0.6289 GB, free: 10.07 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.368e-06/0.4388, allocations: 0 / 0.6289 GB, free: 10.07 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006585/0.4395, allocations: 155.7 kB / 0.629 GB, free: 9.918 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001342/0.4408, allocations: 490.9 kB / 0.6295 GB, free: 9.438 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.065e-05/0.4409, allocations: 15.98 kB / 0.6295 GB, free: 9.422 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005703/0.4466, allocations: 3.965 MB / 0.6334 GB, free: 5.328 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.725e-06/0.4466, allocations: 0 / 0.6334 GB, free: 5.328 MB / 474.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.003265/0.4499, allocations: 2.178 MB / 0.6355 GB, free: 3.117 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003985/0.4503, allocations: 287.8 kB / 0.6358 GB, free: 2.816 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001243/0.4504, allocations: 0 / 0.6358 GB, free: 2.816 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006044/0.4511, allocations: 43.94 kB / 0.6358 GB, free: 2.773 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001537/0.4512, allocations: 73.14 kB / 0.6359 GB, free: 2.703 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.405e-05/0.4513, allocations: 39.98 kB / 0.6359 GB, free: 2.664 MB / 474.7 MB Notification: Performance of sort global known variables: time 0.0002438/0.4516, allocations: 247.2 kB / 0.6362 GB, free: 2.43 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.001086/0.4526, allocations: 362.9 kB / 0.6365 GB, free: 2.074 MB / 474.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 1 (idealClosingSwitch.pin_p.reference.gamma) * Number of discrete variables: 4 (booleanStep1.y,booleanStep2.y,booleanStep3.y,booleanStep4.y) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (86): * Single equations (assignments): 85 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {20 30} Notification: Performance of Backend phase and start with SimCode phase: time 0.000253/0.4529, allocations: 151.7 kB / 0.6367 GB, free: 1.918 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.002583/0.4555, allocations: 1.527 MB / 0.6382 GB, free: 384 kB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 2.805e-06/0.4555, allocations: 3.938 kB / 0.6382 GB, free: 380 kB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.1145/0.57, allocations: 0.9756 MB / 0.6391 GB, free: 177.6 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000525/0.5706, allocations: 49.39 kB / 0.6392 GB, free: 177.6 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004163/0.5747, allocations: 2.099 MB / 0.6412 GB, free: 177.2 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006148/0.5754, allocations: 1.145 MB / 0.6423 GB, free: 176.5 MB / 474.7 MB Notification: Performance of SimCode: time 7.52e-07/0.5754, allocations: 0 / 0.6423 GB, free: 176.5 MB / 474.7 MB Notification: Performance of Templates: time 0.02006/0.5955, allocations: 17.83 MB / 0.6597 GB, free: 175.7 MB / 474.7 MB make -j1 -f ModelicaTest_3.2.3_ModelicaTest.Electrical.QuasiStatic.SinglePhase.Ideal.makefile (rm -f ModelicaTest_3.2.3_ModelicaTest.Electrical.QuasiStatic.SinglePhase.Ideal.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.Electrical.QuasiStatic.SinglePhase.Ideal.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.Electrical.QuasiStatic.SinglePhase.Ideal.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.Electrical.QuasiStatic.SinglePhase.Ideal.sim & ./ModelicaTest_3.2.3_ModelicaTest.Electrical.QuasiStatic.SinglePhase.Ideal -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_3.2.3_ModelicaTest.Electrical.QuasiStatic.SinglePhase.Ideal.pipe 2>&1)