Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Electrical.QuasiStatic.SinglePhase.Ideal.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/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_trunk_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_trunk_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 trunk/package.mo): time 0.001652/0.001652, allocations: 204.6 kB / 8.544 MB, free: 1.816 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.339/1.339, allocations: 225.5 MB / 234.4 MB, free: 3.523 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.1371/0.1371, allocations: 98.48 kB / 286.3 MB, free: 5.191 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2469/0.2469, allocations: 45.14 MB / 383.3 MB, free: 0.6562 MB / 314.7 MB Notification: Performance of FrontEnd - loaded program: time 5.27e-06/5.29e-06, allocations: 0 / 452.6 MB, free: 76.2 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1057/0.1057, allocations: 63.24 MB / 0.5038 GB, free: 13.04 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.341/0.4467, allocations: 102.8 MB / 0.6042 GB, free: 232 kB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002504/0.447, allocations: 79.14 kB / 0.6043 GB, free: 188 kB / 394.7 MB Notification: Performance of FrontEnd: time 0.09537/0.5424, allocations: 39.62 MB / 0.643 GB, free: 436 kB / 426.7 MB Notification: Performance of Transformations before backend: time 4.648e-05/0.5425, allocations: 20 kB / 0.643 GB, free: 416 kB / 426.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.005861/0.5483, allocations: 1.705 MB / 0.6447 GB, free: 14.84 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.136e-05/0.5484, allocations: 8.031 kB / 0.6447 GB, free: 14.83 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007358/0.5558, allocations: 1.054 MB / 0.6457 GB, free: 13.89 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001676/0.5575, allocations: 0.5976 MB / 0.6463 GB, free: 13.39 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001194/0.5576, allocations: 44 kB / 0.6463 GB, free: 13.35 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000528/0.5581, allocations: 79.94 kB / 0.6464 GB, free: 13.27 MB / 442.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.003237/0.5614, allocations: 1.359 MB / 0.6477 GB, free: 12.15 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002877/0.5643, allocations: 1.181 MB / 0.6489 GB, free: 10.93 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.591e-05/0.5644, allocations: 8 kB / 0.6489 GB, free: 10.92 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001318/0.5645, allocations: 0 / 0.6489 GB, free: 10.92 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.498e-05/0.5646, allocations: 32 kB / 0.6489 GB, free: 10.89 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01057/0.5751, allocations: 5.984 MB / 0.6548 GB, free: 4.484 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001622/0.5768, allocations: 0.9262 MB / 0.6557 GB, free: 3.543 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009796/0.5778, allocations: 0.5599 MB / 0.6562 GB, free: 2.98 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002633/0.5781, allocations: 187.2 kB / 0.6564 GB, free: 2.762 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.121e-05/0.5782, allocations: 47.56 kB / 0.6564 GB, free: 2.703 MB / 442.7 MB Notification: Performance of pre-optimization done (n=127): time 3.957e-06/0.5782, allocations: 0 / 0.6564 GB, free: 2.703 MB / 442.7 MB Notification: Performance of matching and sorting (n=127): time 0.002789/0.581, allocations: 1.215 MB / 0.6576 GB, free: 1.473 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.64e-05/0.5811, allocations: 94.14 kB / 0.6577 GB, free: 1.363 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000549/0.5816, allocations: 325 kB / 0.658 GB, free: 1.043 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 8.439e-05/0.5817, allocations: 29.64 kB / 0.658 GB, free: 1.008 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003045/0.582, allocations: 423.5 kB / 0.6585 GB, free: 0.5859 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003476/0.5824, allocations: 401.9 kB / 0.6588 GB, free: 192 kB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.852e-05/0.5824, allocations: 0 / 0.6588 GB, free: 192 kB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0002489/0.5827, allocations: 378.8 kB / 0.6592 GB, free: 15.81 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007031/0.5834, allocations: 398.6 kB / 0.6596 GB, free: 15.42 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008794/0.5843, allocations: 0.6126 MB / 0.6602 GB, free: 14.72 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001304/0.5856, allocations: 0.4901 MB / 0.6607 GB, free: 14.24 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.023e-05/0.5856, allocations: 0 / 0.6607 GB, free: 14.24 MB / 458.7 MB Notification: Performance of matching and sorting (n=157) (initialization): time 0.003007/0.5887, allocations: 1.408 MB / 0.662 GB, free: 12.82 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.812e-05/0.5887, allocations: 7.281 kB / 0.662 GB, free: 12.81 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.742e-05/0.5887, allocations: 4.625 kB / 0.662 GB, free: 12.81 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001664/0.5904, allocations: 0.4966 MB / 0.6625 GB, free: 12.31 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008642/0.5913, allocations: 199.7 kB / 0.6627 GB, free: 12.11 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006891/0.5982, allocations: 3.962 MB / 0.6666 GB, free: 8.031 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009196/0.5991, allocations: 94.95 kB / 0.6667 GB, free: 7.938 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000166/0.5993, allocations: 47.98 kB / 0.6667 GB, free: 7.891 MB / 458.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.000399/0.5997, allocations: 173.7 kB / 0.6669 GB, free: 7.719 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002298/0.5999, allocations: 71.16 kB / 0.667 GB, free: 7.648 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003251/0.6032, allocations: 1.514 MB / 0.6684 GB, free: 6.121 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.912e-05/0.6032, allocations: 15.98 kB / 0.6684 GB, free: 6.105 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.577e-06/0.6032, allocations: 4 kB / 0.6685 GB, free: 6.102 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.629e-05/0.6033, allocations: 11.89 kB / 0.6685 GB, free: 6.09 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004777/0.608, allocations: 2.586 MB / 0.671 GB, free: 3.438 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.566e-06/0.6081, allocations: 7.938 kB / 0.671 GB, free: 3.43 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000731/0.6088, allocations: 151.8 kB / 0.6711 GB, free: 3.281 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001556/0.6104, allocations: 494.9 kB / 0.6716 GB, free: 2.797 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.156e-05/0.6105, allocations: 7.984 kB / 0.6716 GB, free: 2.789 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006878/0.6174, allocations: 3.949 MB / 0.6755 GB, free: 14.71 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.023e-05/0.6174, allocations: 4 kB / 0.6755 GB, free: 14.71 MB / 474.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.004271/0.6217, allocations: 2.154 MB / 0.6776 GB, free: 12.53 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005778/0.6223, allocations: 283.8 kB / 0.6779 GB, free: 12.23 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001864/0.6225, allocations: 0 / 0.6779 GB, free: 12.23 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008012/0.6233, allocations: 40.03 kB / 0.6779 GB, free: 12.19 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001977/0.6235, allocations: 69.2 kB / 0.678 GB, free: 12.12 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001104/0.6237, allocations: 43.92 kB / 0.678 GB, free: 12.08 MB / 474.7 MB Notification: Performance of sort global known variables: time 0.0003715/0.624, allocations: 239.2 kB / 0.6782 GB, free: 11.86 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.001636/0.6257, allocations: 374.8 kB / 0.6786 GB, free: 11.49 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 (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.0004294/0.6261, allocations: 151 kB / 0.6787 GB, free: 11.33 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.003357/0.6295, allocations: 1.499 MB / 0.6802 GB, free: 9.812 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 4.498e-06/0.6295, allocations: 0.5 kB / 0.6802 GB, free: 9.812 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002083/0.6316, allocations: 0.9689 MB / 0.6811 GB, free: 8.832 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006486/0.6323, allocations: 65.41 kB / 0.6812 GB, free: 8.77 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006814/0.6391, allocations: 2.214 MB / 0.6834 GB, free: 6.516 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00118/0.6403, allocations: 1.141 MB / 0.6845 GB, free: 5.348 MB / 474.7 MB Notification: Performance of SimCode: time 9.42e-07/0.6403, allocations: 0 / 0.6845 GB, free: 5.348 MB / 474.7 MB Notification: Performance of Templates: time 0.03213/0.6725, allocations: 17.72 MB / 0.7018 GB, free: 3.727 MB / 490.7 MB make -j1 -f ModelicaTest_trunk_ModelicaTest.Electrical.QuasiStatic.SinglePhase.Ideal.makefile (rm -f ModelicaTest_trunk_ModelicaTest.Electrical.QuasiStatic.SinglePhase.Ideal.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Electrical.QuasiStatic.SinglePhase.Ideal.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Electrical.QuasiStatic.SinglePhase.Ideal.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Electrical.QuasiStatic.SinglePhase.Ideal.sim & ./ModelicaTest_trunk_ModelicaTest.Electrical.QuasiStatic.SinglePhase.Ideal -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.Electrical.QuasiStatic.SinglePhase.Ideal.pipe 2>&1)