Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_cpp_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_cpp_ModelicaTest_Blocks_UnitDeduction",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Blocks.UnitDeduction,fileNamePrefix="ModelicaTest_3_2_3_cpp_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.003032/0.003037, allocations: 187.5 kB / 16.4 MB, free: 5.625 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.373/2.373, allocations: 205.4 MB / 222.5 MB, free: 13.85 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.001244/0.001244, allocations: 94.86 kB / 270.9 MB, free: 13.38 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.3019/0.3019, allocations: 43.56 MB / 362.7 MB, free: 11.32 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000492/0.0004923, allocations: 12 kB / 431.5 MB, free: 20.18 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1312/0.1318, allocations: 58.86 MB / 490.3 MB, free: 9.246 MB / 330.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.UnitDeduction): time 0.006131/0.138, allocations: 3.367 MB / 493.7 MB, free: 5.852 MB / 330.7 MB Notification: Performance of NFInst.instExpressions: time 0.003614/0.1417, allocations: 1.197 MB / 494.9 MB, free: 4.648 MB / 330.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007163/0.1424, allocations: 23.88 kB / 494.9 MB, free: 4.625 MB / 330.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001767/0.1426, allocations: 63.38 kB / 495 MB, free: 4.562 MB / 330.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0009016/0.1435, allocations: 187.4 kB / 495.1 MB, free: 4.379 MB / 330.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001161/0.1447, allocations: 287.5 kB / 495.4 MB, free: 4.098 MB / 330.7 MB Notification: Performance of NFFlatten.flatten: time 0.001388/0.1461, allocations: 0.5469 MB / 496 MB, free: 3.547 MB / 330.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005325/0.1467, allocations: 221.1 kB / 496.2 MB, free: 3.32 MB / 330.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000776/0.1475, allocations: 262.8 kB / 496.4 MB, free: 3.062 MB / 330.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004723/0.148, allocations: 250.5 kB / 496.7 MB, free: 2.816 MB / 330.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001054/0.1481, allocations: 27.94 kB / 496.7 MB, free: 2.789 MB / 330.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001013/0.1482, allocations: 24 kB / 496.7 MB, free: 2.766 MB / 330.7 MB Notification: Performance of NFScalarize.scalarize: time 0.000136/0.1483, allocations: 99.52 kB / 496.8 MB, free: 2.668 MB / 330.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001912/0.1485, allocations: 141.3 kB / 497 MB, free: 2.523 MB / 330.7 MB Notification: Performance of NFConvertDAE.convert: time 0.00145/0.15, allocations: 0.5415 MB / 497.5 MB, free: 1.98 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 7.294e-06/0.1501, allocations: 0 / 497.5 MB, free: 1.98 MB / 330.7 MB Notification: Performance of FrontEnd: time 2.277e-05/0.1501, allocations: 0 / 497.5 MB, free: 1.98 MB / 330.7 MB Notification: Performance of Transformations before backend: time 3.908e-05/0.1502, allocations: 7.875 kB / 497.5 MB, free: 1.973 MB / 330.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.004652/0.1549, allocations: 0.9464 MB / 498.5 MB, free: 0.9766 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.31e-05/0.155, allocations: 8.031 kB / 498.5 MB, free: 0.9688 MB / 330.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002489/0.1552, allocations: 102.5 kB / 498.6 MB, free: 0.8594 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003008/0.1556, allocations: 90.91 kB / 498.7 MB, free: 0.7695 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001945/0.1575, allocations: 494.5 kB / 499.1 MB, free: 252 kB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001144/0.1577, allocations: 41.31 kB / 499.2 MB, free: 208 kB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002455/0.158, allocations: 56 kB / 499.2 MB, free: 152 kB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002511/0.1605, allocations: 0.6152 MB / 499.9 MB, free: 15.48 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.462e-05/0.1606, allocations: 7.906 kB / 499.9 MB, free: 15.47 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002368/0.1609, allocations: 24 kB / 499.9 MB, free: 15.45 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.098e-05/0.1609, allocations: 19.95 kB / 499.9 MB, free: 15.43 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003413/0.1644, allocations: 398.2 kB / 0.4886 GB, free: 15.04 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01403/0.1785, allocations: 3.033 MB / 0.4915 GB, free: 11.87 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002749/0.1813, allocations: 476 kB / 0.492 GB, free: 11.39 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.249e-05/0.1814, allocations: 7.953 kB / 0.492 GB, free: 11.38 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.104e-05/0.1815, allocations: 42.59 kB / 0.492 GB, free: 11.33 MB / 346.7 MB Notification: Performance of pre-optimization done (n=39): time 3.517e-06/0.1815, allocations: 0 / 0.492 GB, free: 11.33 MB / 346.7 MB Notification: Performance of matching and sorting (n=39): time 0.002264/0.1837, allocations: 0.5721 MB / 0.4926 GB, free: 10.75 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.987e-05/0.1839, allocations: 118.7 kB / 0.4927 GB, free: 10.61 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001029/0.1849, allocations: 0.5392 MB / 0.4932 GB, free: 10.07 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 8.081e-05/0.185, allocations: 33.7 kB / 0.4933 GB, free: 10.03 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003736/0.1854, allocations: 398.5 kB / 0.4936 GB, free: 9.633 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002009/0.1856, allocations: 149.9 kB / 0.4938 GB, free: 9.484 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.336e-05/0.1857, allocations: 12 kB / 0.4938 GB, free: 9.473 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001715/0.1859, allocations: 334.8 kB / 0.4941 GB, free: 9.137 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007486/0.1866, allocations: 185.2 kB / 0.4943 GB, free: 8.953 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009355/0.1876, allocations: 397 kB / 0.4947 GB, free: 8.473 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008428/0.1884, allocations: 231.7 kB / 0.4949 GB, free: 8.246 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.673e-06/0.1885, allocations: 4 kB / 0.4949 GB, free: 8.242 MB / 346.7 MB Notification: Performance of matching and sorting (n=78) (initialization): time 0.002094/0.1906, allocations: 0.6301 MB / 0.4955 GB, free: 7.605 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.001378/0.192, allocations: 2.612 MB / 0.4981 GB, free: 4.789 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.013e-05/0.192, allocations: 8 kB / 0.4981 GB, free: 4.781 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 4.418e-05/0.1921, allocations: 12 kB / 0.4981 GB, free: 4.77 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001202/0.1933, allocations: 147.7 kB / 0.4982 GB, free: 4.625 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.67e-05/0.1934, allocations: 12 kB / 0.4982 GB, free: 4.613 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007621/0.1941, allocations: 83.25 kB / 0.4983 GB, free: 4.531 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.41e-05/0.1942, allocations: 28 kB / 0.4983 GB, free: 4.504 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.549e-05/0.1943, allocations: 4 kB / 0.4983 GB, free: 4.5 MB / 346.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001818/0.1961, allocations: 0.5466 MB / 0.4989 GB, free: 3.953 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.757e-05/0.1962, allocations: 8 kB / 0.4989 GB, free: 3.945 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.244e-05/0.1962, allocations: 16.02 kB / 0.4989 GB, free: 3.93 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001056/0.1973, allocations: 139.8 kB / 0.499 GB, free: 3.793 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.258e-05/0.1973, allocations: 11.94 kB / 0.4991 GB, free: 3.781 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005222/0.1978, allocations: 67.52 kB / 0.4991 GB, free: 3.715 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.234e-05/0.1979, allocations: 24 kB / 0.4991 GB, free: 3.691 MB / 346.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.0005126/0.1984, allocations: 272.9 kB / 0.4994 GB, free: 3.414 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002216/0.1987, allocations: 63.25 kB / 0.4995 GB, free: 3.352 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001927/0.1989, allocations: 78.16 kB / 0.4995 GB, free: 3.273 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.176e-05/0.1989, allocations: 7.953 kB / 0.4995 GB, free: 3.266 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.727e-06/0.1989, allocations: 0 / 0.4995 GB, free: 3.266 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.995e-06/0.1989, allocations: 0 / 0.4995 GB, free: 3.266 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00125/0.2002, allocations: 0.5673 MB / 0.5001 GB, free: 2.648 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.644e-06/0.2002, allocations: 0 / 0.5001 GB, free: 2.648 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001083/0.2013, allocations: 103.8 kB / 0.5002 GB, free: 2.547 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.088e-05/0.2014, allocations: 0 / 0.5002 GB, free: 2.547 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.097e-05/0.2014, allocations: 8 kB / 0.5002 GB, free: 2.539 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.917e-06/0.2014, allocations: 4 kB / 0.5002 GB, free: 2.535 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.961e-06/0.2015, allocations: 7.891 kB / 0.5002 GB, free: 2.527 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002365/0.2038, allocations: 0.8325 MB / 0.501 GB, free: 1.676 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003715/0.2043, allocations: 172.3 kB / 0.5012 GB, free: 1.488 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000116/0.2044, allocations: 12 kB / 0.5012 GB, free: 1.477 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006774/0.2051, allocations: 39.92 kB / 0.5012 GB, free: 1.438 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001349/0.2052, allocations: 27.95 kB / 0.5013 GB, free: 1.41 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.245e-05/0.2053, allocations: 8 kB / 0.5013 GB, free: 1.402 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.0007064/0.206, allocations: 371.1 kB / 0.5016 GB, free: 1.043 MB / 346.7 MB Notification: Performance of sort global known variables: time 6.21e-07/0.206, allocations: 4 kB / 0.5016 GB, free: 1.039 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.001289/0.2073, allocations: 243.1 kB / 0.5019 GB, free: 0.8008 MB / 346.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 16 (Wsec.y,Vsec.y,Asec.y,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) * 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.002833/0.2102, allocations: 1.437 MB / 0.5033 GB, free: 15.33 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.002664/0.2129, allocations: 0.7455 MB / 0.504 GB, free: 14.59 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 5.851e-06/0.2129, allocations: 4 kB / 0.504 GB, free: 14.59 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0007457/0.2137, allocations: 204.6 kB / 0.5042 GB, free: 14.39 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001449/0.2152, allocations: 158.5 kB / 0.5043 GB, free: 14.24 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0124/0.2276, allocations: 8.504 MB / 0.5126 GB, free: 5.527 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000686/0.2283, allocations: 0.9264 MB / 0.5136 GB, free: 4.574 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006703/0.229, allocations: 243.4 kB / 0.5138 GB, free: 4.336 MB / 362.7 MB Notification: Performance of SimCode: time 1.222e-06/0.229, allocations: 0 / 0.5138 GB, free: 4.336 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.335/3.564, allocations: 10.34 MB / 0.5239 GB, free: 43.33 MB / 362.7 MB (rm -f ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.UnitDeduction.pipe ; mkfifo ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.UnitDeduction.pipe ; head -c 1048576 < ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.UnitDeduction.pipe >> ../files/ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.UnitDeduction.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.UnitDeduction_res.mat --tempDir=temp_ModelicaTest_3_2_3_cpp_ModelicaTest_Blocks_UnitDeduction_fmu --startTime=0 --stopTime=1.01 --timeout=50 --tolerance=1e-06 ModelicaTest_3_2_3_cpp_ModelicaTest_Blocks_UnitDeduction.fmu > ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.UnitDeduction.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.UnitDeduction_res.mat does not exist to compare? outputFormat=mat