Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.KinematicPTP.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.KinematicPTP,fileNamePrefix="ModelicaTest_3_2_3_cpp_ModelicaTest_Blocks_KinematicPTP",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Blocks.KinematicPTP,fileNamePrefix="ModelicaTest_3_2_3_cpp_ModelicaTest_Blocks_KinematicPTP",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.002977/0.002977, allocations: 188.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.338/2.338, allocations: 205.4 MB / 222.5 MB, free: 13.76 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.002041/0.002041, allocations: 82.94 kB / 270.9 MB, free: 13.3 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.3232/0.3232, allocations: 43.56 MB / 362.7 MB, free: 11.3 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0005259/0.0005261, allocations: 12 kB / 431.5 MB, free: 20.19 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1318/0.1324, allocations: 58.86 MB / 490.3 MB, free: 9.262 MB / 330.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.KinematicPTP): time 0.003453/0.1359, allocations: 1.968 MB / 492.3 MB, free: 7.273 MB / 330.7 MB Notification: Performance of NFInst.instExpressions: time 0.002454/0.1384, allocations: 0.9605 MB / 493.2 MB, free: 6.305 MB / 330.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002264/0.1386, allocations: 3.938 kB / 493.2 MB, free: 6.301 MB / 330.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0003625/0.139, allocations: 75.58 kB / 493.3 MB, free: 6.227 MB / 330.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0003449/0.1394, allocations: 87.73 kB / 493.4 MB, free: 6.141 MB / 330.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008964/0.1403, allocations: 219.6 kB / 493.6 MB, free: 5.926 MB / 330.7 MB Notification: Performance of NFFlatten.flatten: time 0.0008148/0.1411, allocations: 434.9 kB / 494 MB, free: 5.5 MB / 330.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002279/0.1414, allocations: 61.22 kB / 494.1 MB, free: 5.434 MB / 330.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004761/0.1419, allocations: 263.1 kB / 494.4 MB, free: 5.176 MB / 330.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005285/0.1424, allocations: 290.9 kB / 494.6 MB, free: 4.891 MB / 330.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001066/0.1425, allocations: 35.94 kB / 494.7 MB, free: 4.855 MB / 330.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001113/0.1426, allocations: 28 kB / 494.7 MB, free: 4.828 MB / 330.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0002499/0.1429, allocations: 159.5 kB / 494.9 MB, free: 4.672 MB / 330.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001267/0.143, allocations: 93.45 kB / 494.9 MB, free: 4.574 MB / 330.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0005651/0.1436, allocations: 379.3 kB / 495.3 MB, free: 4.203 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.846e-06/0.1436, allocations: 0 / 495.3 MB, free: 4.203 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.984e-06/0.1437, allocations: 0 / 495.3 MB, free: 4.203 MB / 330.7 MB Notification: Performance of Transformations before backend: time 7.885e-06/0.1437, allocations: 4 kB / 495.3 MB, free: 4.199 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: 100 * Number of variables: 100 Notification: Performance of Generate backend data structure: time 0.003784/0.1475, allocations: 0.9276 MB / 496.3 MB, free: 3.223 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.03e-05/0.1475, allocations: 8.031 kB / 496.3 MB, free: 3.215 MB / 330.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002049/0.1478, allocations: 94.47 kB / 496.4 MB, free: 3.113 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001798/0.148, allocations: 67.44 kB / 496.4 MB, free: 3.047 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000849/0.1488, allocations: 354.1 kB / 496.8 MB, free: 2.664 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005933/0.1494, allocations: 271.1 kB / 497 MB, free: 2.363 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000147/0.1496, allocations: 44 kB / 497.1 MB, free: 2.32 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003888/0.1535, allocations: 0.8671 MB / 497.9 MB, free: 1.41 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.795e-05/0.1536, allocations: 11.84 kB / 497.9 MB, free: 1.398 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.512e-05/0.1537, allocations: 19.95 kB / 498 MB, free: 1.379 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.654e-05/0.1537, allocations: 8 kB / 498 MB, free: 1.371 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00711/0.1608, allocations: 1.321 MB / 499.3 MB, free: 52 kB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005284/0.1662, allocations: 2.062 MB / 0.4896 GB, free: 13.9 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005934/0.1722, allocations: 0.9108 MB / 0.4905 GB, free: 12.98 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000195/0.1724, allocations: 11.98 kB / 0.4905 GB, free: 12.96 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.465e-05/0.1725, allocations: 34.56 kB / 0.4905 GB, free: 12.92 MB / 346.7 MB Notification: Performance of pre-optimization done (n=64): time 3.497e-06/0.1725, allocations: 0 / 0.4905 GB, free: 12.92 MB / 346.7 MB Notification: Performance of matching and sorting (n=120): time 0.1964/0.3689, allocations: 18.24 MB / 0.5084 GB, free: 10.51 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.17e-05/0.3691, allocations: 90.23 kB / 0.5084 GB, free: 10.4 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007073/0.3698, allocations: 385.5 kB / 0.5088 GB, free: 10.02 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003237/0.3701, allocations: 45.7 kB / 0.5089 GB, free: 9.969 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002274/0.3704, allocations: 279.4 kB / 0.5091 GB, free: 9.691 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006881/0.3711, allocations: 398.1 kB / 0.5095 GB, free: 9.297 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002594/0.3713, allocations: 28 kB / 0.5095 GB, free: 9.27 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001938/0.3715, allocations: 358.7 kB / 0.5099 GB, free: 8.91 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00743/0.379, allocations: 1.451 MB / 0.5113 GB, free: 7.457 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00765/0.3867, allocations: 1.599 MB / 0.5128 GB, free: 5.812 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006856/0.3936, allocations: 1.304 MB / 0.5141 GB, free: 4.508 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.077e-06/0.3937, allocations: 8 kB / 0.5141 GB, free: 4.5 MB / 362.7 MB Notification: Performance of matching and sorting (n=148) (initialization): time 0.0155/0.4092, allocations: 3.029 MB / 0.5171 GB, free: 1.461 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.867e-05/0.4093, allocations: 10.64 kB / 0.5171 GB, free: 1.453 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.772e-05/0.4093, allocations: 4 kB / 0.5171 GB, free: 1.449 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.647e-05/0.4093, allocations: 8 kB / 0.5171 GB, free: 1.441 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005619/0.415, allocations: 471.6 kB / 0.5176 GB, free: 0.9805 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.091e-05/0.4151, allocations: 11.98 kB / 0.5176 GB, free: 0.9688 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004034/0.4191, allocations: 279.7 kB / 0.5178 GB, free: 0.6953 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003118/0.4195, allocations: 47.92 kB / 0.5179 GB, free: 0.6484 MB / 362.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 14 * Number of states: 0 () * Number of discrete variables: 10 (kinematicPTP2a.noWphase,kinematicPTP2b.moving[1],kinematicPTP2b.noWphase,kinematicPTP1a.noWphase,kinematicPTP1b.moving[1],kinematicPTP1b.noWphase,integrator3.local_reset,integrator2.local_reset,integrator1.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 (148): * Single equations (assignments): 148 * 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.0008105/0.4203, allocations: 229.5 kB / 0.5181 GB, free: 424 kB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003566/0.4207, allocations: 63.25 kB / 0.5182 GB, free: 360 kB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003269/0.421, allocations: 104.7 kB / 0.5183 GB, free: 256 kB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.95e-05/0.421, allocations: 12 kB / 0.5183 GB, free: 244 kB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.719e-05/0.4211, allocations: 8 kB / 0.5183 GB, free: 236 kB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.596e-05/0.4211, allocations: 11.91 kB / 0.5183 GB, free: 224 kB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.3618/0.7829, allocations: 5.535 MB / 0.5237 GB, free: 45.65 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.569e-05/0.783, allocations: 20.62 kB / 0.5237 GB, free: 45.65 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003317/0.7864, allocations: 416.7 kB / 0.5241 GB, free: 45.61 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.317e-05/0.7865, allocations: 30.34 kB / 0.5241 GB, free: 45.61 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002846/0.7868, allocations: 48.27 kB / 0.5242 GB, free: 45.59 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.01e-05/0.7868, allocations: 38.94 kB / 0.5242 GB, free: 45.59 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.774e-05/0.7869, allocations: 36.78 kB / 0.5243 GB, free: 45.57 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01537/0.8023, allocations: 4.498 MB / 0.5287 GB, free: 42.2 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008233/0.8032, allocations: 240.8 kB / 0.5289 GB, free: 42.05 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002785/0.8035, allocations: 51.75 kB / 0.5289 GB, free: 42.03 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002717/0.8062, allocations: 256.8 kB / 0.5292 GB, free: 42 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0009524/0.8072, allocations: 233 kB / 0.5294 GB, free: 41.92 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001903/0.8074, allocations: 55.66 kB / 0.5295 GB, free: 41.91 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0005572/0.808, allocations: 265.9 kB / 0.5297 GB, free: 41.77 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.724e-06/0.808, allocations: 0 / 0.5297 GB, free: 41.77 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.001808/0.8098, allocations: 232.8 kB / 0.5299 GB, free: 41.74 MB / 362.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 94 * Number of states: 4 (integrator2.y,integrator3.y,integrator.y,integrator1.y) * Number of discrete variables: 6 (kinematicPTP2b.moving[1],kinematicPTP1b.moving[1],kinematicPTP2b.noWphase,kinematicPTP2a.noWphase,kinematicPTP1b.noWphase,kinematicPTP1a.noWphase) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (120): * Single equations (assignments): 120 * 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.01671/0.8266, allocations: 11.48 MB / 0.5411 GB, free: 31.61 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.01252/0.8392, allocations: 2.56 MB / 0.5436 GB, free: 30.74 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 2.987e-05/0.8392, allocations: 6.688 kB / 0.5436 GB, free: 30.74 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.006591/0.8458, allocations: 1.177 MB / 0.5448 GB, free: 30.39 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001464/0.8473, allocations: 132.3 kB / 0.5449 GB, free: 30.36 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03128/0.8787, allocations: 10.16 MB / 0.5548 GB, free: 21.03 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006078/0.8793, allocations: 0.9441 MB / 0.5558 GB, free: 20.06 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001561/0.8809, allocations: 223.4 kB / 0.556 GB, free: 19.84 MB / 362.7 MB Notification: Performance of SimCode: time 1.694e-06/0.8809, allocations: 0 / 0.556 GB, free: 19.84 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.016/3.896, allocations: 15.7 MB / 0.5713 GB, free: 4.156 MB / 362.7 MB (rm -f ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.KinematicPTP.pipe ; mkfifo ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.KinematicPTP.pipe ; head -c 1048576 < ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.KinematicPTP.pipe >> ../files/ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.KinematicPTP.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.KinematicPTP_res.mat --tempDir=temp_ModelicaTest_3_2_3_cpp_ModelicaTest_Blocks_KinematicPTP_fmu --startTime=0 --stopTime=3 --timeout=50 --tolerance=1e-06 ModelicaTest_3_2_3_cpp_ModelicaTest_Blocks_KinematicPTP.fmu > ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.KinematicPTP.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.KinematicPTP_res.mat does not exist to compare? outputFormat=mat