Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_cpp_ModelicaTest.Electrical.QuasiStatic.SinglePhase.Ideal.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Electrical.QuasiStatic.SinglePhase.Ideal,fileNamePrefix="ModelicaTest_3_2_3_cpp_ModelicaTest_Electrical_QuasiStatic_SinglePhase_Ideal",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Electrical.QuasiStatic.SinglePhase.Ideal,fileNamePrefix="ModelicaTest_3_2_3_cpp_ModelicaTest_Electrical_QuasiStatic_SinglePhase_Ideal",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001574/0.001574, allocations: 181.4 kB / 13.66 MB, free: 1.664 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.104/2.104, allocations: 205.2 MB / 219.4 MB, free: 14.21 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001107/0.001107, allocations: 78.7 kB / 267.5 MB, free: 14.04 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.3068/0.3068, allocations: 43.5 MB / 359.1 MB, free: 12.23 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 3.606e-05/3.626e-05, allocations: 0 / 425.4 MB, free: 23.27 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1304/0.1305, allocations: 58.85 MB / 484.2 MB, free: 12.36 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5133/0.6439, allocations: 100.8 MB / 0.5713 GB, free: 2.445 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003164/0.6443, allocations: 85.42 kB / 0.5714 GB, free: 2.402 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1553/0.7995, allocations: 39.16 MB / 0.6096 GB, free: 2.023 MB / 410.7 MB Notification: Performance of FrontEnd: time 2.314e-06/0.7996, allocations: 3.938 kB / 0.6096 GB, free: 2.02 MB / 410.7 MB Notification: Performance of Transformations before backend: time 6.236e-05/0.7997, allocations: 28 kB / 0.6097 GB, free: 1.992 MB / 410.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 349 * Number of variables: 349 Notification: Performance of Generate backend data structure: time 0.008359/0.8081, allocations: 1.697 MB / 0.6113 GB, free: 432 kB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.944e-05/0.8081, allocations: 8.031 kB / 0.6113 GB, free: 424 kB / 410.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0005608/0.8087, allocations: 196.3 kB / 0.6115 GB, free: 304 kB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01106/0.8198, allocations: 1.057 MB / 0.6126 GB, free: 15.35 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001865/0.8217, allocations: 0.6075 MB / 0.6132 GB, free: 14.85 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001365/0.8219, allocations: 104 kB / 0.6132 GB, free: 14.79 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000415/0.8223, allocations: 135 kB / 0.6134 GB, free: 14.7 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00442/0.8267, allocations: 1.466 MB / 0.6148 GB, free: 13.72 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.118e-05/0.8269, allocations: 4 kB / 0.6148 GB, free: 13.71 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002233/0.8271, allocations: 60.98 kB / 0.6149 GB, free: 13.7 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.019e-05/0.8272, allocations: 32 kB / 0.6149 GB, free: 13.67 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004723/0.8319, allocations: 1.498 MB / 0.6164 GB, free: 12.63 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01596/0.8479, allocations: 5.63 MB / 0.6219 GB, free: 6.715 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004068/0.852, allocations: 2.338 MB / 0.6241 GB, free: 4.109 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001762/0.8539, allocations: 0.6295 MB / 0.6248 GB, free: 3.473 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002954/0.8542, allocations: 102.1 kB / 0.6249 GB, free: 3.355 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.289e-05/0.8543, allocations: 55.55 kB / 0.6249 GB, free: 3.289 MB / 426.7 MB Notification: Performance of pre-optimization done (n=129): time 4.138e-06/0.8543, allocations: 0 / 0.6249 GB, free: 3.289 MB / 426.7 MB Notification: Performance of matching and sorting (n=129): time 0.003912/0.8582, allocations: 1.238 MB / 0.6261 GB, free: 2.035 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.522e-05/0.8583, allocations: 90.11 kB / 0.6262 GB, free: 1.93 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008743/0.8592, allocations: 419.8 kB / 0.6266 GB, free: 1.516 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002652/0.8595, allocations: 49.7 kB / 0.6267 GB, free: 1.461 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004253/0.8599, allocations: 0.498 MB / 0.6271 GB, free: 0.957 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005795/0.8605, allocations: 436.8 kB / 0.6276 GB, free: 0.5273 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001161/0.8607, allocations: 24 kB / 0.6276 GB, free: 0.5039 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0001965/0.8609, allocations: 362.7 kB / 0.6279 GB, free: 144 kB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001313/0.8622, allocations: 426.6 kB / 0.6283 GB, free: 15.72 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001511/0.8637, allocations: 0.6714 MB / 0.629 GB, free: 14.95 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001465/0.8652, allocations: 0.489 MB / 0.6295 GB, free: 14.46 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.176e-05/0.8653, allocations: 4 kB / 0.6295 GB, free: 14.46 MB / 442.7 MB Notification: Performance of matching and sorting (n=165) (initialization): time 0.004591/0.8699, allocations: 1.51 MB / 0.6309 GB, free: 12.94 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.544e-05/0.87, allocations: 11.44 kB / 0.631 GB, free: 12.93 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.467e-05/0.87, allocations: 8 kB / 0.631 GB, free: 12.93 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00279/0.8728, allocations: 0.5124 MB / 0.6315 GB, free: 12.41 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001825/0.8747, allocations: 207.7 kB / 0.6317 GB, free: 12.21 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01145/0.8862, allocations: 4.254 MB / 0.6358 GB, free: 7.82 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001529/0.8878, allocations: 130.7 kB / 0.6359 GB, free: 7.691 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001589/0.888, allocations: 55.98 kB / 0.636 GB, free: 7.637 MB / 442.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 33 * 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 (116): * Single equations (assignments): 115 * 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.0003893/0.8884, allocations: 184.3 kB / 0.6362 GB, free: 7.449 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002648/0.8886, allocations: 82.97 kB / 0.6362 GB, free: 7.367 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004421/0.8931, allocations: 1.509 MB / 0.6377 GB, free: 5.84 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.011e-05/0.8931, allocations: 16 kB / 0.6377 GB, free: 5.824 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.669e-06/0.8932, allocations: 0 / 0.6377 GB, free: 5.824 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.031e-05/0.8932, allocations: 7.969 kB / 0.6377 GB, free: 5.816 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007769/0.901, allocations: 2.826 MB / 0.6405 GB, free: 2.922 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.372e-05/0.901, allocations: 0 / 0.6405 GB, free: 2.922 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001378/0.9024, allocations: 143.8 kB / 0.6406 GB, free: 2.781 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002666/0.9051, allocations: 0.5028 MB / 0.6411 GB, free: 2.277 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001972/0.9053, allocations: 35.98 kB / 0.6412 GB, free: 2.242 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01101/0.9164, allocations: 4.27 MB / 0.6453 GB, free: 13.84 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.633e-06/0.9164, allocations: 3.984 kB / 0.6453 GB, free: 13.83 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006128/0.9226, allocations: 2.199 MB / 0.6475 GB, free: 11.6 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008674/0.9235, allocations: 299.6 kB / 0.6478 GB, free: 11.29 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001983/0.9237, allocations: 24 kB / 0.6478 GB, free: 11.27 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001165/0.9249, allocations: 56.03 kB / 0.6479 GB, free: 11.21 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000383/0.9253, allocations: 93.17 kB / 0.6479 GB, free: 11.12 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001356/0.9254, allocations: 39.98 kB / 0.648 GB, free: 11.08 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.000615/0.9261, allocations: 309.6 kB / 0.6483 GB, free: 10.77 MB / 458.7 MB Notification: Performance of sort global known variables: time 5.31e-07/0.9261, allocations: 0 / 0.6483 GB, free: 10.77 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.001985/0.9281, allocations: 419.1 kB / 0.6487 GB, free: 10.36 MB / 458.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 (86): * Single equations (assignments): 85 * 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.006914/0.935, allocations: 2.972 MB / 0.6516 GB, free: 7.355 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.005651/0.9407, allocations: 1.691 MB / 0.6532 GB, free: 5.648 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 7.594e-06/0.9408, allocations: 0 / 0.6532 GB, free: 5.648 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003795/0.9446, allocations: 1.113 MB / 0.6543 GB, free: 4.523 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00095/0.9456, allocations: 86.48 kB / 0.6544 GB, free: 4.441 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009403/0.955, allocations: 2.359 MB / 0.6567 GB, free: 2.027 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00113/0.9562, allocations: 1.107 MB / 0.6578 GB, free: 0.8945 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001056/0.9573, allocations: 407.3 kB / 0.6582 GB, free: 0.4961 MB / 458.7 MB Notification: Performance of SimCode: time 1.213e-06/0.9573, allocations: 0 / 0.6582 GB, free: 0.4961 MB / 458.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.959/3.916, allocations: 21.75 MB / 0.6794 GB, free: 10.69 MB / 490.7 MB (rm -f ModelicaTest_3.2.3_cpp_ModelicaTest.Electrical.QuasiStatic.SinglePhase.Ideal.pipe ; mkfifo ModelicaTest_3.2.3_cpp_ModelicaTest.Electrical.QuasiStatic.SinglePhase.Ideal.pipe ; head -c 1048576 < ModelicaTest_3.2.3_cpp_ModelicaTest.Electrical.QuasiStatic.SinglePhase.Ideal.pipe >> ../files/ModelicaTest_3.2.3_cpp_ModelicaTest.Electrical.QuasiStatic.SinglePhase.Ideal.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_3.2.3_cpp_ModelicaTest.Electrical.QuasiStatic.SinglePhase.Ideal_res.mat --tempDir=temp_ModelicaTest_3_2_3_cpp_ModelicaTest_Electrical_QuasiStatic_SinglePhase_Ideal_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 ModelicaTest_3_2_3_cpp_ModelicaTest_Electrical_QuasiStatic_SinglePhase_Ideal.fmu > ModelicaTest_3.2.3_cpp_ModelicaTest.Electrical.QuasiStatic.SinglePhase.Ideal.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.3_cpp_ModelicaTest.Electrical.QuasiStatic.SinglePhase.Ideal_res.mat does not exist to compare? outputFormat=mat