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"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001193/0.001192, allocations: 199 kB / 17.08 MB, free: 5.082 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.449/1.449, allocations: 227.2 MB / 245 MB, free: 7.672 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009465/0.0009464, allocations: 91.58 kB / 297.2 MB, free: 6.211 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.4005/0.4005, allocations: 45.23 MB / 394.6 MB, free: 31.71 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002898/0.0002897, allocations: 8 kB / 468.5 MB, free: 7.668 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4296/0.4299, allocations: 63.24 MB / 0.5193 GB, free: 43.37 MB / 394.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1425/0.5725, allocations: 96.76 MB / 0.6138 GB, free: 8.746 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003372/0.5729, allocations: 75.94 kB / 0.6138 GB, free: 8.676 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.04231/0.6152, allocations: 14.55 MB / 0.628 GB, free: 10.12 MB / 442.7 MB Notification: Performance of FrontEnd: time 2.585e-06/0.6153, allocations: 0 / 0.628 GB, free: 10.12 MB / 442.7 MB Notification: Performance of Transformations before backend: time 9.764e-05/0.6154, allocations: 23.92 kB / 0.6281 GB, free: 10.1 MB / 442.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.00252/0.6179, allocations: 0.9773 MB / 0.629 GB, free: 9.07 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.213e-05/0.618, allocations: 12.03 kB / 0.629 GB, free: 9.059 MB / 442.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002479/0.6183, allocations: 102.5 kB / 0.6291 GB, free: 8.949 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004225/0.6187, allocations: 98.95 kB / 0.6292 GB, free: 8.852 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001264/0.62, allocations: 0.5154 MB / 0.6297 GB, free: 8.293 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.87e-05/0.6201, allocations: 41.31 kB / 0.6298 GB, free: 8.254 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001221/0.6202, allocations: 63.91 kB / 0.6298 GB, free: 8.191 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001185/0.6214, allocations: 0.6116 MB / 0.6304 GB, free: 7.523 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.179e-05/0.6214, allocations: 3.938 kB / 0.6304 GB, free: 7.52 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.114e-05/0.6215, allocations: 24 kB / 0.6305 GB, free: 7.496 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.624e-05/0.6215, allocations: 19.89 kB / 0.6305 GB, free: 7.477 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008824/0.6224, allocations: 403.8 kB / 0.6309 GB, free: 7.078 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004638/0.6271, allocations: 3.028 MB / 0.6338 GB, free: 3.914 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001092/0.6282, allocations: 477.7 kB / 0.6343 GB, free: 3.426 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.86e-05/0.6282, allocations: 7.953 kB / 0.6343 GB, free: 3.418 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.147e-05/0.6283, allocations: 38.56 kB / 0.6343 GB, free: 3.371 MB / 442.7 MB Notification: Performance of pre-optimization done (n=39): time 2.735e-06/0.6283, allocations: 0 / 0.6343 GB, free: 3.371 MB / 442.7 MB Notification: Performance of matching and sorting (n=39): time 0.001469/0.6298, allocations: 0.5812 MB / 0.6349 GB, free: 2.781 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.336e-05/0.6299, allocations: 110.8 kB / 0.635 GB, free: 2.648 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007356/0.6306, allocations: 491.3 kB / 0.6355 GB, free: 2.16 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 5.883e-05/0.6307, allocations: 37.7 kB / 0.6355 GB, free: 2.117 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003628/0.6311, allocations: 368 kB / 0.6358 GB, free: 1.75 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001639/0.6312, allocations: 153.8 kB / 0.636 GB, free: 1.598 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.89e-05/0.6313, allocations: 12 kB / 0.636 GB, free: 1.586 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0002135/0.6315, allocations: 374.8 kB / 0.6364 GB, free: 1.211 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000442/0.6319, allocations: 189.2 kB / 0.6365 GB, free: 1.023 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006096/0.6326, allocations: 401.6 kB / 0.6369 GB, free: 0.5391 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005225/0.6331, allocations: 245.1 kB / 0.6372 GB, free: 308 kB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.654e-06/0.6331, allocations: 4 kB / 0.6372 GB, free: 304 kB / 442.7 MB Notification: Performance of matching and sorting (n=78) (initialization): time 0.001356/0.6345, allocations: 0.6642 MB / 0.6378 GB, free: 15.62 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.001312/0.6358, allocations: 2.61 MB / 0.6404 GB, free: 12.8 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.259e-05/0.6358, allocations: 8 kB / 0.6404 GB, free: 12.8 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.763e-05/0.6359, allocations: 15.94 kB / 0.6404 GB, free: 12.78 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005735/0.6365, allocations: 143.8 kB / 0.6405 GB, free: 12.64 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.405e-05/0.6365, allocations: 15.94 kB / 0.6405 GB, free: 12.62 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005546/0.6371, allocations: 75.41 kB / 0.6406 GB, free: 12.55 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.303e-05/0.6371, allocations: 24 kB / 0.6406 GB, free: 12.53 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.283e-05/0.6372, allocations: 4 kB / 0.6406 GB, free: 12.52 MB / 458.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001061/0.6382, allocations: 0.5585 MB / 0.6412 GB, free: 11.96 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.792e-05/0.6383, allocations: 12.16 kB / 0.6412 GB, free: 11.95 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.644e-05/0.6383, allocations: 15.83 kB / 0.6412 GB, free: 11.94 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005249/0.6388, allocations: 135.8 kB / 0.6413 GB, free: 11.81 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.659e-05/0.6388, allocations: 16.02 kB / 0.6413 GB, free: 11.79 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004971/0.6393, allocations: 63.52 kB / 0.6414 GB, free: 11.73 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.059e-05/0.6394, allocations: 31.98 kB / 0.6414 GB, free: 11.7 MB / 458.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.0003906/0.6398, allocations: 280.9 kB / 0.6417 GB, free: 11.41 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001623/0.64, allocations: 67.16 kB / 0.6418 GB, free: 11.35 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001553/0.6401, allocations: 70.17 kB / 0.6418 GB, free: 11.28 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.017e-05/0.6401, allocations: 7.953 kB / 0.6418 GB, free: 11.27 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.215e-05/0.6402, allocations: 0 / 0.6418 GB, free: 11.27 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.965e-06/0.6402, allocations: 3.984 kB / 0.6418 GB, free: 11.27 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001068/0.6413, allocations: 0.5752 MB / 0.6424 GB, free: 10.64 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.815e-06/0.6413, allocations: 0 / 0.6424 GB, free: 10.64 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005208/0.6418, allocations: 91.89 kB / 0.6425 GB, free: 10.55 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.179e-05/0.6418, allocations: 11.92 kB / 0.6425 GB, free: 10.54 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.22e-05/0.6419, allocations: 8 kB / 0.6425 GB, free: 10.53 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.276e-06/0.6419, allocations: 0 / 0.6425 GB, free: 10.53 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.777e-06/0.6419, allocations: 3.953 kB / 0.6425 GB, free: 10.53 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001411/0.6433, allocations: 0.8295 MB / 0.6433 GB, free: 9.676 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002656/0.6436, allocations: 172.4 kB / 0.6435 GB, free: 9.488 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.568e-05/0.6437, allocations: 12 kB / 0.6435 GB, free: 9.477 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004011/0.6441, allocations: 31.94 kB / 0.6435 GB, free: 9.445 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001045/0.6442, allocations: 35.94 kB / 0.6436 GB, free: 9.41 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.475e-05/0.6443, allocations: 8 kB / 0.6436 GB, free: 9.402 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.0004688/0.6447, allocations: 379.1 kB / 0.6439 GB, free: 9.035 MB / 458.7 MB Notification: Performance of sort global known variables: time 1.31e-07/0.6447, allocations: 4 kB / 0.6439 GB, free: 9.031 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.0009299/0.6457, allocations: 247.1 kB / 0.6442 GB, free: 8.789 MB / 458.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.001988/0.6477, allocations: 1.451 MB / 0.6456 GB, free: 7.305 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.001586/0.6493, allocations: 0.7515 MB / 0.6463 GB, free: 6.555 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 3.346e-06/0.6493, allocations: 0 / 0.6463 GB, free: 6.555 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004065/0.6497, allocations: 200.5 kB / 0.6465 GB, free: 6.359 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008689/0.6506, allocations: 172.2 kB / 0.6467 GB, free: 6.199 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009343/0.6599, allocations: 8.491 MB / 0.655 GB, free: 13.52 MB / 474.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000683/0.6607, allocations: 0.9269 MB / 0.6559 GB, free: 12.57 MB / 474.7 MB Notification: Performance of simCode: alias equations: time 0.0004927/0.6612, allocations: 80.84 kB / 0.656 GB, free: 12.49 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003956/0.6616, allocations: 243.4 kB / 0.6562 GB, free: 12.25 MB / 474.7 MB Notification: Performance of SimCode: time 1.313e-06/0.6616, allocations: 0 / 0.6562 GB, free: 12.25 MB / 474.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03448/0.6961, allocations: 11.9 MB / 0.6678 GB, free: 0.5312 MB / 474.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002236/0.6964, allocations: 161.3 kB / 0.668 GB, free: 300 kB / 474.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.333/3.03, allocations: 0 / 0.668 GB, free: 300 kB / 474.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