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.000959/0.000959, allocations: 180.9 kB / 8.006 MB, free: 1.07 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.636/1.636, allocations: 205.3 MB / 213.7 MB, free: 1.75 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008606/0.0008602, allocations: 98.28 kB / 261.8 MB, free: 1.68 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.1967/0.1967, allocations: 43.49 MB / 353.2 MB, free: 296 kB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 1.867e-05/1.896e-05, allocations: 4 kB / 418.3 MB, free: 28.48 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1249/0.125, allocations: 58.86 MB / 477.2 MB, free: 1.578 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.423/0.5481, allocations: 93.67 MB / 0.5575 GB, free: 1.605 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002108/0.5483, allocations: 71.81 kB / 0.5576 GB, free: 1.574 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.03849/0.5868, allocations: 14.26 MB / 0.5715 GB, free: 5.828 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.815e-06/0.5869, allocations: 0 / 0.5715 GB, free: 5.828 MB / 378.7 MB Notification: Performance of Transformations before backend: time 5.759e-05/0.587, allocations: 23.92 kB / 0.5715 GB, free: 5.805 MB / 378.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.001486/0.5885, allocations: 0.8747 MB / 0.5724 GB, free: 4.926 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.471e-05/0.5885, allocations: 12.03 kB / 0.5724 GB, free: 4.914 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001504/0.5887, allocations: 94.91 kB / 0.5725 GB, free: 4.82 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008472/0.5895, allocations: 0.5083 MB / 0.573 GB, free: 4.344 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.135e-05/0.5896, allocations: 16 kB / 0.573 GB, free: 4.328 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.92e-05/0.5896, allocations: 47.72 kB / 0.573 GB, free: 4.285 MB / 378.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0005043/0.5902, allocations: 289.5 kB / 0.5733 GB, free: 4.109 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007437/0.5909, allocations: 0.4909 MB / 0.5738 GB, free: 3.676 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.049e-05/0.5909, allocations: 3.938 kB / 0.5738 GB, free: 3.672 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.477e-05/0.591, allocations: 4 kB / 0.5738 GB, free: 3.668 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.514e-05/0.591, allocations: 15.95 kB / 0.5738 GB, free: 3.652 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003784/0.5948, allocations: 2.934 MB / 0.5767 GB, free: 0.9648 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005691/0.5954, allocations: 345.5 kB / 0.577 GB, free: 0.7266 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001817/0.5956, allocations: 129.3 kB / 0.5771 GB, free: 0.6445 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.563e-05/0.5956, allocations: 4.531 kB / 0.5771 GB, free: 0.6406 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.112e-05/0.5957, allocations: 41.5 kB / 0.5772 GB, free: 0.5938 MB / 378.7 MB Notification: Performance of pre-optimization done (n=39): time 2.294e-06/0.5957, allocations: 0 / 0.5772 GB, free: 0.5938 MB / 378.7 MB Notification: Performance of matching and sorting (n=39): time 0.0006276/0.5963, allocations: 339.7 kB / 0.5775 GB, free: 336 kB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.946e-05/0.5964, allocations: 106.8 kB / 0.5776 GB, free: 204 kB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005006/0.5969, allocations: 450.6 kB / 0.578 GB, free: 15.85 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 3.514e-05/0.597, allocations: 25.7 kB / 0.578 GB, free: 15.82 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002636/0.5972, allocations: 374.8 kB / 0.5784 GB, free: 15.57 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001133/0.5973, allocations: 145.7 kB / 0.5785 GB, free: 15.45 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.146e-05/0.5974, allocations: 0 / 0.5785 GB, free: 15.45 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0001725/0.5976, allocations: 379.7 kB / 0.5789 GB, free: 15.09 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002124/0.5978, allocations: 135.4 kB / 0.579 GB, free: 15.02 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000347/0.5981, allocations: 346.9 kB / 0.5794 GB, free: 14.66 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002729/0.5984, allocations: 179.4 kB / 0.5795 GB, free: 14.54 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.371e-06/0.5984, allocations: 4 kB / 0.5795 GB, free: 14.54 MB / 394.7 MB Notification: Performance of matching and sorting (n=78) (initialization): time 0.0007837/0.5992, allocations: 0.5122 MB / 0.58 GB, free: 14.13 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.001148/0.6004, allocations: 2.617 MB / 0.5826 GB, free: 11.36 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.27e-05/0.6004, allocations: 8 kB / 0.5826 GB, free: 11.35 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.755e-05/0.6004, allocations: 12 kB / 0.5826 GB, free: 11.34 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005722/0.601, allocations: 147.5 kB / 0.5828 GB, free: 11.2 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.546e-05/0.601, allocations: 11.94 kB / 0.5828 GB, free: 11.18 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004469/0.6015, allocations: 67.44 kB / 0.5828 GB, free: 11.12 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.281e-05/0.6015, allocations: 31.38 kB / 0.5829 GB, free: 11.09 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.123e-05/0.6016, allocations: 4 kB / 0.5829 GB, free: 11.09 MB / 394.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0006631/0.6022, allocations: 411.2 kB / 0.5833 GB, free: 10.79 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.185e-06/0.6022, allocations: 8.875 kB / 0.5833 GB, free: 10.79 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.257e-05/0.6023, allocations: 12 kB / 0.5833 GB, free: 10.77 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004836/0.6028, allocations: 142.4 kB / 0.5834 GB, free: 10.64 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.318e-05/0.6028, allocations: 19.92 kB / 0.5834 GB, free: 10.62 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003451/0.6031, allocations: 47.58 kB / 0.5835 GB, free: 10.57 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.794e-05/0.6032, allocations: 26.95 kB / 0.5835 GB, free: 10.55 MB / 394.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.0001557/0.6033, allocations: 127.6 kB / 0.5836 GB, free: 10.43 MB / 394.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0005755/0.6039, allocations: 340.7 kB / 0.584 GB, free: 10.16 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001048/0.604, allocations: 63.25 kB / 0.584 GB, free: 10.1 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001866/0.6042, allocations: 62.36 kB / 0.5841 GB, free: 10.06 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.955e-06/0.6042, allocations: 7.953 kB / 0.5841 GB, free: 10.05 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.324e-06/0.6043, allocations: 3.984 kB / 0.5841 GB, free: 10.05 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.192e-06/0.6043, allocations: 0 / 0.5841 GB, free: 10.05 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007343/0.605, allocations: 0.5086 MB / 0.5846 GB, free: 9.625 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.265e-06/0.605, allocations: 0 / 0.5846 GB, free: 9.625 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00051/0.6055, allocations: 94.64 kB / 0.5847 GB, free: 9.535 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.062e-06/0.6056, allocations: 3.984 kB / 0.5847 GB, free: 9.531 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.237e-05/0.6056, allocations: 11 kB / 0.5847 GB, free: 9.523 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.044e-06/0.6056, allocations: 3.938 kB / 0.5847 GB, free: 9.52 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.687e-06/0.6056, allocations: 4 kB / 0.5847 GB, free: 9.516 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008006/0.6064, allocations: 0.678 MB / 0.5854 GB, free: 8.965 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000202/0.6066, allocations: 171 kB / 0.5855 GB, free: 8.797 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.276e-05/0.6067, allocations: 10.44 kB / 0.5855 GB, free: 8.789 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003588/0.6071, allocations: 27.97 kB / 0.5856 GB, free: 8.762 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.303e-05/0.6072, allocations: 30.34 kB / 0.5856 GB, free: 8.734 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.377e-05/0.6072, allocations: 15.31 kB / 0.5856 GB, free: 8.723 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.0003624/0.6076, allocations: 333.6 kB / 0.5859 GB, free: 8.48 MB / 394.7 MB Notification: Performance of sort global known variables: time 1.6e-07/0.6076, allocations: 0 / 0.5859 GB, free: 8.48 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.0008443/0.6084, allocations: 215.2 kB / 0.5861 GB, free: 8.27 MB / 394.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.00115/0.6096, allocations: 1.301 MB / 0.5874 GB, free: 7.09 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.00102/0.6106, allocations: 0.5972 MB / 0.588 GB, free: 6.68 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 3.967e-06/0.6106, allocations: 0 / 0.588 GB, free: 6.68 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002171/0.6109, allocations: 156.8 kB / 0.5881 GB, free: 6.574 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008804/0.6118, allocations: 151.5 kB / 0.5883 GB, free: 6.457 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002199/0.614, allocations: 1.183 MB / 0.5894 GB, free: 5.324 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004837/0.6145, allocations: 0.9317 MB / 0.5903 GB, free: 4.367 MB / 394.7 MB Notification: Performance of simCode: alias equations: time 0.0005121/0.615, allocations: 119.1 kB / 0.5904 GB, free: 4.25 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000308/0.6153, allocations: 232.9 kB / 0.5907 GB, free: 4.195 MB / 394.7 MB Notification: Performance of SimCode: time 2.6e-07/0.6153, allocations: 0 / 0.5907 GB, free: 4.195 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03669/0.652, allocations: 11.89 MB / 0.6023 GB, free: 8.344 MB / 410.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002625/0.6523, allocations: 129.5 kB / 0.6024 GB, free: 8.145 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.388/3.04, allocations: 8 kB / 0.6024 GB, free: 8.137 MB / 410.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