Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.UnitDeduction.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.Blocks.UnitDeduction,fileNamePrefix="ModelicaTest_3_2_3_cpp_ModelicaTest_Blocks_UnitDeduction",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Blocks.UnitDeduction,fileNamePrefix="ModelicaTest_3_2_3_cpp_ModelicaTest_Blocks_UnitDeduction",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.001584/0.001584, 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.105/2.105, 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.001117/0.001117, allocations: 90.66 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.2991/0.2991, allocations: 43.5 MB / 359.1 MB, free: 12.23 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 4.304e-05/4.321e-05, allocations: 0 / 425.4 MB, free: 23.28 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.121/0.1211, allocations: 58.85 MB / 484.2 MB, free: 12.39 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4899/0.6111, allocations: 94.34 MB / 0.565 GB, free: 9.336 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002773/0.6115, allocations: 70.31 kB / 0.5651 GB, free: 9.305 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.06845/0.6799, allocations: 14.36 MB / 0.5791 GB, free: 13.28 MB / 394.7 MB Notification: Performance of FrontEnd: time 2.354e-06/0.68, allocations: 224 / 0.5791 GB, free: 13.28 MB / 394.7 MB Notification: Performance of Transformations before backend: time 9.289e-05/0.6801, allocations: 23.94 kB / 0.5791 GB, free: 13.26 MB / 394.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 132 * Number of variables: 132 Notification: Performance of Generate backend data structure: time 0.002668/0.6828, allocations: 0.8846 MB / 0.58 GB, free: 12.37 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.517e-05/0.6829, allocations: 12.03 kB / 0.58 GB, free: 12.36 MB / 394.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002503/0.6831, allocations: 96.52 kB / 0.5801 GB, free: 12.29 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003159/0.6834, allocations: 94.86 kB / 0.5802 GB, free: 12.2 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001531/0.685, allocations: 0.5082 MB / 0.5807 GB, free: 11.72 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.643e-05/0.6851, allocations: 42.06 kB / 0.5807 GB, free: 11.7 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001446/0.6853, allocations: 62.47 kB / 0.5808 GB, free: 11.66 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001411/0.6867, allocations: 0.5642 MB / 0.5813 GB, free: 11.19 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.005e-05/0.6868, allocations: 15.92 kB / 0.5813 GB, free: 11.18 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.797e-05/0.6869, allocations: 20.56 kB / 0.5814 GB, free: 11.17 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.625e-05/0.6869, allocations: 19.95 kB / 0.5814 GB, free: 11.15 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001052/0.688, allocations: 330.8 kB / 0.5817 GB, free: 10.94 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007249/0.6953, allocations: 3.033 MB / 0.5847 GB, free: 8.176 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001118/0.6964, allocations: 372.2 kB / 0.585 GB, free: 7.914 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003669/0.6968, allocations: 145.6 kB / 0.5852 GB, free: 7.82 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.952e-05/0.6969, allocations: 11.98 kB / 0.5852 GB, free: 7.809 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.769e-05/0.697, allocations: 41.92 kB / 0.5852 GB, free: 7.762 MB / 394.7 MB Notification: Performance of pre-optimization done (n=39): time 3.126e-06/0.697, allocations: 0 / 0.5852 GB, free: 7.762 MB / 394.7 MB Notification: Performance of matching and sorting (n=39): time 0.00116/0.6982, allocations: 353.4 kB / 0.5855 GB, free: 7.492 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.326e-05/0.6983, allocations: 106.8 kB / 0.5856 GB, free: 7.363 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009419/0.6992, allocations: 482.4 kB / 0.5861 GB, free: 6.984 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001021/0.6994, allocations: 32.14 kB / 0.5861 GB, free: 6.953 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000325/0.6997, allocations: 405.2 kB / 0.5865 GB, free: 6.656 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002035/0.6999, allocations: 149.5 kB / 0.5867 GB, free: 6.531 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.264e-05/0.7, allocations: 11 kB / 0.5867 GB, free: 6.527 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0001674/0.7001, allocations: 336.3 kB / 0.587 GB, free: 6.203 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004458/0.7006, allocations: 141.4 kB / 0.5871 GB, free: 6.121 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006422/0.7013, allocations: 373.1 kB / 0.5875 GB, free: 5.734 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005767/0.7019, allocations: 192.2 kB / 0.5877 GB, free: 5.605 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.278e-06/0.7019, allocations: 4 kB / 0.5877 GB, free: 5.602 MB / 394.7 MB Notification: Performance of matching and sorting (n=78) (initialization): time 0.001429/0.7033, allocations: 0.5403 MB / 0.5882 GB, free: 5.188 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.001216/0.7046, allocations: 2.613 MB / 0.5907 GB, free: 2.418 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.037e-05/0.7046, allocations: 8 kB / 0.5908 GB, free: 2.41 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.923e-05/0.7047, allocations: 12 kB / 0.5908 GB, free: 2.398 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001241/0.7059, allocations: 139.1 kB / 0.5909 GB, free: 2.266 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.717e-05/0.706, allocations: 19.92 kB / 0.5909 GB, free: 2.246 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009572/0.707, allocations: 84.05 kB / 0.591 GB, free: 2.176 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.247e-05/0.7071, allocations: 23.12 kB / 0.591 GB, free: 2.156 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.663e-05/0.7071, allocations: 4 kB / 0.591 GB, free: 2.152 MB / 394.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001313/0.7084, allocations: 493 kB / 0.5915 GB, free: 1.812 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.433e-05/0.7085, allocations: 8 kB / 0.5915 GB, free: 1.805 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.927e-05/0.7085, allocations: 12.03 kB / 0.5915 GB, free: 1.793 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001076/0.7096, allocations: 143.1 kB / 0.5917 GB, free: 1.656 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.328e-05/0.7096, allocations: 15.92 kB / 0.5917 GB, free: 1.641 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006813/0.7103, allocations: 55.17 kB / 0.5917 GB, free: 1.598 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.072e-05/0.7104, allocations: 27.44 kB / 0.5917 GB, free: 1.574 MB / 394.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 30 * Number of states: 0 () * Number of discrete variables: 7 (Asec.local_reset,Vsec.local_reset,Wsec.local_reset,PID1.I.local_reset,PID.I.local_reset,limIntegrator.local_reset,integrator.local_reset) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (78): * Single equations (assignments): 78 * 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: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002505/0.7107, allocations: 144 kB / 0.5919 GB, free: 1.445 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002441/0.7109, allocations: 67.16 kB / 0.5919 GB, free: 1.379 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000234/0.7112, allocations: 69.92 kB / 0.592 GB, free: 1.34 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.547e-06/0.7112, allocations: 8 kB / 0.592 GB, free: 1.332 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.129e-05/0.7112, allocations: 3.953 kB / 0.592 GB, free: 1.328 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.198e-05/0.7112, allocations: 7.922 kB / 0.592 GB, free: 1.32 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001464/0.7127, allocations: 0.5778 MB / 0.5926 GB, free: 0.8281 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.724e-06/0.7128, allocations: 0 / 0.5926 GB, free: 0.8281 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001103/0.7139, allocations: 95.33 kB / 0.5927 GB, free: 0.7383 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.065e-05/0.7139, allocations: 0 / 0.5927 GB, free: 0.7383 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.181e-05/0.714, allocations: 12.12 kB / 0.5927 GB, free: 0.7344 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.759e-06/0.714, allocations: 4 kB / 0.5927 GB, free: 0.7305 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.855e-06/0.714, allocations: 0 / 0.5927 GB, free: 0.7305 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001559/0.7156, allocations: 0.7147 MB / 0.5934 GB, free: 152 kB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000422/0.7161, allocations: 174.2 kB / 0.5936 GB, free: 15.98 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001297/0.7162, allocations: 10.88 kB / 0.5936 GB, free: 15.97 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008677/0.7171, allocations: 35.73 kB / 0.5936 GB, free: 15.94 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001342/0.7173, allocations: 35.28 kB / 0.5936 GB, free: 15.91 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.236e-05/0.7173, allocations: 11.44 kB / 0.5937 GB, free: 15.91 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.0007486/0.7181, allocations: 370.8 kB / 0.594 GB, free: 15.62 MB / 410.7 MB Notification: Performance of sort global known variables: time 4.71e-07/0.7181, allocations: 3.938 kB / 0.594 GB, free: 15.62 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.001994/0.7201, allocations: 251.8 kB / 0.5943 GB, free: 15.4 MB / 410.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 16 (integrator.y,inertia.phi,inertia.w,limIntegrator.y,derivative.x,firstOrder.y,secondOrder.y,secondOrder.yd,PI.x,PID.I.y,PID.D.x,PID1.I.y,PID1.D.x,Wsec.y,Vsec.y,Asec.y) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (39): * Single equations (assignments): 39 * 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: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001992/0.7221, allocations: 1.33 MB / 0.5956 GB, free: 14.2 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.001783/0.724, allocations: 0.626 MB / 0.5962 GB, free: 13.76 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 6.853e-06/0.724, allocations: 0 / 0.5962 GB, free: 13.76 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004482/0.7245, allocations: 166.2 kB / 0.5963 GB, free: 13.64 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001617/0.7261, allocations: 158.8 kB / 0.5965 GB, free: 13.54 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003977/0.7301, allocations: 1.24 MB / 0.5977 GB, free: 12.36 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006521/0.7308, allocations: 0.927 MB / 0.5986 GB, free: 11.41 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005832/0.7314, allocations: 246.3 kB / 0.5988 GB, free: 11.34 MB / 410.7 MB Notification: Performance of SimCode: time 2.104e-06/0.7314, allocations: 0 / 0.5988 GB, free: 11.34 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.012/3.744, allocations: 10.34 MB / 0.6089 GB, free: 1.172 MB / 410.7 MB (rm -f ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.UnitDeduction.pipe ; mkfifo ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.UnitDeduction.pipe ; head -c 1048576 < ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.UnitDeduction.pipe >> ../files/ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.UnitDeduction.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.UnitDeduction_res.mat --tempDir=temp_ModelicaTest_3_2_3_cpp_ModelicaTest_Blocks_UnitDeduction_fmu --startTime=0 --stopTime=1.01 --timeout=50 --tolerance=1e-06 ModelicaTest_3_2_3_cpp_ModelicaTest_Blocks_UnitDeduction.fmu > ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.UnitDeduction.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.UnitDeduction_res.mat does not exist to compare? outputFormat=mat