Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Blocks.UnitDeduction.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Blocks.UnitDeduction,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Blocks_UnitDeduction",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Blocks.UnitDeduction,fileNamePrefix="ModelicaTest_trunk_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 trunk/package.mo): time 0.00108/0.00108, allocations: 193.7 kB / 8.537 MB, free: 1.828 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.176/1.176, allocations: 225.5 MB / 234.4 MB, free: 3.402 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008768/0.000877, allocations: 97.31 kB / 286.3 MB, free: 5.234 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.1679/0.1679, allocations: 45.14 MB / 383.3 MB, free: 0.5664 MB / 314.7 MB Notification: Performance of FrontEnd - loaded program: time 0.2176/0.3855, allocations: 69.37 MB / 452.7 MB, free: 76.09 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09641/0.4819, allocations: 63.24 MB / 0.5039 GB, free: 12.93 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.299/0.781, allocations: 95.94 MB / 0.5975 GB, free: 6.91 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001941/0.7812, allocations: 66.03 kB / 0.5976 GB, free: 6.879 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.04114/0.8224, allocations: 15.03 MB / 0.6123 GB, free: 10.34 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.539e-05/0.8224, allocations: 8 kB / 0.6123 GB, free: 10.33 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003513/0.8228, allocations: 107 kB / 0.6124 GB, free: 10.23 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009749/0.8238, allocations: 0.5061 MB / 0.6129 GB, free: 9.746 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.234e-05/0.8238, allocations: 23.91 kB / 0.6129 GB, free: 9.723 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.557e-05/0.8239, allocations: 38.86 kB / 0.613 GB, free: 9.688 MB / 410.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0005893/0.8245, allocations: 282.7 kB / 0.6132 GB, free: 9.52 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008149/0.8254, allocations: 0.4984 MB / 0.6137 GB, free: 9.078 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.657e-05/0.8254, allocations: 7.984 kB / 0.6137 GB, free: 9.07 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.445e-05/0.8254, allocations: 0 / 0.6137 GB, free: 9.07 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.617e-05/0.8255, allocations: 12 kB / 0.6137 GB, free: 9.059 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003734/0.8292, allocations: 2.904 MB / 0.6166 GB, free: 6.406 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005402/0.8298, allocations: 334.1 kB / 0.6169 GB, free: 6.164 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002043/0.83, allocations: 128.6 kB / 0.617 GB, free: 6.082 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.433e-05/0.83, allocations: 12.03 kB / 0.617 GB, free: 6.07 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.563e-05/0.8301, allocations: 38.09 kB / 0.6171 GB, free: 6.027 MB / 410.7 MB Notification: Performance of pre-optimization done (n=39): time 3.687e-06/0.8301, allocations: 3.938 kB / 0.6171 GB, free: 6.023 MB / 410.7 MB Notification: Performance of matching and sorting (n=39): time 0.0006456/0.8307, allocations: 328.4 kB / 0.6174 GB, free: 5.77 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.965e-05/0.8308, allocations: 107 kB / 0.6175 GB, free: 5.641 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004975/0.8313, allocations: 450.9 kB / 0.6179 GB, free: 5.297 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 3.355e-05/0.8314, allocations: 25.7 kB / 0.6179 GB, free: 5.266 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001631/0.8315, allocations: 282.7 kB / 0.6182 GB, free: 5.02 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001113/0.8316, allocations: 154.6 kB / 0.6183 GB, free: 4.887 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.152e-05/0.8317, allocations: 0 / 0.6183 GB, free: 4.887 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0001245/0.8318, allocations: 369.7 kB / 0.6187 GB, free: 4.543 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002186/0.832, allocations: 133 kB / 0.6188 GB, free: 4.473 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003195/0.8324, allocations: 348.6 kB / 0.6192 GB, free: 4.109 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003042/0.8327, allocations: 184.5 kB / 0.6193 GB, free: 3.992 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.666e-06/0.8327, allocations: 0 / 0.6193 GB, free: 3.992 MB / 410.7 MB Notification: Performance of matching and sorting (n=78) (initialization): time 0.0008704/0.8336, allocations: 0.5119 MB / 0.6198 GB, free: 3.582 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.000983/0.8346, allocations: 2.605 MB / 0.6224 GB, free: 0.8203 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.689e-05/0.8346, allocations: 11.91 kB / 0.6224 GB, free: 0.8086 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.75e-05/0.8346, allocations: 12 kB / 0.6224 GB, free: 0.7969 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005928/0.8352, allocations: 152.7 kB / 0.6225 GB, free: 0.6523 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.362e-05/0.8352, allocations: 15.88 kB / 0.6226 GB, free: 0.6367 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004737/0.8357, allocations: 63.52 kB / 0.6226 GB, free: 0.5742 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.477e-05/0.8358, allocations: 29.11 kB / 0.6226 GB, free: 0.5508 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.016e-05/0.8358, allocations: 6.656 kB / 0.6227 GB, free: 0.5469 MB / 410.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0007138/0.8365, allocations: 420.6 kB / 0.6231 GB, free: 248 kB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.356e-06/0.8365, allocations: 4.234 kB / 0.6231 GB, free: 244 kB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.526e-05/0.8366, allocations: 16.78 kB / 0.6231 GB, free: 228 kB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005323/0.8371, allocations: 146.2 kB / 0.6232 GB, free: 88 kB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.199e-05/0.8371, allocations: 15.92 kB / 0.6232 GB, free: 72 kB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003827/0.8375, allocations: 47.58 kB / 0.6233 GB, free: 24 kB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.804e-05/0.8376, allocations: 41.53 kB / 0.6233 GB, free: 15.98 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.000125/0.8377, allocations: 121.2 kB / 0.6234 GB, free: 15.86 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001186/0.8378, allocations: 67.16 kB / 0.6235 GB, free: 15.8 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001155/0.838, allocations: 62.19 kB / 0.6236 GB, free: 15.76 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.691e-06/0.838, allocations: 7.938 kB / 0.6236 GB, free: 15.75 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.3e-06/0.838, allocations: 0 / 0.6236 GB, free: 15.75 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.652e-06/0.838, allocations: 3.984 kB / 0.6236 GB, free: 15.75 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000673/0.8387, allocations: 0.5055 MB / 0.6241 GB, free: 15.32 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.238e-06/0.8387, allocations: 7.922 kB / 0.6241 GB, free: 15.31 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005482/0.8392, allocations: 94.77 kB / 0.6242 GB, free: 15.22 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.69e-06/0.8393, allocations: 0 / 0.6242 GB, free: 15.22 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.12e-05/0.8393, allocations: 6.875 kB / 0.6242 GB, free: 15.22 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.911e-06/0.8393, allocations: 7.984 kB / 0.6242 GB, free: 15.21 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.066e-06/0.8393, allocations: 0 / 0.6242 GB, free: 15.21 MB / 426.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0008517/0.8402, allocations: 0.6688 MB / 0.6248 GB, free: 14.67 MB / 426.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.001236/0.8414, allocations: 1.216 MB / 0.626 GB, free: 13.66 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002227/0.8417, allocations: 170.4 kB / 0.6262 GB, free: 13.49 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.802e-05/0.8418, allocations: 7.984 kB / 0.6262 GB, free: 13.48 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004188/0.8422, allocations: 27.98 kB / 0.6262 GB, free: 13.46 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.213e-05/0.8423, allocations: 31.17 kB / 0.6262 GB, free: 13.43 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.168e-05/0.8423, allocations: 15.36 kB / 0.6263 GB, free: 13.42 MB / 426.7 MB Notification: Performance of sort global known variables: time 0.0003621/0.8427, allocations: 331.1 kB / 0.6266 GB, free: 13.18 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.002022/0.8447, allocations: 219.1 kB / 0.6268 GB, free: 12.96 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.0001527/0.8449, allocations: 110.9 kB / 0.6269 GB, free: 12.86 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.0009878/0.8459, allocations: 0.6154 MB / 0.6275 GB, free: 12.43 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 2.965e-06/0.8459, allocations: 0 / 0.6275 GB, free: 12.43 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002324/0.8461, allocations: 154.8 kB / 0.6276 GB, free: 12.32 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008056/0.8469, allocations: 156.7 kB / 0.6278 GB, free: 12.2 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002028/0.849, allocations: 1.04 MB / 0.6288 GB, free: 11.21 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007337/0.8497, allocations: 1.011 MB / 0.6298 GB, free: 10.18 MB / 426.7 MB Notification: Performance of SimCode: time 3.91e-07/0.8497, allocations: 0 / 0.6298 GB, free: 10.18 MB / 426.7 MB (rm -f ModelicaTest_trunk_ModelicaTest.Blocks.UnitDeduction.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Blocks.UnitDeduction.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Blocks.UnitDeduction.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Blocks.UnitDeduction.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_trunk_ModelicaTest.Blocks.UnitDeduction_res.mat --tempDir=temp_ModelicaTest_trunk_ModelicaTest_Blocks_UnitDeduction_fmu --startTime=0 --stopTime=1.01 --timeout=50 --tolerance=1e-06 ModelicaTest_trunk_ModelicaTest_Blocks_UnitDeduction.fmu > ModelicaTest_trunk_ModelicaTest.Blocks.UnitDeduction.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_trunk_ModelicaTest.Blocks.UnitDeduction_res.mat does not exist to compare? outputFormat=mat