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.002115/0.002114, allocations: 188.4 kB / 16.41 MB, free: 5.723 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.245/2.245, allocations: 205.4 MB / 222.5 MB, free: 9.109 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.00113/0.001129, allocations: 84.44 kB / 270.9 MB, free: 8.371 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.5145/0.5145, allocations: 43.56 MB / 362.7 MB, free: 52.19 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0005557/0.0005559, allocations: 16 kB / 431.5 MB, free: 6.074 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1337/0.1343, allocations: 58.84 MB / 490.3 MB, free: 11.15 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5042/0.6385, allocations: 94.42 MB / 0.571 GB, free: 8.121 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002729/0.6389, allocations: 75.95 kB / 0.5711 GB, free: 8.047 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.06648/0.7054, allocations: 14.41 MB / 0.5852 GB, free: 9.672 MB / 410.7 MB Notification: Performance of FrontEnd: time 2.465e-06/0.7054, allocations: 224 / 0.5852 GB, free: 9.672 MB / 410.7 MB Notification: Performance of Transformations before backend: time 8.669e-05/0.7055, allocations: 19.94 kB / 0.5852 GB, free: 9.652 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: 132 * Number of variables: 132 Notification: Performance of Generate backend data structure: time 0.002953/0.7085, allocations: 0.988 MB / 0.5861 GB, free: 8.617 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.381e-05/0.7086, allocations: 16.03 kB / 0.5862 GB, free: 8.602 MB / 410.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002626/0.7088, allocations: 90.52 kB / 0.5862 GB, free: 8.504 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002647/0.7091, allocations: 86.97 kB / 0.5863 GB, free: 8.418 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001527/0.7107, allocations: 0.5192 MB / 0.5868 GB, free: 7.855 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.504e-05/0.7108, allocations: 41.31 kB / 0.5869 GB, free: 7.816 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001601/0.7109, allocations: 68.94 kB / 0.5869 GB, free: 7.75 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001773/0.7127, allocations: 0.6116 MB / 0.5875 GB, free: 7.082 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.623e-05/0.7128, allocations: 3.938 kB / 0.5875 GB, free: 7.078 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.686e-05/0.7129, allocations: 28.34 kB / 0.5876 GB, free: 7.051 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.293e-05/0.7129, allocations: 15.95 kB / 0.5876 GB, free: 7.035 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001425/0.7143, allocations: 405.4 kB / 0.588 GB, free: 6.645 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00672/0.7211, allocations: 3.019 MB / 0.5909 GB, free: 3.484 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001862/0.723, allocations: 473.7 kB / 0.5914 GB, free: 3 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.595e-05/0.7231, allocations: 4 kB / 0.5914 GB, free: 2.996 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.459e-05/0.7232, allocations: 43.05 kB / 0.5914 GB, free: 2.945 MB / 410.7 MB Notification: Performance of pre-optimization done (n=39): time 2.866e-06/0.7232, allocations: 0 / 0.5914 GB, free: 2.945 MB / 410.7 MB Notification: Performance of matching and sorting (n=39): time 0.002381/0.7256, allocations: 0.5794 MB / 0.592 GB, free: 2.355 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001062/0.7257, allocations: 114.8 kB / 0.5921 GB, free: 2.219 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001021/0.7268, allocations: 483.4 kB / 0.5926 GB, free: 1.742 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001003/0.7269, allocations: 37.7 kB / 0.5926 GB, free: 1.699 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003774/0.7273, allocations: 394.5 kB / 0.593 GB, free: 1.309 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002098/0.7275, allocations: 157.8 kB / 0.5931 GB, free: 1.152 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.89e-05/0.7276, allocations: 12 kB / 0.5931 GB, free: 1.141 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0001693/0.7278, allocations: 339.8 kB / 0.5935 GB, free: 0.8008 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007527/0.7285, allocations: 185.2 kB / 0.5936 GB, free: 0.6211 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009469/0.7295, allocations: 404.8 kB / 0.594 GB, free: 132 kB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00089/0.7304, allocations: 231.9 kB / 0.5942 GB, free: 15.9 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.037e-05/0.7304, allocations: 4 kB / 0.5942 GB, free: 15.9 MB / 426.7 MB Notification: Performance of matching and sorting (n=78) (initialization): time 0.002112/0.7326, allocations: 0.6262 MB / 0.5949 GB, free: 15.27 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.001273/0.7339, allocations: 2.619 MB / 0.5974 GB, free: 12.44 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.037e-05/0.7339, allocations: 4.75 kB / 0.5974 GB, free: 12.44 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 4.089e-05/0.734, allocations: 12 kB / 0.5974 GB, free: 12.43 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001179/0.7352, allocations: 147.8 kB / 0.5976 GB, free: 12.28 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.78e-05/0.7352, allocations: 11.94 kB / 0.5976 GB, free: 12.27 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008353/0.736, allocations: 75.5 kB / 0.5977 GB, free: 12.2 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.987e-05/0.7361, allocations: 28 kB / 0.5977 GB, free: 12.17 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.846e-05/0.7362, allocations: 7.125 kB / 0.5977 GB, free: 12.16 MB / 426.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001809/0.738, allocations: 0.547 MB / 0.5982 GB, free: 11.62 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.273e-05/0.738, allocations: 8.016 kB / 0.5982 GB, free: 11.61 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.292e-05/0.7381, allocations: 20.03 kB / 0.5982 GB, free: 11.59 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009641/0.739, allocations: 135.8 kB / 0.5984 GB, free: 11.46 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.315e-05/0.7391, allocations: 19.88 kB / 0.5984 GB, free: 11.44 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005326/0.7396, allocations: 59.52 kB / 0.5985 GB, free: 11.38 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.456e-05/0.7397, allocations: 35.98 kB / 0.5985 GB, free: 11.34 MB / 426.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 () * Number of clocked 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.0005444/0.7402, allocations: 276.9 kB / 0.5987 GB, free: 11.06 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002291/0.7405, allocations: 71.14 kB / 0.5988 GB, free: 10.99 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001883/0.7407, allocations: 66.17 kB / 0.5989 GB, free: 10.93 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.627e-06/0.7407, allocations: 4 kB / 0.5989 GB, free: 10.92 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.156e-05/0.7407, allocations: 3.953 kB / 0.5989 GB, free: 10.92 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.668e-06/0.7407, allocations: 4 kB / 0.5989 GB, free: 10.91 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001227/0.742, allocations: 0.5752 MB / 0.5995 GB, free: 10.29 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.324e-06/0.742, allocations: 0 / 0.5995 GB, free: 10.29 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001001/0.743, allocations: 95.81 kB / 0.5995 GB, free: 10.2 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.376e-06/0.743, allocations: 4 kB / 0.5995 GB, free: 10.19 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.658e-05/0.7431, allocations: 12 kB / 0.5996 GB, free: 10.18 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.861e-06/0.7432, allocations: 0 / 0.5996 GB, free: 10.18 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.481e-06/0.7432, allocations: 4 kB / 0.5996 GB, free: 10.18 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002381/0.7456, allocations: 0.837 MB / 0.6004 GB, free: 9.312 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000345/0.7459, allocations: 172.2 kB / 0.6005 GB, free: 9.125 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001216/0.7461, allocations: 16 kB / 0.6006 GB, free: 9.109 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006601/0.7468, allocations: 31.97 kB / 0.6006 GB, free: 9.078 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001372/0.7469, allocations: 35.91 kB / 0.6006 GB, free: 9.043 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.802e-05/0.747, allocations: 8 kB / 0.6006 GB, free: 9.035 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.0007523/0.7477, allocations: 375.1 kB / 0.601 GB, free: 8.672 MB / 426.7 MB Notification: Performance of sort global known variables: time 4.1e-07/0.7477, allocations: 4 kB / 0.601 GB, free: 8.668 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.001286/0.749, allocations: 251.2 kB / 0.6012 GB, free: 8.422 MB / 426.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 () * Number of clocked 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.002911/0.752, allocations: 1.44 MB / 0.6026 GB, free: 6.953 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.00264/0.7546, allocations: 0.7533 MB / 0.6034 GB, free: 6.203 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 6.142e-06/0.7547, allocations: 3.938 kB / 0.6034 GB, free: 6.199 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0007514/0.7554, allocations: 208.4 kB / 0.6036 GB, free: 5.996 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001456/0.7569, allocations: 160.8 kB / 0.6037 GB, free: 5.844 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0122/0.7691, allocations: 8.544 MB / 0.6121 GB, free: 13.11 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000646/0.7698, allocations: 0.9268 MB / 0.613 GB, free: 12.15 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006514/0.7705, allocations: 247.3 kB / 0.6132 GB, free: 11.91 MB / 442.7 MB Notification: Performance of SimCode: time 1.102e-06/0.7705, allocations: 0 / 0.6132 GB, free: 11.91 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.659/3.43, allocations: 10.41 MB / 0.6234 GB, free: 1.531 MB / 442.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