Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_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_ModelicaTest_Blocks_UnitDeduction",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Blocks.UnitDeduction,fileNamePrefix="ModelicaTest_3_2_3_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.001153/0.001153, allocations: 182.8 kB / 13.19 MB, free: 2.129 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.637/1.637, allocations: 205.2 MB / 218.9 MB, free: 9.203 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.00114/0.001141, allocations: 81.88 kB / 267 MB, free: 9.281 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.4837/0.4837, allocations: 43.47 MB / 358.6 MB, free: 51.58 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 3.713e-05/3.729e-05, allocations: 4 kB / 425.4 MB, free: 8.113 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1552/0.1553, allocations: 58.83 MB / 484.2 MB, free: 13.17 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5092/0.6645, allocations: 94.33 MB / 0.565 GB, free: 11.34 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002995/0.6649, allocations: 68.66 kB / 0.5651 GB, free: 11.31 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.03622/0.7011, allocations: 14.39 MB / 0.5791 GB, free: 15.3 MB / 410.7 MB Notification: Performance of FrontEnd: time 1.953e-06/0.7012, allocations: 0 / 0.5791 GB, free: 15.3 MB / 410.7 MB Notification: Performance of Transformations before backend: time 6.429e-05/0.7012, allocations: 27.92 kB / 0.5792 GB, free: 15.28 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.001605/0.7029, allocations: 0.8789 MB / 0.58 GB, free: 14.4 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.628e-05/0.7029, allocations: 8.031 kB / 0.58 GB, free: 14.39 MB / 410.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000112/0.703, allocations: 95.39 kB / 0.5801 GB, free: 14.32 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001521/0.7032, allocations: 90.97 kB / 0.5802 GB, free: 14.23 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009535/0.7042, allocations: 0.4999 MB / 0.5807 GB, free: 13.76 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.741e-05/0.7042, allocations: 49.11 kB / 0.5807 GB, free: 13.73 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.739e-05/0.7043, allocations: 66.22 kB / 0.5808 GB, free: 13.69 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009383/0.7053, allocations: 0.5682 MB / 0.5814 GB, free: 13.22 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.588e-05/0.7053, allocations: 3.938 kB / 0.5814 GB, free: 13.22 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.486e-05/0.7054, allocations: 22.41 kB / 0.5814 GB, free: 13.21 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.27e-05/0.7054, allocations: 15.95 kB / 0.5814 GB, free: 13.2 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005795/0.706, allocations: 341.1 kB / 0.5817 GB, free: 12.98 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004215/0.7102, allocations: 3.031 MB / 0.5847 GB, free: 10.22 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006598/0.7109, allocations: 373.3 kB / 0.585 GB, free: 9.957 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002215/0.7111, allocations: 137.9 kB / 0.5852 GB, free: 9.871 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.939e-05/0.7112, allocations: 7.953 kB / 0.5852 GB, free: 9.863 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.864e-05/0.7112, allocations: 41.42 kB / 0.5852 GB, free: 9.816 MB / 410.7 MB Notification: Performance of pre-optimization done (n=39): time 4.648e-06/0.7112, allocations: 0 / 0.5852 GB, free: 9.816 MB / 410.7 MB Notification: Performance of matching and sorting (n=39): time 0.0007303/0.712, allocations: 354.5 kB / 0.5856 GB, free: 9.547 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001176/0.7121, allocations: 106.8 kB / 0.5857 GB, free: 9.418 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006225/0.7127, allocations: 485.5 kB / 0.5861 GB, free: 9.039 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 4.719e-05/0.7128, allocations: 32.7 kB / 0.5861 GB, free: 9.008 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003051/0.7131, allocations: 376.2 kB / 0.5865 GB, free: 8.75 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000146/0.7133, allocations: 153.3 kB / 0.5867 GB, free: 8.621 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.759e-05/0.7133, allocations: 20.59 kB / 0.5867 GB, free: 8.613 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0002024/0.7135, allocations: 375.5 kB / 0.587 GB, free: 8.266 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002495/0.7138, allocations: 146.7 kB / 0.5872 GB, free: 8.18 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004441/0.7142, allocations: 353.7 kB / 0.5875 GB, free: 7.812 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003251/0.7145, allocations: 193.8 kB / 0.5877 GB, free: 7.684 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.557e-06/0.7146, allocations: 0 / 0.5877 GB, free: 7.684 MB / 410.7 MB Notification: Performance of matching and sorting (n=78) (initialization): time 0.0009177/0.7155, allocations: 0.5876 MB / 0.5883 GB, free: 7.223 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.001093/0.7166, allocations: 2.61 MB / 0.5908 GB, free: 4.457 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.402e-05/0.7166, allocations: 7.984 kB / 0.5908 GB, free: 4.449 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.539e-05/0.7166, allocations: 12 kB / 0.5908 GB, free: 4.438 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005796/0.7172, allocations: 151.6 kB / 0.591 GB, free: 4.293 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.484e-05/0.7173, allocations: 11.94 kB / 0.591 GB, free: 4.281 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004442/0.7177, allocations: 78.38 kB / 0.5911 GB, free: 4.215 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.23e-05/0.7178, allocations: 27.75 kB / 0.5911 GB, free: 4.191 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 8.496e-06/0.7178, allocations: 4 kB / 0.5911 GB, free: 4.188 MB / 410.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.000752/0.7185, allocations: 0.4937 MB / 0.5916 GB, free: 3.836 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.242e-06/0.7186, allocations: 4 kB / 0.5916 GB, free: 3.832 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.98e-05/0.7186, allocations: 12 kB / 0.5916 GB, free: 3.82 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004801/0.7191, allocations: 142.3 kB / 0.5917 GB, free: 3.684 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.269e-05/0.7191, allocations: 11.94 kB / 0.5917 GB, free: 3.672 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004208/0.7195, allocations: 70.56 kB / 0.5918 GB, free: 3.613 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.346e-05/0.7196, allocations: 25.75 kB / 0.5918 GB, free: 3.594 MB / 410.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.0001666/0.7197, allocations: 142.3 kB / 0.592 GB, free: 3.465 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001357/0.7199, allocations: 67.16 kB / 0.592 GB, free: 3.398 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001829/0.7201, allocations: 71.86 kB / 0.5921 GB, free: 3.359 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.54e-06/0.7201, allocations: 9.25 kB / 0.5921 GB, free: 3.352 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.02e-05/0.7201, allocations: 3.953 kB / 0.5921 GB, free: 3.348 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.694e-06/0.7201, allocations: 3.984 kB / 0.5921 GB, free: 3.344 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008582/0.721, allocations: 0.5773 MB / 0.5927 GB, free: 2.855 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.823e-06/0.721, allocations: 7.984 kB / 0.5927 GB, free: 2.848 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004927/0.7215, allocations: 87.02 kB / 0.5928 GB, free: 2.766 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.727e-06/0.7215, allocations: 0 / 0.5928 GB, free: 2.766 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.472e-05/0.7216, allocations: 9.938 kB / 0.5928 GB, free: 2.762 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.527e-06/0.7216, allocations: 4 kB / 0.5928 GB, free: 2.758 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.891e-06/0.7216, allocations: 0 / 0.5928 GB, free: 2.758 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00089/0.7225, allocations: 0.7127 MB / 0.5935 GB, free: 2.18 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002245/0.7227, allocations: 169.8 kB / 0.5936 GB, free: 2.016 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.116e-05/0.7228, allocations: 15.67 kB / 0.5937 GB, free: 2.008 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003662/0.7232, allocations: 31.73 kB / 0.5937 GB, free: 1.98 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.809e-05/0.7233, allocations: 32.22 kB / 0.5937 GB, free: 1.953 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.607e-05/0.7233, allocations: 23.61 kB / 0.5937 GB, free: 1.934 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.0004516/0.7238, allocations: 369.2 kB / 0.5941 GB, free: 1.656 MB / 410.7 MB Notification: Performance of sort global known variables: time 1.61e-07/0.7238, allocations: 0 / 0.5941 GB, free: 1.656 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.0007882/0.7246, allocations: 250.2 kB / 0.5943 GB, free: 1.434 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.001248/0.7258, allocations: 1.326 MB / 0.5956 GB, free: 248 kB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.001126/0.727, allocations: 0.6566 MB / 0.5963 GB, free: 15.78 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 2.525e-06/0.727, allocations: 0 / 0.5963 GB, free: 15.78 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002434/0.7272, allocations: 159 kB / 0.5964 GB, free: 15.67 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009213/0.7281, allocations: 168.4 kB / 0.5966 GB, free: 15.55 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002319/0.7305, allocations: 1.207 MB / 0.5978 GB, free: 14.42 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005032/0.731, allocations: 0.9282 MB / 0.5987 GB, free: 13.46 MB / 426.7 MB Notification: Performance of simCode: alias equations: time 0.0005629/0.7316, allocations: 119.7 kB / 0.5988 GB, free: 13.34 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002896/0.7319, allocations: 238.8 kB / 0.599 GB, free: 13.29 MB / 426.7 MB Notification: Performance of SimCode: time 7.92e-07/0.7319, allocations: 0 / 0.599 GB, free: 13.29 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03205/0.7639, allocations: 12.76 MB / 0.6115 GB, free: 0.6016 MB / 426.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002641/0.7643, allocations: 142.3 kB / 0.6116 GB, free: 380 kB / 426.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.491/3.255, allocations: 0 / 0.6116 GB, free: 380 kB / 426.7 MB (rm -f ModelicaTest_3.2.3_ModelicaTest.Blocks.UnitDeduction.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.Blocks.UnitDeduction.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.Blocks.UnitDeduction.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.Blocks.UnitDeduction.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_3.2.3_ModelicaTest.Blocks.UnitDeduction_res.mat --tempDir=temp_ModelicaTest_3_2_3_ModelicaTest_Blocks_UnitDeduction_fmu --startTime=0 --stopTime=1.01 --timeout=50 --tolerance=1e-06 ModelicaTest_3_2_3_ModelicaTest_Blocks_UnitDeduction.fmu > ModelicaTest_3.2.3_ModelicaTest.Blocks.UnitDeduction.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.3_ModelicaTest.Blocks.UnitDeduction_res.mat does not exist to compare? outputFormat=mat