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: "" <> buildModelFMU(ModelicaTest.Electrical.QuasiStatic.SinglePhase.Ideal,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Electrical_QuasiStatic_SinglePhase_Ideal",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Electrical.QuasiStatic.SinglePhase.Ideal,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Electrical_QuasiStatic_SinglePhase_Ideal",fmuType="me",version="2.0",platforms={"static"}) [: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.0009735/0.0009736, allocations: 183.9 kB / 8.524 MB, free: 1.832 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.156/1.156, allocations: 221.4 MB / 230.3 MB, free: 3 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.0009094/0.0009094, allocations: 94.88 kB / 281.2 MB, free: 1.254 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2668/0.2668, allocations: 44.14 MB / 376.1 MB, free: 43.62 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.1027/0.3696, allocations: 68.03 MB / 444.1 MB, free: 11.58 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2472/0.6168, allocations: 61.91 MB / 0.4942 GB, free: 42.7 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1039/0.7207, allocations: 101.7 MB / 0.5935 GB, free: 15.62 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002062/0.721, allocations: 83.78 kB / 0.5936 GB, free: 15.55 MB / 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.0892/0.8102, allocations: 39.59 MB / 0.6323 GB, free: 7.48 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.305e-05/0.8102, allocations: 8 kB / 0.6323 GB, free: 7.473 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00695/0.8172, allocations: 1.056 MB / 0.6333 GB, free: 6.414 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009804/0.8182, allocations: 0.5948 MB / 0.6339 GB, free: 5.777 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.026e-05/0.8182, allocations: 44 kB / 0.6339 GB, free: 5.734 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002115/0.8185, allocations: 76 kB / 0.634 GB, free: 5.66 MB / 458.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.002593/0.8211, allocations: 1.36 MB / 0.6353 GB, free: 4.297 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002476/0.8235, allocations: 1.177 MB / 0.6365 GB, free: 3.074 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.636e-05/0.8236, allocations: 4 kB / 0.6365 GB, free: 3.07 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001165/0.8237, allocations: 0 / 0.6365 GB, free: 3.07 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.078e-05/0.8238, allocations: 32 kB / 0.6365 GB, free: 3.039 MB / 458.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00871/0.8325, allocations: 5.58 MB / 0.642 GB, free: 13.14 MB / 474.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001284/0.8338, allocations: 0.9184 MB / 0.6428 GB, free: 12.2 MB / 474.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007573/0.8346, allocations: 0.5677 MB / 0.6434 GB, free: 11.63 MB / 474.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001425/0.8347, allocations: 106.1 kB / 0.6435 GB, free: 11.51 MB / 474.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.043e-05/0.8348, allocations: 47.56 kB / 0.6435 GB, free: 11.45 MB / 474.7 MB Notification: Performance of pre-optimization done (n=127): time 3.256e-06/0.8348, allocations: 0 / 0.6435 GB, free: 11.45 MB / 474.7 MB Notification: Performance of matching and sorting (n=127): time 0.002338/0.8371, allocations: 1.208 MB / 0.6447 GB, free: 10.23 MB / 474.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.141e-05/0.8372, allocations: 94.11 kB / 0.6448 GB, free: 10.12 MB / 474.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003364/0.8375, allocations: 329 kB / 0.6451 GB, free: 9.797 MB / 474.7 MB Notification: Performance of collectPreVariables (initialization): time 7.266e-05/0.8376, allocations: 25.7 kB / 0.6452 GB, free: 9.766 MB / 474.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001979/0.8378, allocations: 427.5 kB / 0.6456 GB, free: 9.34 MB / 474.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002734/0.8381, allocations: 401.9 kB / 0.6459 GB, free: 8.941 MB / 474.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.762e-05/0.8382, allocations: 0 / 0.6459 GB, free: 8.941 MB / 474.7 MB Notification: Performance of setup shared object (initialization): time 0.0001517/0.8383, allocations: 374.8 kB / 0.6463 GB, free: 8.566 MB / 474.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006625/0.839, allocations: 406.6 kB / 0.6467 GB, free: 8.168 MB / 474.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007552/0.8397, allocations: 0.6087 MB / 0.6473 GB, free: 7.48 MB / 474.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00109/0.8408, allocations: 0.4901 MB / 0.6478 GB, free: 6.992 MB / 474.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.298e-06/0.8409, allocations: 7.938 kB / 0.6478 GB, free: 6.984 MB / 474.7 MB Notification: Performance of matching and sorting (n=157) (initialization): time 0.002592/0.8435, allocations: 1.4 MB / 0.6491 GB, free: 5.574 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.389e-05/0.8435, allocations: 8 kB / 0.6491 GB, free: 5.566 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.301e-05/0.8435, allocations: 7.984 kB / 0.6492 GB, free: 5.559 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00145/0.845, allocations: 497 kB / 0.6496 GB, free: 5.074 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007841/0.8458, allocations: 195.7 kB / 0.6498 GB, free: 4.879 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006025/0.8518, allocations: 3.971 MB / 0.6537 GB, free: 0.7969 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007026/0.8525, allocations: 98.89 kB / 0.6538 GB, free: 0.6992 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.905e-05/0.8526, allocations: 47.98 kB / 0.6538 GB, free: 0.6523 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.0002823/0.8529, allocations: 171.4 kB / 0.654 GB, free: 496 kB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001559/0.8531, allocations: 75.06 kB / 0.6541 GB, free: 420 kB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002873/0.8559, allocations: 1.514 MB / 0.6555 GB, free: 14.88 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.595e-05/0.856, allocations: 15.94 kB / 0.6556 GB, free: 14.87 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.845e-06/0.856, allocations: 3.938 kB / 0.6556 GB, free: 14.86 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.26e-05/0.856, allocations: 7.969 kB / 0.6556 GB, free: 14.86 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004002/0.86, allocations: 2.595 MB / 0.6581 GB, free: 12.2 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.654e-06/0.86, allocations: 7.891 kB / 0.6581 GB, free: 12.19 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006888/0.8607, allocations: 147.8 kB / 0.6583 GB, free: 12.05 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001397/0.8621, allocations: 490.9 kB / 0.6587 GB, free: 11.57 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.389e-05/0.8622, allocations: 12 kB / 0.6587 GB, free: 11.55 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005899/0.8681, allocations: 3.956 MB / 0.6626 GB, free: 7.477 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.806e-06/0.8681, allocations: 0 / 0.6626 GB, free: 7.477 MB / 490.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.00348/0.8716, allocations: 2.151 MB / 0.6647 GB, free: 5.293 MB / 490.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.004346/0.876, allocations: 3.199 MB / 0.6678 GB, free: 2.055 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004356/0.8765, allocations: 287.7 kB / 0.6681 GB, free: 1.754 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001412/0.8766, allocations: 4 kB / 0.6681 GB, free: 1.75 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006765/0.8773, allocations: 36.03 kB / 0.6681 GB, free: 1.715 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000171/0.8775, allocations: 69.2 kB / 0.6682 GB, free: 1.648 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.292e-05/0.8776, allocations: 39.98 kB / 0.6682 GB, free: 1.609 MB / 490.7 MB Notification: Performance of sort global known variables: time 0.0002551/0.8778, allocations: 243.1 kB / 0.6685 GB, free: 1.379 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.001712/0.8795, allocations: 366.9 kB / 0.6688 GB, free: 1.02 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.0002729/0.8798, allocations: 155 kB / 0.669 GB, free: 0.8594 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.002624/0.8825, allocations: 1.492 MB / 0.6704 GB, free: 15.35 MB / 0.4948 GB Notification: Performance of simCode: created event and clocks part: time 2.615e-06/0.8825, allocations: 0 / 0.6704 GB, free: 15.35 MB / 0.4948 GB Notification: Performance of simCode: created simulation system equations: time 0.001749/0.8842, allocations: 0.9787 MB / 0.6714 GB, free: 14.36 MB / 0.4948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004183/0.8847, allocations: 55.14 kB / 0.6714 GB, free: 14.31 MB / 0.4948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004804/0.8895, allocations: 2.089 MB / 0.6735 GB, free: 12.19 MB / 0.4948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008296/0.8903, allocations: 1.145 MB / 0.6746 GB, free: 11.02 MB / 0.4948 GB Notification: Performance of SimCode: time 2.91e-07/0.8903, allocations: 0 / 0.6746 GB, free: 11.02 MB / 0.4948 GB (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 & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_4.0.0_ModelicaTest.Electrical.QuasiStatic.SinglePhase.Ideal_res.mat --tempDir=temp_ModelicaTest_4_0_0_ModelicaTest_Electrical_QuasiStatic_SinglePhase_Ideal_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 ModelicaTest_4_0_0_ModelicaTest_Electrical_QuasiStatic_SinglePhase_Ideal.fmu > ModelicaTest_4.0.0_ModelicaTest.Electrical.QuasiStatic.SinglePhase.Ideal.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_4.0.0_ModelicaTest.Electrical.QuasiStatic.SinglePhase.Ideal_res.mat does not exist to compare? outputFormat=mat