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.0008156/0.0008156, allocations: 174.9 kB / 16.72 MB, free: 4.957 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.118/1.118, allocations: 205.4 MB / 222.9 MB, free: 9.012 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.0007133/0.0007133, allocations: 89.45 kB / 271.2 MB, free: 8.238 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.2635/0.2635, allocations: 43.56 MB / 363.1 MB, free: 52.14 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003173/0.0003173, allocations: 19.98 kB / 432.1 MB, free: 5.73 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08834/0.08868, allocations: 58.84 MB / 490.9 MB, free: 10.8 MB / 378.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.KinematicPTP): time 0.002391/0.09111, allocations: 1.994 MB / 492.9 MB, free: 8.793 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.001595/0.09273, allocations: 0.9564 MB / 493.9 MB, free: 7.828 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002199/0.09297, allocations: 11.88 kB / 493.9 MB, free: 7.816 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0003293/0.09331, allocations: 87.5 kB / 494 MB, free: 7.73 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002404/0.09357, allocations: 75.52 kB / 494 MB, free: 7.656 MB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006175/0.0942, allocations: 223.6 kB / 494.2 MB, free: 7.438 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 0.0007041/0.09491, allocations: 0.6275 MB / 494.9 MB, free: 6.809 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001622/0.09509, allocations: 73.03 kB / 494.9 MB, free: 6.734 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003309/0.09542, allocations: 259.1 kB / 495.2 MB, free: 6.48 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004207/0.09586, allocations: 294.9 kB / 495.5 MB, free: 6.191 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001077/0.09598, allocations: 35.94 kB / 495.5 MB, free: 6.156 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 7.049e-05/0.09605, allocations: 32 kB / 495.6 MB, free: 6.125 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 0.00014/0.0962, allocations: 151.6 kB / 495.7 MB, free: 5.977 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002012/0.09641, allocations: 236.6 kB / 495.9 MB, free: 5.738 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002826/0.0967, allocations: 383.3 kB / 496.3 MB, free: 5.363 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.068e-06/0.09671, allocations: 4 kB / 496.3 MB, free: 5.359 MB / 378.7 MB Notification: Performance of FrontEnd: time 9.92e-07/0.09671, allocations: 0 / 496.3 MB, free: 5.359 MB / 378.7 MB Notification: Performance of Transformations before backend: time 1.014e-05/0.09673, allocations: 0 / 496.3 MB, free: 5.359 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: 100 * Number of variables: 100 Notification: Performance of Generate backend data structure: time 0.001979/0.09872, allocations: 0.9389 MB / 497.3 MB, free: 4.375 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.82e-05/0.09876, allocations: 12.03 kB / 497.3 MB, free: 4.363 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001086/0.09888, allocations: 86.72 kB / 497.3 MB, free: 4.27 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.989e-05/0.09898, allocations: 60.38 kB / 497.4 MB, free: 4.211 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004322/0.09942, allocations: 375.1 kB / 497.8 MB, free: 3.805 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003261/0.09976, allocations: 271.7 kB / 498 MB, free: 3.504 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.158e-05/0.09985, allocations: 48.28 kB / 498.1 MB, free: 3.457 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001951/0.1018, allocations: 0.8671 MB / 499 MB, free: 2.547 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.002e-05/0.1018, allocations: 7.938 kB / 499 MB, free: 2.539 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.033e-05/0.1019, allocations: 16 kB / 499 MB, free: 2.523 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.026e-05/0.1019, allocations: 8 kB / 499 MB, free: 2.516 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003408/0.1053, allocations: 1.321 MB / 0.4886 GB, free: 1.195 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1469/0.2522, allocations: 2.068 MB / 0.4906 GB, free: 42.32 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002774/0.255, allocations: 0.895 MB / 0.4915 GB, free: 42.27 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001413/0.2564, allocations: 0.5456 MB / 0.492 GB, free: 42.25 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.537e-05/0.2565, allocations: 11.53 kB / 0.492 GB, free: 42.25 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.451e-05/0.2565, allocations: 41.12 kB / 0.4921 GB, free: 42.21 MB / 378.7 MB Notification: Performance of pre-optimization done (n=64): time 2.766e-06/0.2565, allocations: 0 / 0.4921 GB, free: 42.21 MB / 378.7 MB Notification: Performance of matching and sorting (n=120): time 0.08023/0.3368, allocations: 18.24 MB / 0.5099 GB, free: 39.69 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.367e-05/0.3368, allocations: 90.64 kB / 0.51 GB, free: 39.6 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003047/0.3372, allocations: 383.1 kB / 0.5103 GB, free: 39.41 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001157/0.3373, allocations: 48.23 kB / 0.5104 GB, free: 39.37 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.349e-05/0.3374, allocations: 226.9 kB / 0.5106 GB, free: 39.18 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003038/0.3377, allocations: 401.7 kB / 0.511 GB, free: 38.87 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001904/0.3379, allocations: 19.19 kB / 0.511 GB, free: 38.85 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 8.72e-05/0.338, allocations: 378.6 kB / 0.5113 GB, free: 38.51 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005098/0.3431, allocations: 1.45 MB / 0.5128 GB, free: 38 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005181/0.3483, allocations: 1.602 MB / 0.5143 GB, free: 37.34 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.008629/0.3569, allocations: 2.656 MB / 0.5169 GB, free: 36.27 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.116e-06/0.3569, allocations: 0 / 0.5169 GB, free: 36.27 MB / 378.7 MB Notification: Performance of matching and sorting (n=148) (initialization): time 0.006624/0.3636, allocations: 3.059 MB / 0.5199 GB, free: 35.16 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.71e-05/0.3636, allocations: 7.531 kB / 0.5199 GB, free: 35.16 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.917e-06/0.3636, allocations: 2.875 kB / 0.5199 GB, free: 35.16 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.52e-05/0.3636, allocations: 8.625 kB / 0.5199 GB, free: 35.16 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002437/0.3661, allocations: 467.8 kB / 0.5204 GB, free: 35.12 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.648e-05/0.3661, allocations: 13.12 kB / 0.5204 GB, free: 35.12 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001791/0.3679, allocations: 281.7 kB / 0.5207 GB, free: 35.09 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001474/0.3681, allocations: 39.95 kB / 0.5207 GB, free: 35.08 MB / 378.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.0003865/0.3685, allocations: 235.6 kB / 0.5209 GB, free: 34.89 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001905/0.3687, allocations: 67.5 kB / 0.521 GB, free: 34.85 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002121/0.3689, allocations: 107.4 kB / 0.5211 GB, free: 34.76 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.061e-05/0.3689, allocations: 12.91 kB / 0.5211 GB, free: 34.76 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.431e-05/0.3689, allocations: 0 / 0.5211 GB, free: 34.76 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.548e-06/0.3689, allocations: 7.969 kB / 0.5211 GB, free: 34.76 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01083/0.3798, allocations: 5.542 MB / 0.5265 GB, free: 32.22 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.29e-05/0.3798, allocations: 20.75 kB / 0.5265 GB, free: 32.22 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001453/0.3813, allocations: 412.4 kB / 0.5269 GB, free: 32.18 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.504e-05/0.3813, allocations: 26.94 kB / 0.527 GB, free: 32.18 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.831e-05/0.3814, allocations: 51.94 kB / 0.527 GB, free: 32.16 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.018e-05/0.3814, allocations: 44.69 kB / 0.527 GB, free: 32.15 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.927e-05/0.3814, allocations: 35.22 kB / 0.5271 GB, free: 32.14 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006816/0.3883, allocations: 3.414 MB / 0.5304 GB, free: 30.36 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003277/0.3886, allocations: 239.9 kB / 0.5306 GB, free: 30.19 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001169/0.3887, allocations: 55.88 kB / 0.5307 GB, free: 30.17 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001219/0.39, allocations: 252.8 kB / 0.5309 GB, free: 30.14 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004402/0.3904, allocations: 231.2 kB / 0.5312 GB, free: 30.07 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.443e-05/0.3905, allocations: 56.94 kB / 0.5312 GB, free: 30.06 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0002416/0.3907, allocations: 260.7 kB / 0.5315 GB, free: 29.93 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.3e-07/0.3907, allocations: 0 / 0.5315 GB, free: 29.93 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0008642/0.3916, allocations: 233.4 kB / 0.5317 GB, free: 29.89 MB / 378.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.006811/0.3984, allocations: 4.015 MB / 0.5356 GB, free: 27.53 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.005643/0.4041, allocations: 2.56 MB / 0.5381 GB, free: 26.08 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 1.289e-05/0.4041, allocations: 0 / 0.5381 GB, free: 26.08 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002863/0.407, allocations: 1.177 MB / 0.5392 GB, free: 24.91 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00177/0.4088, allocations: 162.5 kB / 0.5394 GB, free: 24.75 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01382/0.4226, allocations: 8.234 MB / 0.5474 GB, free: 16.15 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002913/0.4229, allocations: 0.9246 MB / 0.5483 GB, free: 15.2 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007194/0.4236, allocations: 227.3 kB / 0.5486 GB, free: 14.98 MB / 378.7 MB Notification: Performance of SimCode: time 7.21e-07/0.4236, allocations: 0 / 0.5486 GB, free: 14.98 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.049/3.472, allocations: 11.9 MB / 0.5602 GB, free: 3.062 MB / 378.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) diffSimulationResults("ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.KinematicPTP_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/Blocks/KinematicPTP/KinematicPTP.csv","../files/ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.KinematicPTP.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches