Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Electrical.QuasiStatic.SinglePhase.Ideal.conf.json 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 4.0.0+maint.om/package.mo", uses=false) 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/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 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) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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) Running command: translateModel(ModelicaTest.Electrical.QuasiStatic.SinglePhase.Ideal,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|I.re|I.im",fileNamePrefix="ModelicaTest_4.0.0_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_4.0.0_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 4.0.0+maint.om/package.mo): time 0.001799/0.001799, allocations: 183.6 kB / 8.52 MB, free: 1.852 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.302/1.302, allocations: 221.4 MB / 230.3 MB, free: 7.641 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00166/0.00166, allocations: 86.36 kB / 281.2 MB, free: 5.453 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.1673/0.1673, allocations: 44.16 MB / 376.1 MB, free: 3.223 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 8.596e-06/8.636e-06, allocations: 4 kB / 444 MB, free: 15.61 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1081/0.1082, allocations: 61.9 MB / 0.4941 GB, free: 1.645 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2716/0.3798, allocations: 101.7 MB / 0.5934 GB, free: 11.09 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002539/0.3801, allocations: 79.95 kB / 0.5935 GB, free: 11.02 MB / 410.7 MB Notification: Performance of FrontEnd: time 0.08915/0.4692, allocations: 37.86 MB / 0.6305 GB, free: 4.707 MB / 442.7 MB Notification: Performance of Transformations before backend: time 4.594e-05/0.4693, allocations: 24 kB / 0.6305 GB, free: 4.684 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: 339 * Number of variables: 339 Notification: Performance of Generate backend data structure: time 0.005467/0.4748, allocations: 1.705 MB / 0.6322 GB, free: 2.93 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.791e-05/0.4748, allocations: 17.47 kB / 0.6322 GB, free: 2.914 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007211/0.482, allocations: 1.06 MB / 0.6332 GB, free: 1.852 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001267/0.4833, allocations: 0.587 MB / 0.6338 GB, free: 1.223 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.138e-05/0.4834, allocations: 44 kB / 0.6338 GB, free: 1.18 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003055/0.4837, allocations: 76 kB / 0.6339 GB, free: 1.105 MB / 442.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.002693/0.4864, allocations: 1.36 MB / 0.6352 GB, free: 15.74 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002229/0.4887, allocations: 1.181 MB / 0.6364 GB, free: 14.52 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.153e-05/0.4887, allocations: 4 kB / 0.6364 GB, free: 14.51 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001045/0.4889, allocations: 0 / 0.6364 GB, free: 14.51 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.601e-05/0.4889, allocations: 43.98 kB / 0.6364 GB, free: 14.47 MB / 458.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008418/0.4973, allocations: 5.565 MB / 0.6419 GB, free: 8.578 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001329/0.4987, allocations: 0.9145 MB / 0.6428 GB, free: 7.641 MB / 458.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000808/0.4995, allocations: 0.5638 MB / 0.6433 GB, free: 7.074 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001632/0.4997, allocations: 110.1 kB / 0.6434 GB, free: 6.949 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.429e-05/0.4997, allocations: 55.53 kB / 0.6435 GB, free: 6.883 MB / 458.7 MB Notification: Performance of pre-optimization done (n=127): time 2.925e-06/0.4997, allocations: 0 / 0.6435 GB, free: 6.883 MB / 458.7 MB Notification: Performance of matching and sorting (n=127): time 0.002466/0.5022, allocations: 1.204 MB / 0.6446 GB, free: 5.664 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.667e-05/0.5023, allocations: 98.03 kB / 0.6447 GB, free: 5.551 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003947/0.5027, allocations: 325 kB / 0.645 GB, free: 5.23 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 8e-05/0.5028, allocations: 25.7 kB / 0.6451 GB, free: 5.199 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002237/0.503, allocations: 427.5 kB / 0.6455 GB, free: 4.773 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003034/0.5033, allocations: 405.9 kB / 0.6459 GB, free: 4.371 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.996e-05/0.5034, allocations: 0 / 0.6459 GB, free: 4.371 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.0001564/0.5035, allocations: 374.8 kB / 0.6462 GB, free: 3.996 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007039/0.5043, allocations: 402.6 kB / 0.6466 GB, free: 3.602 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007792/0.505, allocations: 0.6048 MB / 0.6472 GB, free: 2.918 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001148/0.5062, allocations: 0.494 MB / 0.6477 GB, free: 2.422 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.11e-06/0.5062, allocations: 0 / 0.6477 GB, free: 2.422 MB / 458.7 MB Notification: Performance of matching and sorting (n=157) (initialization): time 0.002733/0.5089, allocations: 1.405 MB / 0.649 GB, free: 1.008 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.429e-05/0.509, allocations: 4 kB / 0.649 GB, free: 1.004 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.32e-05/0.509, allocations: 8 kB / 0.6491 GB, free: 0.9961 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001531/0.5105, allocations: 0.4891 MB / 0.6495 GB, free: 0.5039 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008312/0.5114, allocations: 187.7 kB / 0.6497 GB, free: 328 kB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006657/0.518, allocations: 3.974 MB / 0.6536 GB, free: 12.23 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009079/0.519, allocations: 94.89 kB / 0.6537 GB, free: 12.14 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001433/0.5191, allocations: 51.98 kB / 0.6537 GB, free: 12.09 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.im:VARIABLE(unit = "A" ) "Imaginary part of complex current" type: Real variableAdmittance.v.im:VARIABLE(unit = "V" ) "Real part of complex voltage" type: Real idealCommutingSwitch.s2.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 idealIntermediateSwitch.s1.im:VARIABLE(unit = "1" protected = true ) "Imaginary part of complex number" type: Real idealIntermediateSwitch.s3.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 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 idealIntermediateSwitch.s4.re:VARIABLE(unit = "1" protected = true ) "Real part of complex number" type: Real idealIntermediateSwitch.s2.re:VARIABLE(unit = "1" protected = true ) "Real part of complex number" type: Real idealIntermediateSwitch.s2.im:VARIABLE(unit = "1" protected = true ) "Imaginary part of complex number" type: Real idealIntermediateSwitch.s3.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 idealClosingSwitch.s.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 idealClosingSwitch.s.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 Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 27 * 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 (108): * Single equations (assignments): 107 * 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.0003543/0.5195, allocations: 171 kB / 0.6539 GB, free: 11.91 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002066/0.5197, allocations: 75.06 kB / 0.654 GB, free: 11.84 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003191/0.5229, allocations: 1.506 MB / 0.6554 GB, free: 10.32 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.81e-05/0.5229, allocations: 12 kB / 0.6555 GB, free: 10.31 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.556e-06/0.523, allocations: 4 kB / 0.6555 GB, free: 10.3 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.236e-05/0.523, allocations: 3.984 kB / 0.6555 GB, free: 10.3 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004609/0.5276, allocations: 2.61 MB / 0.658 GB, free: 7.629 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.033e-06/0.5276, allocations: 3.906 kB / 0.658 GB, free: 7.625 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007379/0.5284, allocations: 143.8 kB / 0.6581 GB, free: 7.484 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001503/0.5299, allocations: 498.9 kB / 0.6586 GB, free: 6.996 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.289e-05/0.53, allocations: 8 kB / 0.6586 GB, free: 6.988 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006336/0.5363, allocations: 3.957 MB / 0.6625 GB, free: 2.91 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.51e-06/0.5364, allocations: 3.984 kB / 0.6625 GB, free: 2.906 MB / 474.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.003664/0.54, allocations: 2.158 MB / 0.6646 GB, free: 0.7148 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004604/0.5405, allocations: 287.7 kB / 0.6649 GB, free: 424 kB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001451/0.5407, allocations: 0 / 0.6649 GB, free: 424 kB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006708/0.5413, allocations: 40.03 kB / 0.6649 GB, free: 384 kB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001605/0.5415, allocations: 73.19 kB / 0.665 GB, free: 312 kB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.492e-05/0.5416, allocations: 32 kB / 0.665 GB, free: 280 kB / 474.7 MB Notification: Performance of sort global known variables: time 0.0002556/0.5419, allocations: 239.2 kB / 0.6652 GB, free: 48 kB / 474.7 MB Notification: Performance of remove unused functions: time 0.001209/0.5431, allocations: 363 kB / 0.6656 GB, free: 15.69 MB / 490.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 (84): * Single equations (assignments): 83 * 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.0002802/0.5434, allocations: 150.9 kB / 0.6657 GB, free: 15.53 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.002815/0.5462, allocations: 1.498 MB / 0.6672 GB, free: 14.02 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 3.196e-06/0.5462, allocations: 0 / 0.6672 GB, free: 14.02 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001877/0.5481, allocations: 0.9719 MB / 0.6681 GB, free: 13.04 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004397/0.5485, allocations: 52.05 kB / 0.6682 GB, free: 13 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005776/0.5543, allocations: 2.087 MB / 0.6702 GB, free: 10.87 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001014/0.5554, allocations: 1.149 MB / 0.6714 GB, free: 9.695 MB / 490.7 MB Notification: Performance of SimCode: time 1.833e-06/0.5554, allocations: 0 / 0.6714 GB, free: 9.695 MB / 490.7 MB Notification: Performance of Templates: time 0.02873/0.5841, allocations: 17.68 MB / 0.6886 GB, free: 8.121 MB / 0.4948 GB make -j1 -f ModelicaTest_4.0.0_ModelicaTest.Electrical.QuasiStatic.SinglePhase.Ideal.makefile (rm -f ModelicaTest_4.0.0_ModelicaTest.Electrical.QuasiStatic.SinglePhase.Ideal.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Electrical.QuasiStatic.SinglePhase.Ideal.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Electrical.QuasiStatic.SinglePhase.Ideal.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Electrical.QuasiStatic.SinglePhase.Ideal.sim & ./ModelicaTest_4.0.0_ModelicaTest.Electrical.QuasiStatic.SinglePhase.Ideal -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.Electrical.QuasiStatic.SinglePhase.Ideal.pipe 2>&1)