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: "" <> buildModelFMU(ModelicaTest.Electrical.QuasiStatic.SinglePhase.Ideal,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Electrical_QuasiStatic_SinglePhase_Ideal",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Electrical.QuasiStatic.SinglePhase.Ideal,fileNamePrefix="ModelicaTest_trunk_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 trunk/package.mo): time 0.001004/0.001004, allocations: 195.1 kB / 8.537 MB, free: 1.828 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.252/1.252, allocations: 225.5 MB / 234.4 MB, free: 3.414 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008546/0.0008547, allocations: 102 kB / 286.3 MB, free: 5.23 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.1659/0.1659, allocations: 45.15 MB / 383.3 MB, free: 0.6016 MB / 314.7 MB Notification: Performance of FrontEnd - loaded program: time 0.2029/0.3689, allocations: 69.37 MB / 452.7 MB, free: 76.11 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0845/0.4534, allocations: 63.24 MB / 0.5039 GB, free: 12.94 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2778/0.7312, allocations: 102.8 MB / 0.6043 GB, free: 76 kB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001922/0.7315, allocations: 83.09 kB / 0.6044 GB, free: 32 kB / 394.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.09398/0.8255, allocations: 41.35 MB / 0.6447 GB, free: 14.67 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.65e-05/0.8255, allocations: 12 kB / 0.6448 GB, free: 14.66 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007241/0.8328, allocations: 1.055 MB / 0.6458 GB, free: 13.71 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001388/0.8342, allocations: 0.5966 MB / 0.6464 GB, free: 13.22 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.037e-05/0.8343, allocations: 40 kB / 0.6464 GB, free: 13.18 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000329/0.8346, allocations: 82.78 kB / 0.6465 GB, free: 13.11 MB / 442.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.002975/0.8376, allocations: 1.354 MB / 0.6478 GB, free: 12.05 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002424/0.84, allocations: 1.177 MB / 0.649 GB, free: 10.83 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.454e-05/0.8401, allocations: 7.922 kB / 0.649 GB, free: 10.82 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001053/0.8402, allocations: 0 / 0.649 GB, free: 10.82 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.775e-05/0.8403, allocations: 40 kB / 0.649 GB, free: 10.79 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008988/0.8493, allocations: 5.981 MB / 0.6548 GB, free: 4.387 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001319/0.8506, allocations: 0.9184 MB / 0.6557 GB, free: 3.453 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007847/0.8514, allocations: 0.5638 MB / 0.6563 GB, free: 2.887 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001966/0.8516, allocations: 195.1 kB / 0.6565 GB, free: 2.66 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.514e-05/0.8516, allocations: 47.5 kB / 0.6565 GB, free: 2.602 MB / 442.7 MB Notification: Performance of pre-optimization done (n=127): time 3.196e-06/0.8517, allocations: 0 / 0.6565 GB, free: 2.602 MB / 442.7 MB Notification: Performance of matching and sorting (n=127): time 0.002495/0.8542, allocations: 1.215 MB / 0.6577 GB, free: 1.371 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.282e-05/0.8542, allocations: 90.11 kB / 0.6578 GB, free: 1.266 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004105/0.8546, allocations: 321 kB / 0.6581 GB, free: 0.9492 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 7.105e-05/0.8547, allocations: 25.7 kB / 0.6581 GB, free: 0.918 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002399/0.855, allocations: 423.5 kB / 0.6585 GB, free: 0.4922 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003381/0.8553, allocations: 405.8 kB / 0.6589 GB, free: 92 kB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.795e-05/0.8554, allocations: 0 / 0.6589 GB, free: 92 kB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0001694/0.8555, allocations: 382.8 kB / 0.6593 GB, free: 15.7 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006984/0.8563, allocations: 398.6 kB / 0.6597 GB, free: 15.31 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008156/0.8571, allocations: 0.6048 MB / 0.6603 GB, free: 14.62 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001155/0.8582, allocations: 0.4939 MB / 0.6607 GB, free: 14.14 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.634e-06/0.8583, allocations: 4 kB / 0.6607 GB, free: 14.13 MB / 458.7 MB Notification: Performance of matching and sorting (n=157) (initialization): time 0.002787/0.861, allocations: 1.404 MB / 0.6621 GB, free: 12.71 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.365e-05/0.8611, allocations: 8.688 kB / 0.6621 GB, free: 12.71 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.311e-05/0.8611, allocations: 8 kB / 0.6621 GB, free: 12.7 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001522/0.8626, allocations: 0.4966 MB / 0.6626 GB, free: 12.2 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008181/0.8635, allocations: 195.7 kB / 0.6628 GB, free: 12.01 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00635/0.8698, allocations: 3.966 MB / 0.6667 GB, free: 7.922 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007131/0.8705, allocations: 94.89 kB / 0.6668 GB, free: 7.828 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001047/0.8707, allocations: 44 kB / 0.6668 GB, free: 7.785 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.0002922/0.871, allocations: 181.4 kB / 0.667 GB, free: 7.605 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001656/0.8711, allocations: 75.06 kB / 0.667 GB, free: 7.531 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002995/0.8741, allocations: 1.506 MB / 0.6685 GB, free: 6.012 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.34e-05/0.8742, allocations: 16 kB / 0.6685 GB, free: 5.996 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.865e-06/0.8742, allocations: 0 / 0.6685 GB, free: 5.996 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.307e-05/0.8742, allocations: 7.969 kB / 0.6685 GB, free: 5.988 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004248/0.8784, allocations: 2.59 MB / 0.6711 GB, free: 3.332 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.498e-06/0.8785, allocations: 4.031 kB / 0.6711 GB, free: 3.328 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000701/0.8792, allocations: 143.8 kB / 0.6712 GB, free: 3.188 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001418/0.8806, allocations: 498.8 kB / 0.6717 GB, free: 2.699 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.21e-05/0.8807, allocations: 15.92 kB / 0.6717 GB, free: 2.684 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006178/0.8869, allocations: 3.953 MB / 0.6756 GB, free: 14.61 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.059e-06/0.8869, allocations: 3.906 kB / 0.6756 GB, free: 14.6 MB / 474.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.003627/0.8905, allocations: 2.154 MB / 0.6777 GB, free: 12.42 MB / 474.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.004524/0.8951, allocations: 3.191 MB / 0.6808 GB, free: 9.188 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004313/0.8955, allocations: 283.8 kB / 0.6811 GB, free: 8.891 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001354/0.8957, allocations: 4.062 kB / 0.6811 GB, free: 8.887 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006502/0.8963, allocations: 47.81 kB / 0.6811 GB, free: 8.84 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001644/0.8965, allocations: 69.2 kB / 0.6812 GB, free: 8.773 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.286e-05/0.8966, allocations: 43.92 kB / 0.6812 GB, free: 8.73 MB / 474.7 MB Notification: Performance of sort global known variables: time 0.0002666/0.8969, allocations: 239.2 kB / 0.6814 GB, free: 8.504 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.001827/0.8987, allocations: 374.9 kB / 0.6818 GB, free: 8.137 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.000295/0.899, allocations: 156 kB / 0.682 GB, free: 7.977 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.002888/0.9019, allocations: 1.499 MB / 0.6834 GB, free: 6.465 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 3.447e-06/0.9019, allocations: 0 / 0.6834 GB, free: 6.465 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001842/0.9038, allocations: 0.9731 MB / 0.6844 GB, free: 5.484 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004441/0.9042, allocations: 53.53 kB / 0.6844 GB, free: 5.434 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005931/0.9102, allocations: 2.214 MB / 0.6866 GB, free: 3.184 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001038/0.9112, allocations: 1.153 MB / 0.6877 GB, free: 2.004 MB / 474.7 MB Notification: Performance of SimCode: time 6.71e-07/0.9112, allocations: 0 / 0.6877 GB, free: 2.004 MB / 474.7 MB (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 & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_trunk_ModelicaTest.Electrical.QuasiStatic.SinglePhase.Ideal_res.mat --tempDir=temp_ModelicaTest_trunk_ModelicaTest_Electrical_QuasiStatic_SinglePhase_Ideal_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 ModelicaTest_trunk_ModelicaTest_Electrical_QuasiStatic_SinglePhase_Ideal.fmu > ModelicaTest_trunk_ModelicaTest.Electrical.QuasiStatic.SinglePhase.Ideal.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_trunk_ModelicaTest.Electrical.QuasiStatic.SinglePhase.Ideal_res.mat does not exist to compare? outputFormat=mat