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.002433/0.002433, allocations: 178.4 kB / 8.362 MB, free: 0.7148 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.079/2.079, allocations: 205.3 MB / 214.1 MB, free: 14.14 MB / 187.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001117/0.001117, allocations: 92.3 kB / 262.1 MB, free: 13.88 MB / 219.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.2928/0.2928, allocations: 43.49 MB / 353.6 MB, free: 2.285 MB / 299.1 MB Notification: Performance of FrontEnd - loaded program: time 2.964e-05/2.956e-05, allocations: 4.219 kB / 418.3 MB, free: 40.95 MB / 299.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.411/0.4111, allocations: 58.85 MB / 477.2 MB, free: 5.148 MB / 315.1 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1667/0.5778, allocations: 87.44 MB / 0.5514 GB, free: 11.78 MB / 395.1 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002547/0.5782, allocations: 63.97 kB / 0.5514 GB, free: 11.71 MB / 395.1 MB Notification: Performance of FrontEnd - DAE generated: time 0.0609/0.6391, allocations: 11.68 MB / 0.5628 GB, free: 8 kB / 395.1 MB Notification: Performance of FrontEnd: time 1.453e-06/0.6391, allocations: 0 / 0.5628 GB, free: 8 kB / 395.1 MB Notification: Performance of Transformations before backend: time 6.799e-05/0.6392, allocations: 15.98 kB / 0.5629 GB, free: 15.99 MB / 411.1 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.003625/0.6429, allocations: 0.8887 MB / 0.5637 GB, free: 15.06 MB / 411.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.487e-05/0.6429, allocations: 12.03 kB / 0.5637 GB, free: 15.05 MB / 411.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002764/0.6432, allocations: 60.12 kB / 0.5638 GB, free: 14.99 MB / 411.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008603/0.6441, allocations: 366.2 kB / 0.5641 GB, free: 14.59 MB / 411.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005714/0.6447, allocations: 259.4 kB / 0.5644 GB, free: 14.3 MB / 411.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001496/0.6449, allocations: 31.91 kB / 0.5644 GB, free: 14.27 MB / 411.1 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.002335/0.6472, allocations: 0.8031 MB / 0.5652 GB, free: 13.46 MB / 411.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001513/0.6488, allocations: 0.5565 MB / 0.5658 GB, free: 12.87 MB / 411.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.883e-05/0.6488, allocations: 3.938 kB / 0.5658 GB, free: 12.86 MB / 411.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.28e-05/0.6489, allocations: 4 kB / 0.5658 GB, free: 12.86 MB / 411.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.876e-05/0.6489, allocations: 8 kB / 0.5658 GB, free: 12.85 MB / 411.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004884/0.6538, allocations: 2.015 MB / 0.5677 GB, free: 10.76 MB / 411.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002356/0.6563, allocations: 0.557 MB / 0.5683 GB, free: 10.18 MB / 411.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008113/0.6571, allocations: 294.8 kB / 0.5686 GB, free: 9.891 MB / 411.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001212/0.6573, allocations: 16.55 kB / 0.5686 GB, free: 9.875 MB / 411.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.668e-05/0.6573, allocations: 39.06 kB / 0.5686 GB, free: 9.828 MB / 411.1 MB Notification: Performance of pre-optimization done (n=66): time 3.126e-06/0.6573, allocations: 0 / 0.5686 GB, free: 9.828 MB / 411.1 MB Notification: Performance of matching and sorting (n=122): time 0.03771/0.695, allocations: 7.115 MB / 0.5756 GB, free: 2.555 MB / 411.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.061e-05/0.6952, allocations: 98.17 kB / 0.5757 GB, free: 2.438 MB / 411.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006705/0.6958, allocations: 342.2 kB / 0.576 GB, free: 2.098 MB / 411.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002386/0.6961, allocations: 25.7 kB / 0.576 GB, free: 2.066 MB / 411.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002013/0.6963, allocations: 275.5 kB / 0.5763 GB, free: 1.793 MB / 411.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005855/0.6969, allocations: 382.2 kB / 0.5766 GB, free: 1.414 MB / 411.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002163/0.6972, allocations: 3.938 kB / 0.5766 GB, free: 1.41 MB / 411.1 MB Notification: Performance of setup shared object (initialization): time 0.0001755/0.6974, allocations: 362.8 kB / 0.577 GB, free: 1.047 MB / 411.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002531/0.6999, allocations: 0.9478 MB / 0.5779 GB, free: 100 kB / 411.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002698/0.7026, allocations: 1.082 MB / 0.579 GB, free: 14.98 MB / 427.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002171/0.7048, allocations: 0.8008 MB / 0.5797 GB, free: 14.18 MB / 427.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.659e-06/0.7048, allocations: 4 kB / 0.5797 GB, free: 14.18 MB / 427.1 MB Notification: Performance of matching and sorting (n=150) (initialization): time 0.005652/0.7105, allocations: 1.984 MB / 0.5817 GB, free: 12.18 MB / 427.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.733e-05/0.7106, allocations: 7.984 kB / 0.5817 GB, free: 12.18 MB / 427.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.671e-05/0.7106, allocations: 4 kB / 0.5817 GB, free: 12.17 MB / 427.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 4.035e-05/0.7107, allocations: 8 kB / 0.5817 GB, free: 12.16 MB / 427.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005612/0.7163, allocations: 467.7 kB / 0.5822 GB, free: 11.71 MB / 427.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.397e-05/0.7164, allocations: 8 kB / 0.5822 GB, free: 11.7 MB / 427.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004107/0.7205, allocations: 267.6 kB / 0.5824 GB, free: 11.44 MB / 427.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002997/0.7208, allocations: 36 kB / 0.5824 GB, free: 11.4 MB / 427.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 14 * Number of states: 0 () * Number of discrete variables: 12 (kinematicPTP2a.noWphase,kinematicPTP2b.moving[1],kinematicPTP2b.motion_ref,kinematicPTP2b.noWphase,kinematicPTP1a.noWphase,kinematicPTP1b.moving[1],kinematicPTP1b.motion_ref,kinematicPTP1b.noWphase,integrator3.local_reset,integrator2.local_reset,integrator1.local_reset,integrator.local_reset) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (150): * Single equations (assignments): 150 * 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.000575/0.7214, allocations: 128.7 kB / 0.5826 GB, free: 11.27 MB / 427.1 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.005379/0.7268, allocations: 1.699 MB / 0.5842 GB, free: 9.562 MB / 427.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004994/0.7274, allocations: 63.25 kB / 0.5843 GB, free: 9.5 MB / 427.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003891/0.7278, allocations: 101 kB / 0.5844 GB, free: 9.398 MB / 427.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.018e-05/0.7278, allocations: 12 kB / 0.5844 GB, free: 9.387 MB / 427.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.156e-05/0.7279, allocations: 11.94 kB / 0.5844 GB, free: 9.375 MB / 427.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.513e-05/0.7279, allocations: 3.984 kB / 0.5844 GB, free: 9.371 MB / 427.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01626/0.7442, allocations: 4.557 MB / 0.5889 GB, free: 4.488 MB / 427.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.422e-05/0.7443, allocations: 20 kB / 0.5889 GB, free: 4.469 MB / 427.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003318/0.7476, allocations: 411.5 kB / 0.5893 GB, free: 4.066 MB / 427.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.378e-05/0.7477, allocations: 35.89 kB / 0.5893 GB, free: 4.031 MB / 427.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002321/0.7479, allocations: 35.98 kB / 0.5893 GB, free: 3.996 MB / 427.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.47e-05/0.748, allocations: 43.86 kB / 0.5894 GB, free: 3.953 MB / 427.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.669e-05/0.748, allocations: 31.88 kB / 0.5894 GB, free: 3.922 MB / 427.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006053/0.7541, allocations: 3.239 MB / 0.5926 GB, free: 15.82 MB / 443.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007468/0.7549, allocations: 252.1 kB / 0.5928 GB, free: 15.55 MB / 443.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001876/0.7551, allocations: 31.98 kB / 0.5929 GB, free: 15.52 MB / 443.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002782/0.7579, allocations: 239.8 kB / 0.5931 GB, free: 15.29 MB / 443.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0009276/0.7589, allocations: 239.3 kB / 0.5933 GB, free: 15.05 MB / 443.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001769/0.7591, allocations: 56 kB / 0.5934 GB, free: 15 MB / 443.1 MB Notification: Performance of sorting global known variables: time 0.0005252/0.7596, allocations: 256.6 kB / 0.5936 GB, free: 14.75 MB / 443.1 MB Notification: Performance of sort global known variables: time 4.51e-07/0.7597, allocations: 0 / 0.5936 GB, free: 14.75 MB / 443.1 MB Notification: Performance of remove unused functions: time 0.001797/0.7615, allocations: 203.9 kB / 0.5938 GB, free: 14.55 MB / 443.1 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: 8 (kinematicPTP2b.moving[1],kinematicPTP2b.motion_ref,kinematicPTP1b.moving[1],kinematicPTP1b.motion_ref,kinematicPTP2b.noWphase,kinematicPTP2a.noWphase,kinematicPTP1b.noWphase,kinematicPTP1a.noWphase) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (122): * Single equations (assignments): 122 * 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.009438/0.771, allocations: 10.22 MB / 0.6038 GB, free: 3.672 MB / 443.1 MB Notification: Performance of simCode: created initialization part: time 0.004803/0.7758, allocations: 1.606 MB / 0.6053 GB, free: 2.062 MB / 443.1 MB Notification: Performance of simCode: created event and clocks part: time 2.547e-05/0.7759, allocations: 4.625 kB / 0.6054 GB, free: 2.059 MB / 443.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00351/0.7794, allocations: 0.7418 MB / 0.6061 GB, free: 1.32 MB / 443.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001555/0.781, allocations: 110.3 kB / 0.6062 GB, free: 1.215 MB / 443.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006777/0.7879, allocations: 1.783 MB / 0.6079 GB, free: 15.09 MB / 459.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008581/0.7888, allocations: 0.9362 MB / 0.6088 GB, free: 14.12 MB / 459.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001583/0.7904, allocations: 223.4 kB / 0.609 GB, free: 13.9 MB / 459.1 MB Notification: Performance of SimCode: time 1.593e-06/0.7904, allocations: 4 kB / 0.6091 GB, free: 13.9 MB / 459.1 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.011/3.801, allocations: 15.84 MB / 0.6245 GB, free: 14.04 MB / 475.1 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