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"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0009115/0.0009116, allocations: 174.4 kB / 8.74 MB, free: 348 kB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.531/1.531, allocations: 221.5 MB / 230.7 MB, free: 7.57 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.000892/0.0008919, allocations: 96.39 kB / 281.6 MB, free: 5.316 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.2125/0.2125, allocations: 44.15 MB / 376.5 MB, free: 3.043 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 1.871e-05/1.9e-05, allocations: 4.219 kB / 444.7 MB, free: 15.14 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1518/0.1519, allocations: 61.92 MB / 0.4948 GB, free: 1.156 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5199/0.6718, allocations: 101.8 MB / 0.5942 GB, free: 10.54 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003085/0.6722, allocations: 83.94 kB / 0.5942 GB, free: 10.46 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.0897/0.7619, allocations: 38.2 MB / 0.6316 GB, free: 3.812 MB / 442.7 MB Notification: Performance of FrontEnd: time 1.803e-06/0.7619, allocations: 0 / 0.6316 GB, free: 3.812 MB / 442.7 MB Notification: Performance of Transformations before backend: time 4.359e-05/0.762, allocations: 24 kB / 0.6316 GB, free: 3.789 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.005063/0.7671, allocations: 1.69 MB / 0.6332 GB, free: 2.051 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.122e-05/0.7671, allocations: 15.98 kB / 0.6332 GB, free: 2.035 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006571/0.7737, allocations: 0.978 MB / 0.6342 GB, free: 1.055 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001585/0.7753, allocations: 0.5909 MB / 0.6348 GB, free: 428 kB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.827e-05/0.7754, allocations: 47.98 kB / 0.6348 GB, free: 380 kB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001879/0.7756, allocations: 79.95 kB / 0.6349 GB, free: 300 kB / 442.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.00252/0.7781, allocations: 1.357 MB / 0.6362 GB, free: 14.93 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002295/0.7804, allocations: 1.169 MB / 0.6374 GB, free: 13.71 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.527e-05/0.7805, allocations: 4 kB / 0.6374 GB, free: 13.71 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001026/0.7806, allocations: 4 kB / 0.6374 GB, free: 13.71 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.309e-05/0.7807, allocations: 35.98 kB / 0.6374 GB, free: 13.67 MB / 458.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008908/0.7896, allocations: 5.234 MB / 0.6425 GB, free: 8.188 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002291/0.7919, allocations: 2.116 MB / 0.6446 GB, free: 5.832 MB / 458.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000795/0.7928, allocations: 0.5783 MB / 0.6451 GB, free: 5.25 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001785/0.7929, allocations: 106.4 kB / 0.6452 GB, free: 5.129 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.871e-05/0.793, allocations: 51.81 kB / 0.6453 GB, free: 5.07 MB / 458.7 MB Notification: Performance of pre-optimization done (n=127): time 4.549e-06/0.793, allocations: 0 / 0.6453 GB, free: 5.07 MB / 458.7 MB Notification: Performance of matching and sorting (n=127): time 0.002666/0.7957, allocations: 1.306 MB / 0.6466 GB, free: 3.75 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.268e-05/0.7958, allocations: 98.39 kB / 0.6467 GB, free: 3.633 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004099/0.7962, allocations: 325.1 kB / 0.647 GB, free: 3.312 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 6.664e-05/0.7962, allocations: 25.7 kB / 0.647 GB, free: 3.281 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002903/0.7965, allocations: 459.5 kB / 0.6474 GB, free: 2.824 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003219/0.7969, allocations: 401.9 kB / 0.6478 GB, free: 2.426 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.378e-05/0.7969, allocations: 0 / 0.6478 GB, free: 2.426 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.0001835/0.7971, allocations: 378.7 kB / 0.6482 GB, free: 2.047 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006128/0.7977, allocations: 394.6 kB / 0.6486 GB, free: 1.66 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007875/0.7985, allocations: 0.6012 MB / 0.6491 GB, free: 0.9844 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001358/0.7999, allocations: 0.6308 MB / 0.6498 GB, free: 360 kB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.905e-06/0.7999, allocations: 0 / 0.6498 GB, free: 360 kB / 458.7 MB Notification: Performance of matching and sorting (n=157) (initialization): time 0.002958/0.8029, allocations: 1.521 MB / 0.6512 GB, free: 14.82 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.941e-05/0.8029, allocations: 8 kB / 0.6513 GB, free: 14.81 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.537e-05/0.8029, allocations: 8 kB / 0.6513 GB, free: 14.8 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001428/0.8044, allocations: 0.4894 MB / 0.6517 GB, free: 14.31 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000783/0.8052, allocations: 191.7 kB / 0.6519 GB, free: 14.12 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006323/0.8115, allocations: 4.148 MB / 0.656 GB, free: 9.863 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008539/0.8124, allocations: 86.95 kB / 0.6561 GB, free: 9.777 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.261e-05/0.8125, allocations: 55.98 kB / 0.6561 GB, free: 9.723 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.0003788/0.8129, allocations: 179.2 kB / 0.6563 GB, free: 9.543 MB / 474.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.002539/0.8154, allocations: 1.314 MB / 0.6576 GB, free: 8.223 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001419/0.8156, allocations: 75.11 kB / 0.6576 GB, free: 8.148 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003178/0.8188, allocations: 1.582 MB / 0.6592 GB, free: 6.547 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.711e-05/0.8188, allocations: 15.98 kB / 0.6592 GB, free: 6.531 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.679e-06/0.8188, allocations: 0 / 0.6592 GB, free: 6.531 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.958e-05/0.8188, allocations: 11.91 kB / 0.6592 GB, free: 6.52 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004366/0.8232, allocations: 2.689 MB / 0.6618 GB, free: 3.781 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.402e-06/0.8232, allocations: 0 / 0.6618 GB, free: 3.781 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006479/0.8239, allocations: 143.8 kB / 0.662 GB, free: 3.641 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001316/0.8252, allocations: 495.5 kB / 0.6624 GB, free: 3.156 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.737e-05/0.8253, allocations: 11.95 kB / 0.6625 GB, free: 3.145 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006748/0.8321, allocations: 4.129 MB / 0.6665 GB, free: 14.89 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.542e-06/0.8321, allocations: 0 / 0.6665 GB, free: 14.89 MB / 490.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004313/0.8364, allocations: 2.226 MB / 0.6687 GB, free: 12.63 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006703/0.8371, allocations: 283.7 kB / 0.6689 GB, free: 12.34 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.731e-05/0.8372, allocations: 0 / 0.6689 GB, free: 12.34 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006333/0.8379, allocations: 36.03 kB / 0.669 GB, free: 12.3 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003023/0.8382, allocations: 101.2 kB / 0.6691 GB, free: 12.2 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.794e-05/0.8383, allocations: 39.98 kB / 0.6691 GB, free: 12.16 MB / 490.7 MB Notification: Performance of sorting global known variables: time 0.0003976/0.8387, allocations: 246.9 kB / 0.6693 GB, free: 11.92 MB / 490.7 MB Notification: Performance of sort global known variables: time 1.3e-07/0.8387, allocations: 0 / 0.6693 GB, free: 11.92 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.001524/0.8402, allocations: 358.9 kB / 0.6697 GB, free: 11.57 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.004246/0.8445, allocations: 2.959 MB / 0.6726 GB, free: 8.574 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.002963/0.8475, allocations: 1.567 MB / 0.6741 GB, free: 6.984 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 4.528e-06/0.8475, allocations: 1.188 kB / 0.6741 GB, free: 6.984 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00185/0.8493, allocations: 1.062 MB / 0.6751 GB, free: 5.918 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005627/0.8499, allocations: 51.03 kB / 0.6752 GB, free: 5.867 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005388/0.8553, allocations: 2.187 MB / 0.6773 GB, free: 3.637 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006898/0.856, allocations: 1.095 MB / 0.6784 GB, free: 2.516 MB / 490.7 MB Notification: Performance of simCode: alias equations: time 0.0005028/0.8565, allocations: 102.3 kB / 0.6785 GB, free: 2.414 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000482/0.857, allocations: 383.3 kB / 0.6789 GB, free: 2.039 MB / 490.7 MB Notification: Performance of SimCode: time 1.423e-06/0.857, allocations: 4 kB / 0.6789 GB, free: 2.035 MB / 490.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05402/0.9111, allocations: 21.82 MB / 0.7002 GB, free: 12.34 MB / 0.5105 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001878/0.9113, allocations: 142.7 kB / 0.7003 GB, free: 12.16 MB / 0.5105 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.756/3.667, allocations: 0 / 0.7003 GB, free: 12.16 MB / 0.5105 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