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.001071/0.001071, allocations: 180.7 kB / 14.15 MB, free: 1.176 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.563/1.563, allocations: 221.3 MB / 236 MB, free: 2.977 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.0008795/0.0008795, allocations: 91.16 kB / 287 MB, free: 260 kB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2336/0.2336, allocations: 44.15 MB / 382 MB, free: 14.7 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 3.18e-05/3.184e-05, allocations: 4.219 kB / 451.9 MB, free: 9.355 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1499/0.1499, allocations: 61.91 MB / 0.5018 GB, free: 11.38 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5343/0.6843, allocations: 102.5 MB / 0.6019 GB, free: 2.805 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0004328/0.6848, allocations: 83.95 kB / 0.6019 GB, free: 2.723 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.09669/0.7815, allocations: 38.71 MB / 0.6397 GB, free: 11.57 MB / 458.7 MB Notification: Performance of FrontEnd: time 2.294e-06/0.7816, allocations: 0 / 0.6397 GB, free: 11.57 MB / 458.7 MB Notification: Performance of Transformations before backend: time 4.335e-05/0.7816, allocations: 20 kB / 0.6398 GB, free: 11.55 MB / 458.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.004934/0.7866, allocations: 1.698 MB / 0.6414 GB, free: 9.801 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.974e-05/0.7866, allocations: 12.03 kB / 0.6414 GB, free: 9.789 MB / 458.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003396/0.787, allocations: 190.5 kB / 0.6416 GB, free: 9.594 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006213/0.7932, allocations: 0.9818 MB / 0.6426 GB, free: 8.609 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001165/0.7944, allocations: 0.5948 MB / 0.6431 GB, free: 7.969 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.694e-05/0.7945, allocations: 98.59 kB / 0.6432 GB, free: 7.871 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001995/0.7947, allocations: 136 kB / 0.6434 GB, free: 7.738 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002501/0.7972, allocations: 1.413 MB / 0.6447 GB, free: 6.277 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.821e-05/0.7972, allocations: 7.938 kB / 0.6448 GB, free: 6.27 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001248/0.7974, allocations: 52 kB / 0.6448 GB, free: 6.219 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.131e-05/0.7974, allocations: 32 kB / 0.6448 GB, free: 6.188 MB / 458.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00233/0.7998, allocations: 1.435 MB / 0.6462 GB, free: 4.746 MB / 458.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008228/0.808, allocations: 5.465 MB / 0.6516 GB, free: 15.01 MB / 474.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002263/0.8103, allocations: 2.139 MB / 0.6537 GB, free: 12.63 MB / 474.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008429/0.8112, allocations: 0.6126 MB / 0.6543 GB, free: 12.01 MB / 474.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001614/0.8113, allocations: 106.1 kB / 0.6544 GB, free: 11.89 MB / 474.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.882e-05/0.8114, allocations: 55.48 kB / 0.6544 GB, free: 11.82 MB / 474.7 MB Notification: Performance of pre-optimization done (n=127): time 3.526e-06/0.8114, allocations: 0 / 0.6544 GB, free: 11.82 MB / 474.7 MB Notification: Performance of matching and sorting (n=127): time 0.002149/0.8136, allocations: 1.225 MB / 0.6556 GB, free: 10.59 MB / 474.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.835e-05/0.8136, allocations: 94.06 kB / 0.6557 GB, free: 10.48 MB / 474.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004621/0.8141, allocations: 407.7 kB / 0.6561 GB, free: 10.07 MB / 474.7 MB Notification: Performance of collectPreVariables (initialization): time 7.389e-05/0.8142, allocations: 49.7 kB / 0.6561 GB, free: 10.02 MB / 474.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003146/0.8145, allocations: 455.7 kB / 0.6566 GB, free: 9.562 MB / 474.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003178/0.8148, allocations: 417.8 kB / 0.657 GB, free: 9.148 MB / 474.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.777e-05/0.8149, allocations: 20 kB / 0.657 GB, free: 9.129 MB / 474.7 MB Notification: Performance of setup shared object (initialization): time 0.0001816/0.8151, allocations: 382.8 kB / 0.6574 GB, free: 8.746 MB / 474.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006711/0.8158, allocations: 418.6 kB / 0.6578 GB, free: 8.336 MB / 474.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008339/0.8166, allocations: 0.6308 MB / 0.6584 GB, free: 7.629 MB / 474.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007784/0.8174, allocations: 480.5 kB / 0.6588 GB, free: 7.164 MB / 474.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.352e-06/0.8174, allocations: 7.938 kB / 0.6588 GB, free: 7.156 MB / 474.7 MB Notification: Performance of matching and sorting (n=157) (initialization): time 0.002384/0.8198, allocations: 1.457 MB / 0.6603 GB, free: 5.688 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.316e-05/0.8198, allocations: 4 kB / 0.6603 GB, free: 5.684 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.421e-05/0.8198, allocations: 12.09 kB / 0.6603 GB, free: 5.672 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001466/0.8213, allocations: 0.5045 MB / 0.6608 GB, free: 5.164 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007673/0.8221, allocations: 191.7 kB / 0.6609 GB, free: 4.977 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006496/0.8286, allocations: 4.263 MB / 0.6651 GB, free: 0.5703 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009748/0.8296, allocations: 130.8 kB / 0.6652 GB, free: 452 kB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.542e-05/0.8297, allocations: 44 kB / 0.6653 GB, free: 408 kB / 474.7 MB 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.0002913/0.83, allocations: 172.7 kB / 0.6654 GB, free: 228 kB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002293/0.8303, allocations: 83.02 kB / 0.6655 GB, free: 144 kB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003025/0.8333, allocations: 1.559 MB / 0.667 GB, free: 14.56 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.424e-05/0.8333, allocations: 12 kB / 0.6671 GB, free: 14.55 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.865e-06/0.8333, allocations: 0 / 0.6671 GB, free: 14.55 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.667e-05/0.8334, allocations: 11.97 kB / 0.6671 GB, free: 14.54 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004903/0.8383, allocations: 2.792 MB / 0.6698 GB, free: 11.69 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.692e-06/0.8383, allocations: 0 / 0.6698 GB, free: 11.69 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007805/0.8391, allocations: 139.8 kB / 0.6699 GB, free: 11.55 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001697/0.8408, allocations: 0.5067 MB / 0.6704 GB, free: 11.05 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.724e-05/0.8409, allocations: 35.94 kB / 0.6705 GB, free: 11.01 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006542/0.8475, allocations: 4.25 MB / 0.6746 GB, free: 6.625 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.919e-06/0.8475, allocations: 3.984 kB / 0.6746 GB, free: 6.621 MB / 490.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003448/0.8509, allocations: 2.183 MB / 0.6767 GB, free: 4.402 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004952/0.8515, allocations: 295.5 kB / 0.677 GB, free: 4.094 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001034/0.8516, allocations: 24 kB / 0.677 GB, free: 4.07 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006393/0.8522, allocations: 56.03 kB / 0.6771 GB, free: 4.016 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002357/0.8525, allocations: 97.12 kB / 0.6772 GB, free: 3.922 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.973e-05/0.8526, allocations: 32 kB / 0.6772 GB, free: 3.891 MB / 490.7 MB Notification: Performance of sorting global known variables: time 0.0004034/0.853, allocations: 309.6 kB / 0.6775 GB, free: 3.586 MB / 490.7 MB Notification: Performance of sort global known variables: time 1.7e-07/0.853, allocations: 0 / 0.6775 GB, free: 3.586 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.00138/0.8544, allocations: 407.1 kB / 0.6779 GB, free: 3.188 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.004181/0.8586, allocations: 2.963 MB / 0.6808 GB, free: 192 kB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.003333/0.8619, allocations: 1.662 MB / 0.6824 GB, free: 14.51 MB / 0.4948 GB Notification: Performance of simCode: created event and clocks part: time 9.438e-06/0.8619, allocations: 0 / 0.6824 GB, free: 14.51 MB / 0.4948 GB Notification: Performance of simCode: created simulation system equations: time 0.002026/0.864, allocations: 1.112 MB / 0.6835 GB, free: 13.38 MB / 0.4948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006369/0.8646, allocations: 90.48 kB / 0.6836 GB, free: 13.3 MB / 0.4948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005481/0.8701, allocations: 2.291 MB / 0.6858 GB, free: 10.95 MB / 0.4948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007044/0.8708, allocations: 1.099 MB / 0.6869 GB, free: 9.828 MB / 0.4948 GB Notification: Performance of simCode: alias equations: time 0.0005404/0.8714, allocations: 110.7 kB / 0.687 GB, free: 9.715 MB / 0.4948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004933/0.8719, allocations: 383.3 kB / 0.6874 GB, free: 9.34 MB / 0.4948 GB Notification: Performance of SimCode: time 1.112e-06/0.8719, allocations: 0 / 0.6874 GB, free: 9.34 MB / 0.4948 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04788/0.9198, allocations: 23.97 MB / 0.7108 GB, free: 1.586 MB / 0.5105 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001934/0.92, allocations: 197.6 kB / 0.711 GB, free: 1.355 MB / 0.5105 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.902/3.822, allocations: 3.938 kB / 0.711 GB, free: 1.352 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