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"}) [:1:1-1:32:writable] Error: Class GC_set_max_heap_size not found in scope (looking for a function or record). Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001631/0.001631, allocations: 192 kB / 7.804 MB, free: 2.504 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.711/1.711, allocations: 205.2 MB / 213.4 MB, free: 13.86 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.000948/0.0009479, allocations: 85.61 kB / 261.4 MB, free: 13.62 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.2264/0.2264, allocations: 43.48 MB / 352.8 MB, free: 2.043 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.2672/0.4936, allocations: 64.97 MB / 417.8 MB, free: 40.5 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4072/0.9008, allocations: 58.83 MB / 476.6 MB, free: 5.18 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1606/1.062, allocations: 93.59 MB / 0.5569 GB, free: 5.352 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002868/1.062, allocations: 71.36 kB / 0.5569 GB, free: 5.285 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.04499/1.107, allocations: 14.88 MB / 0.5715 GB, free: 6.332 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.343e-05/1.107, allocations: 12 kB / 0.5715 GB, free: 6.32 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003636/1.107, allocations: 86.97 kB / 0.5716 GB, free: 6.234 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00136/1.109, allocations: 0.5115 MB / 0.5721 GB, free: 5.68 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.282e-05/1.109, allocations: 20 kB / 0.5721 GB, free: 5.66 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001383/1.109, allocations: 43.84 kB / 0.5721 GB, free: 5.617 MB / 410.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0006997/1.11, allocations: 290.6 kB / 0.5724 GB, free: 5.332 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008674/1.11, allocations: 499.8 kB / 0.5729 GB, free: 4.789 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.896e-05/1.111, allocations: 7.938 kB / 0.5729 GB, free: 4.781 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.854e-05/1.111, allocations: 0 / 0.5729 GB, free: 4.781 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.528e-05/1.111, allocations: 16 kB / 0.5729 GB, free: 4.766 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004275/1.115, allocations: 2.902 MB / 0.5757 GB, free: 1.73 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006577/1.116, allocations: 339.6 kB / 0.5761 GB, free: 1.379 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000218/1.116, allocations: 125.7 kB / 0.5762 GB, free: 1.25 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.643e-05/1.116, allocations: 8.531 kB / 0.5762 GB, free: 1.242 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.018e-05/1.116, allocations: 38.56 kB / 0.5762 GB, free: 1.195 MB / 410.7 MB Notification: Performance of pre-optimization done (n=39): time 3.377e-06/1.116, allocations: 0 / 0.5762 GB, free: 1.195 MB / 410.7 MB Notification: Performance of matching and sorting (n=39): time 0.0007022/1.117, allocations: 329.5 kB / 0.5765 GB, free: 0.8633 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.105e-05/1.117, allocations: 106.8 kB / 0.5766 GB, free: 0.7344 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005669/1.117, allocations: 451.3 kB / 0.5771 GB, free: 292 kB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 3.995e-05/1.117, allocations: 25.7 kB / 0.5771 GB, free: 260 kB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001862/1.118, allocations: 284 kB / 0.5774 GB, free: 15.97 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001464/1.118, allocations: 145.9 kB / 0.5775 GB, free: 15.82 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.38e-05/1.118, allocations: 0 / 0.5775 GB, free: 15.82 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0001723/1.118, allocations: 382.7 kB / 0.5779 GB, free: 15.44 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002923/1.118, allocations: 129.3 kB / 0.578 GB, free: 15.32 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004083/1.119, allocations: 348.5 kB / 0.5783 GB, free: 14.88 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003597/1.119, allocations: 179.6 kB / 0.5785 GB, free: 14.71 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.266e-06/1.119, allocations: 0 / 0.5785 GB, free: 14.71 MB / 426.7 MB Notification: Performance of matching and sorting (n=78) (initialization): time 0.0009421/1.12, allocations: 0.5081 MB / 0.579 GB, free: 14.19 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.001216/1.121, allocations: 2.615 MB / 0.5815 GB, free: 11.37 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.463e-05/1.121, allocations: 8.156 kB / 0.5815 GB, free: 11.36 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.341e-05/1.121, allocations: 11.98 kB / 0.5816 GB, free: 11.35 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006698/1.122, allocations: 151.7 kB / 0.5817 GB, free: 11.2 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.168e-05/1.122, allocations: 19.92 kB / 0.5817 GB, free: 11.18 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005587/1.123, allocations: 71.34 kB / 0.5818 GB, free: 11.11 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.332e-05/1.123, allocations: 28 kB / 0.5818 GB, free: 11.09 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.608e-06/1.123, allocations: 4 kB / 0.5818 GB, free: 11.08 MB / 426.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0007664/1.123, allocations: 419.2 kB / 0.5822 GB, free: 10.68 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.235e-06/1.123, allocations: 8 kB / 0.5822 GB, free: 10.67 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.386e-05/1.123, allocations: 12.84 kB / 0.5822 GB, free: 10.66 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005238/1.124, allocations: 139.8 kB / 0.5824 GB, free: 10.52 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.719e-05/1.124, allocations: 23.92 kB / 0.5824 GB, free: 10.5 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000468/1.124, allocations: 47.58 kB / 0.5824 GB, free: 10.45 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.921e-05/1.125, allocations: 24 kB / 0.5825 GB, free: 10.43 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 () * 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.0001688/1.125, allocations: 128.8 kB / 0.5826 GB, free: 10.29 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001692/1.125, allocations: 63.16 kB / 0.5826 GB, free: 10.23 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001881/1.125, allocations: 66.17 kB / 0.5827 GB, free: 10.16 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.835e-06/1.125, allocations: 4 kB / 0.5827 GB, free: 10.15 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.816e-06/1.125, allocations: 0 / 0.5827 GB, free: 10.15 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.809e-06/1.125, allocations: 3.984 kB / 0.5827 GB, free: 10.15 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000918/1.126, allocations: 0.5053 MB / 0.5832 GB, free: 9.605 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.064e-06/1.126, allocations: 3.938 kB / 0.5832 GB, free: 9.602 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006445/1.127, allocations: 95.89 kB / 0.5833 GB, free: 9.508 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.675e-05/1.127, allocations: 0 / 0.5833 GB, free: 9.508 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.244e-05/1.127, allocations: 15.92 kB / 0.5833 GB, free: 9.492 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.035e-06/1.127, allocations: 0 / 0.5833 GB, free: 9.492 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.46e-06/1.127, allocations: 4 kB / 0.5833 GB, free: 9.488 MB / 426.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.001034/1.128, allocations: 0.6734 MB / 0.584 GB, free: 8.793 MB / 426.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.001512/1.129, allocations: 1.217 MB / 0.5852 GB, free: 7.547 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000303/1.13, allocations: 172.1 kB / 0.5853 GB, free: 7.359 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001063/1.13, allocations: 0 / 0.5853 GB, free: 7.359 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005706/1.13, allocations: 31.98 kB / 0.5854 GB, free: 7.328 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000111/1.131, allocations: 27.95 kB / 0.5854 GB, free: 7.301 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.362e-05/1.131, allocations: 15.92 kB / 0.5854 GB, free: 7.285 MB / 426.7 MB Notification: Performance of sort global known variables: time 0.0007607/1.131, allocations: 335.2 kB / 0.5857 GB, free: 6.965 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.002867/1.134, allocations: 227.1 kB / 0.5859 GB, free: 6.742 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 () * 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.0003178/1.135, allocations: 99.19 kB / 0.586 GB, free: 6.637 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.001481/1.136, allocations: 0.6197 MB / 0.5866 GB, free: 6.02 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 5.209e-06/1.136, allocations: 0 / 0.5866 GB, free: 6.02 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002932/1.136, allocations: 159.8 kB / 0.5868 GB, free: 5.863 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001072/1.137, allocations: 139.8 kB / 0.5869 GB, free: 5.727 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003115/1.141, allocations: 1.057 MB / 0.588 GB, free: 4.633 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001197/1.142, allocations: 1.011 MB / 0.589 GB, free: 3.598 MB / 426.7 MB Notification: Performance of SimCode: time 1.933e-06/1.142, allocations: 0 / 0.589 GB, free: 3.598 MB / 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