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"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001546/0.001546, allocations: 202.8 kB / 8.768 MB, free: 320 kB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.472/1.472, allocations: 225.6 MB / 234.8 MB, free: 3.258 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009139/0.0009143, allocations: 93.39 kB / 286.7 MB, free: 5.242 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2288/0.2288, allocations: 45.15 MB / 383.7 MB, free: 284 kB / 314.7 MB Notification: Performance of FrontEnd - loaded program: time 1.913e-05/1.916e-05, allocations: 4 kB / 453.3 MB, free: 75.73 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1288/0.1288, allocations: 63.25 MB / 0.5045 GB, free: 12.54 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5184/0.6473, allocations: 102.9 MB / 0.605 GB, free: 15.41 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002205/0.6476, allocations: 80.33 kB / 0.605 GB, free: 15.37 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1008/0.7484, allocations: 39.95 MB / 0.644 GB, free: 15.32 MB / 442.7 MB Notification: Performance of FrontEnd: time 3.938e-06/0.7485, allocations: 0 / 0.644 GB, free: 15.32 MB / 442.7 MB Notification: Performance of Transformations before backend: time 0.0001026/0.7486, allocations: 24 kB / 0.6441 GB, free: 15.29 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.00655/0.7551, allocations: 1.685 MB / 0.6457 GB, free: 13.75 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.901e-05/0.7552, allocations: 8.031 kB / 0.6457 GB, free: 13.74 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006889/0.7621, allocations: 0.9865 MB / 0.6467 GB, free: 12.86 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001715/0.7639, allocations: 0.5908 MB / 0.6473 GB, free: 12.37 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001173/0.764, allocations: 44 kB / 0.6473 GB, free: 12.33 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000495/0.7645, allocations: 77.41 kB / 0.6474 GB, free: 12.25 MB / 442.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.003288/0.7678, allocations: 1.364 MB / 0.6487 GB, free: 11.12 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00362/0.7715, allocations: 1.177 MB / 0.6499 GB, free: 9.902 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.15e-05/0.7716, allocations: 0 / 0.6499 GB, free: 9.902 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001816/0.7718, allocations: 4 kB / 0.6499 GB, free: 9.898 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.241e-05/0.7718, allocations: 36 kB / 0.6499 GB, free: 9.863 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01023/0.782, allocations: 5.483 MB / 0.6553 GB, free: 4.07 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002373/0.7845, allocations: 2.114 MB / 0.6573 GB, free: 1.723 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009279/0.7855, allocations: 0.5784 MB / 0.6579 GB, free: 1.141 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002898/0.7858, allocations: 187.4 kB / 0.6581 GB, free: 0.9219 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.029e-05/0.7858, allocations: 43.88 kB / 0.6581 GB, free: 0.8711 MB / 442.7 MB Notification: Performance of pre-optimization done (n=127): time 3.747e-06/0.7858, allocations: 0 / 0.6581 GB, free: 0.8711 MB / 442.7 MB Notification: Performance of matching and sorting (n=127): time 0.004125/0.79, allocations: 1.431 MB / 0.6595 GB, free: 15.43 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000108/0.7901, allocations: 94.36 kB / 0.6596 GB, free: 15.31 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006465/0.7908, allocations: 321.1 kB / 0.6599 GB, free: 15 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 9.896e-05/0.7909, allocations: 25.7 kB / 0.6599 GB, free: 14.96 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004966/0.7914, allocations: 475.4 kB / 0.6604 GB, free: 14.49 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005174/0.7919, allocations: 397.9 kB / 0.6608 GB, free: 14.1 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.372e-05/0.792, allocations: 0 / 0.6608 GB, free: 14.1 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.0003059/0.7923, allocations: 374.8 kB / 0.6611 GB, free: 13.72 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008248/0.7932, allocations: 394.6 kB / 0.6615 GB, free: 13.34 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001091/0.7943, allocations: 0.6012 MB / 0.6621 GB, free: 12.66 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002716/0.797, allocations: 0.7634 MB / 0.6628 GB, free: 11.89 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.51e-05/0.797, allocations: 0 / 0.6628 GB, free: 11.89 MB / 458.7 MB Notification: Performance of matching and sorting (n=157) (initialization): time 0.004381/0.8014, allocations: 1.646 MB / 0.6644 GB, free: 10.23 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.776e-05/0.8015, allocations: 8 kB / 0.6644 GB, free: 10.23 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.827e-05/0.8015, allocations: 12.03 kB / 0.6644 GB, free: 10.21 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001566/0.8031, allocations: 0.4928 MB / 0.6649 GB, free: 9.727 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008356/0.8039, allocations: 191.7 kB / 0.6651 GB, free: 9.539 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006773/0.8107, allocations: 4.137 MB / 0.6692 GB, free: 5.285 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001033/0.8118, allocations: 90.94 kB / 0.6692 GB, free: 5.195 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002346/0.812, allocations: 48 kB / 0.6693 GB, free: 5.148 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.000536/0.8126, allocations: 183.4 kB / 0.6695 GB, free: 4.969 MB / 458.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.003939/0.8165, allocations: 1.427 MB / 0.6709 GB, free: 3.527 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002845/0.8168, allocations: 75.16 kB / 0.6709 GB, free: 3.453 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004279/0.8211, allocations: 1.691 MB / 0.6726 GB, free: 1.746 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.418e-05/0.8212, allocations: 16 kB / 0.6726 GB, free: 1.73 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.36e-06/0.8212, allocations: 3.938 kB / 0.6726 GB, free: 1.727 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.818e-05/0.8212, allocations: 7.969 kB / 0.6726 GB, free: 1.719 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005971/0.8272, allocations: 2.802 MB / 0.6753 GB, free: 14.87 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.747e-06/0.8272, allocations: 4 kB / 0.6753 GB, free: 14.86 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006702/0.8279, allocations: 143.8 kB / 0.6755 GB, free: 14.72 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001376/0.8293, allocations: 495.5 kB / 0.676 GB, free: 14.23 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.179e-05/0.8294, allocations: 7.984 kB / 0.676 GB, free: 14.23 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006806/0.8362, allocations: 4.133 MB / 0.68 GB, free: 9.973 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.744e-06/0.8363, allocations: 4 kB / 0.68 GB, free: 9.969 MB / 474.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004988/0.8413, allocations: 2.335 MB / 0.6823 GB, free: 7.598 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005869/0.8419, allocations: 279.8 kB / 0.6825 GB, free: 7.305 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002135/0.8421, allocations: 4 kB / 0.6826 GB, free: 7.301 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007332/0.8429, allocations: 39.98 kB / 0.6826 GB, free: 7.262 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002912/0.8432, allocations: 93.17 kB / 0.6827 GB, free: 7.172 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.348e-05/0.8433, allocations: 39.97 kB / 0.6827 GB, free: 7.133 MB / 474.7 MB Notification: Performance of sorting global known variables: time 0.0003651/0.8437, allocations: 243 kB / 0.6829 GB, free: 6.895 MB / 474.7 MB Notification: Performance of sort global known variables: time 1.7e-07/0.8437, allocations: 0 / 0.6829 GB, free: 6.895 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.001714/0.8454, allocations: 374.8 kB / 0.6833 GB, free: 6.527 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.005472/0.8509, allocations: 3.085 MB / 0.6863 GB, free: 3.406 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.003382/0.8543, allocations: 1.56 MB / 0.6878 GB, free: 1.832 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 5.661e-06/0.8543, allocations: 4.188 kB / 0.6878 GB, free: 1.828 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002035/0.8564, allocations: 1.046 MB / 0.6889 GB, free: 0.7773 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006798/0.8571, allocations: 57.72 kB / 0.6889 GB, free: 0.7148 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007227/0.8643, allocations: 2.32 MB / 0.6912 GB, free: 14.36 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008209/0.8652, allocations: 1.103 MB / 0.6923 GB, free: 13.23 MB / 490.7 MB Notification: Performance of simCode: alias equations: time 0.0006134/0.8658, allocations: 102.3 kB / 0.6924 GB, free: 13.12 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005612/0.8664, allocations: 383.3 kB / 0.6927 GB, free: 12.75 MB / 490.7 MB Notification: Performance of SimCode: time 2.214e-06/0.8664, allocations: 0 / 0.6927 GB, free: 12.75 MB / 490.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05727/0.9237, allocations: 21.87 MB / 0.7141 GB, free: 6.988 MB / 0.4948 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002037/0.9239, allocations: 150.5 kB / 0.7142 GB, free: 6.797 MB / 0.4948 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.762/3.686, allocations: 0 / 0.7142 GB, free: 6.797 MB / 0.4948 GB (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