Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Blocks.KinematicPTP.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Blocks.KinematicPTP,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Blocks_KinematicPTP",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Blocks.KinematicPTP,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Blocks_KinematicPTP",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.000833/0.000833, allocations: 94.88 kB / 17.35 MB, free: 6.375 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0009262/0.0009263, allocations: 179.3 kB / 18.26 MB, free: 5.52 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.198/1.198, allocations: 223.3 MB / 242.3 MB, free: 196 kB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.1627/0.1627, allocations: 44.25 MB / 337.7 MB, free: 2.645 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002671/0.0002672, allocations: 12 kB / 410.4 MB, free: 27.2 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09177/0.09205, allocations: 61.92 MB / 472.4 MB, free: 13.25 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.KinematicPTP): time 0.002078/0.09416, allocations: 2.071 MB / 474.4 MB, free: 11.15 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001183/0.09535, allocations: 0.9164 MB / 475.3 MB, free: 10.23 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001205/0.09549, allocations: 11.88 kB / 475.4 MB, free: 10.22 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002673/0.09576, allocations: 99.5 kB / 475.5 MB, free: 10.12 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001883/0.09596, allocations: 83.56 kB / 475.5 MB, free: 10.04 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004708/0.09644, allocations: 259.6 kB / 475.8 MB, free: 9.785 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005307/0.09698, allocations: 0.6782 MB / 476.5 MB, free: 9.105 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001346/0.09712, allocations: 69.34 kB / 476.5 MB, free: 9.035 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002449/0.09737, allocations: 259 kB / 476.8 MB, free: 8.781 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003058/0.09769, allocations: 326.6 kB / 477.1 MB, free: 8.461 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 5.991e-05/0.09776, allocations: 31.94 kB / 477.1 MB, free: 8.43 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.571e-05/0.09783, allocations: 32 kB / 477.2 MB, free: 8.398 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001417/0.09798, allocations: 163.5 kB / 477.3 MB, free: 8.238 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001751/0.09816, allocations: 244.4 kB / 477.6 MB, free: 7.992 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003716/0.09854, allocations: 0.5059 MB / 478.1 MB, free: 7.484 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.855e-06/0.09855, allocations: 0 / 478.1 MB, free: 7.484 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.242e-06/0.09855, allocations: 0 / 478.1 MB, free: 7.484 MB / 350.1 MB Notification: Performance of Transformations before backend: time 4.899e-06/0.09856, allocations: 0 / 478.1 MB, free: 7.484 MB / 350.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.001932/0.1005, allocations: 0.9239 MB / 479 MB, free: 6.512 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.099e-05/0.1005, allocations: 8.031 kB / 479 MB, free: 6.504 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.035e-05/0.1006, allocations: 86.72 kB / 479.1 MB, free: 6.41 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.679e-05/0.1007, allocations: 80.27 kB / 479.2 MB, free: 6.332 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003943/0.1011, allocations: 367.2 kB / 479.5 MB, free: 5.934 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003245/0.1015, allocations: 271.7 kB / 479.8 MB, free: 5.633 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.139e-05/0.1016, allocations: 44.38 kB / 479.8 MB, free: 5.59 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001956/0.1035, allocations: 0.8749 MB / 480.7 MB, free: 4.672 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.665e-05/0.1036, allocations: 3.984 kB / 480.7 MB, free: 4.668 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.451e-05/0.1036, allocations: 16 kB / 480.7 MB, free: 4.652 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.034e-05/0.1036, allocations: 12 kB / 480.7 MB, free: 4.641 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003468/0.1071, allocations: 1.325 MB / 482.1 MB, free: 3.316 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00244/0.1095, allocations: 2.085 MB / 484.1 MB, free: 1.145 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00295/0.1125, allocations: 0.9048 MB / 485.1 MB, free: 232 kB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001568/0.1141, allocations: 0.5481 MB / 485.6 MB, free: 15.67 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.025e-05/0.1142, allocations: 17.05 kB / 485.6 MB, free: 15.66 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.343e-05/0.1142, allocations: 42.5 kB / 485.7 MB, free: 15.61 MB / 366.1 MB Notification: Performance of pre-optimization done (n=64): time 1.754e-06/0.1142, allocations: 0 / 485.7 MB, free: 15.61 MB / 366.1 MB Notification: Performance of matching and sorting (n=120): time 0.0889/0.2031, allocations: 18.23 MB / 0.4921 GB, free: 13.19 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.53e-05/0.2032, allocations: 94.17 kB / 0.4922 GB, free: 13.08 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003825/0.2036, allocations: 385.5 kB / 0.4925 GB, free: 12.7 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001449/0.2037, allocations: 45.7 kB / 0.4926 GB, free: 12.65 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001295/0.2039, allocations: 221.1 kB / 0.4928 GB, free: 12.43 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003399/0.2042, allocations: 398 kB / 0.4932 GB, free: 12.03 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002104/0.2044, allocations: 109.7 kB / 0.4933 GB, free: 11.92 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001226/0.2046, allocations: 370.8 kB / 0.4936 GB, free: 11.55 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003554/0.2081, allocations: 1.455 MB / 0.4951 GB, free: 10.09 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003673/0.2118, allocations: 1.611 MB / 0.4966 GB, free: 8.438 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006525/0.2183, allocations: 2.668 MB / 0.4992 GB, free: 5.727 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.627e-06/0.2184, allocations: 0 / 0.4992 GB, free: 5.727 MB / 382.1 MB Notification: Performance of matching and sorting (n=148) (initialization): time 0.007513/0.2259, allocations: 3.053 MB / 0.5022 GB, free: 2.664 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.414e-05/0.2259, allocations: 10.5 kB / 0.5022 GB, free: 2.656 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.089e-05/0.2259, allocations: 7.938 kB / 0.5022 GB, free: 2.648 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.164e-05/0.226, allocations: 11.94 kB / 0.5022 GB, free: 2.637 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002665/0.2286, allocations: 467.4 kB / 0.5027 GB, free: 2.18 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.576e-05/0.2287, allocations: 15.88 kB / 0.5027 GB, free: 2.164 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001993/0.2307, allocations: 279.7 kB / 0.503 GB, free: 1.891 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001349/0.2308, allocations: 43.98 kB / 0.503 GB, free: 1.848 MB / 382.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: 10 (kinematicPTP2a.noWphase,kinematicPTP2b.noWphase,kinematicPTP2b.moving[1],kinematicPTP1a.noWphase,kinematicPTP1b.noWphase,kinematicPTP1b.moving[1],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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0004481/0.2313, allocations: 233.5 kB / 0.5032 GB, free: 1.609 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001945/0.2315, allocations: 59.25 kB / 0.5033 GB, free: 1.551 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002554/0.2317, allocations: 108.7 kB / 0.5034 GB, free: 1.445 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.077e-05/0.2317, allocations: 12 kB / 0.5034 GB, free: 1.434 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.143e-05/0.2317, allocations: 7.938 kB / 0.5034 GB, free: 1.426 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.059e-05/0.2318, allocations: 7.984 kB / 0.5034 GB, free: 1.418 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.1735/0.4053, allocations: 5.545 MB / 0.5088 GB, free: 49.5 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.12e-05/0.4053, allocations: 20.97 kB / 0.5089 GB, free: 49.5 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001553/0.4069, allocations: 410.7 kB / 0.5092 GB, free: 49.47 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.31e-05/0.407, allocations: 27.53 kB / 0.5093 GB, free: 49.47 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001107/0.4071, allocations: 49.78 kB / 0.5093 GB, free: 49.47 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.055e-05/0.4071, allocations: 44.7 kB / 0.5094 GB, free: 49.46 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.892e-05/0.4071, allocations: 31.78 kB / 0.5094 GB, free: 49.45 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007262/0.4144, allocations: 3.43 MB / 0.5127 GB, free: 48.12 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003195/0.4147, allocations: 238.5 kB / 0.513 GB, free: 47.99 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000119/0.4149, allocations: 50.73 kB / 0.513 GB, free: 47.97 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001282/0.4161, allocations: 253.6 kB / 0.5133 GB, free: 47.95 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003991/0.4166, allocations: 218 kB / 0.5135 GB, free: 47.87 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.263e-05/0.4166, allocations: 61.89 kB / 0.5135 GB, free: 47.86 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0002474/0.4169, allocations: 266.5 kB / 0.5138 GB, free: 47.73 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.4169, allocations: 0 / 0.5138 GB, free: 47.73 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.001016/0.4179, allocations: 228.6 kB / 0.514 GB, free: 47.7 MB / 382.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: 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0076/0.4255, allocations: 4.015 MB / 0.5179 GB, free: 45.4 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.006568/0.4321, allocations: 2.566 MB / 0.5204 GB, free: 44.54 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 1.649e-05/0.4322, allocations: 11.7 kB / 0.5204 GB, free: 44.54 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003339/0.4355, allocations: 1.181 MB / 0.5216 GB, free: 44.19 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00194/0.4375, allocations: 159.2 kB / 0.5217 GB, free: 44.14 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02171/0.4592, allocations: 13.27 MB / 0.5347 GB, free: 31.98 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002862/0.4595, allocations: 0.9282 MB / 0.5356 GB, free: 31.02 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.001064/0.4606, allocations: 197.2 kB / 0.5358 GB, free: 30.83 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006/0.4612, allocations: 223.4 kB / 0.536 GB, free: 30.61 MB / 382.1 MB Notification: Performance of SimCode: time 1.303e-06/0.4612, allocations: 0 / 0.536 GB, free: 30.61 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02523/0.4864, allocations: 19.87 MB / 0.5554 GB, free: 10.91 MB / 382.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001458/0.4866, allocations: 188.8 kB / 0.5556 GB, free: 10.64 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.086/2.573, allocations: 3.938 kB / 0.5556 GB, free: 10.64 MB / 382.1 MB (rm -f ModelicaTest_4.0.0_ModelicaTest.Blocks.KinematicPTP.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Blocks.KinematicPTP.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Blocks.KinematicPTP.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Blocks.KinematicPTP.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_4.0.0_ModelicaTest.Blocks.KinematicPTP_res.mat --tempDir=temp_ModelicaTest_4_0_0_ModelicaTest_Blocks_KinematicPTP_fmu --startTime=0 --stopTime=3 --timeout=50 --tolerance=1e-06 ModelicaTest_4_0_0_ModelicaTest_Blocks_KinematicPTP.fmu > ModelicaTest_4.0.0_ModelicaTest.Blocks.KinematicPTP.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.Blocks.KinematicPTP_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Blocks/KinematicPTP/KinematicPTP.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.0_ModelicaTest.Blocks.KinematicPTP.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches