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.00109/0.00109, allocations: 104.2 kB / 17.63 MB, free: 5.523 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.001085/0.001085, allocations: 191.9 kB / 18.56 MB, free: 4.605 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.346/1.346, allocations: 222.9 MB / 242.3 MB, free: 15.21 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2161/0.2161, allocations: 44.18 MB / 336.6 MB, free: 2.754 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001274/0.001274, allocations: 59.47 kB / 408.5 MB, free: 27.14 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1039/0.1052, allocations: 60.82 MB / 469.3 MB, free: 14.29 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.KinematicPTP): time 0.003386/0.1086, allocations: 2.407 MB / 471.8 MB, free: 11.86 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001643/0.1103, allocations: 0.9437 MB / 472.7 MB, free: 10.91 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002464/0.1106, allocations: 11.88 kB / 472.7 MB, free: 10.9 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003736/0.111, allocations: 119.2 kB / 472.8 MB, free: 10.78 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002922/0.1113, allocations: 91.33 kB / 472.9 MB, free: 10.69 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006586/0.1119, allocations: 283.5 kB / 473.2 MB, free: 10.41 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007471/0.1127, allocations: 0.7251 MB / 473.9 MB, free: 9.688 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001807/0.1129, allocations: 73.33 kB / 474 MB, free: 9.613 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003846/0.1133, allocations: 287.1 kB / 474.3 MB, free: 9.332 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004088/0.1137, allocations: 342.7 kB / 474.6 MB, free: 8.996 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001162/0.1138, allocations: 60 kB / 474.7 MB, free: 8.938 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.903e-05/0.1139, allocations: 60 kB / 474.7 MB, free: 8.879 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001895/0.1141, allocations: 187.5 kB / 474.9 MB, free: 8.695 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002248/0.1144, allocations: 242.7 kB / 475.1 MB, free: 8.457 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004891/0.1149, allocations: 0.5412 MB / 475.7 MB, free: 7.914 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.597e-06/0.1149, allocations: 0 / 475.7 MB, free: 7.914 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.142e-06/0.1149, allocations: 0 / 475.7 MB, free: 7.914 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.373e-05/0.1149, allocations: 4 kB / 475.7 MB, free: 7.91 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.002186/0.1171, allocations: 0.9431 MB / 476.6 MB, free: 6.918 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.876e-05/0.1171, allocations: 11.97 kB / 476.6 MB, free: 6.906 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.827e-05/0.1172, allocations: 86.72 kB / 476.7 MB, free: 6.812 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001378/0.1174, allocations: 60.38 kB / 476.8 MB, free: 6.754 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004847/0.1179, allocations: 371.2 kB / 477.1 MB, free: 6.348 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003372/0.1182, allocations: 267.7 kB / 477.4 MB, free: 6.051 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.526e-05/0.1183, allocations: 48.22 kB / 477.5 MB, free: 6.004 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00195/0.1203, allocations: 0.8046 MB / 478.3 MB, free: 5.16 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.668e-05/0.1203, allocations: 0 / 478.3 MB, free: 5.16 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.511e-05/0.1204, allocations: 20 kB / 478.3 MB, free: 5.141 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.079e-05/0.1204, allocations: 12 kB / 478.3 MB, free: 5.129 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003513/0.1239, allocations: 1.204 MB / 479.5 MB, free: 3.926 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002647/0.1266, allocations: 2.038 MB / 481.5 MB, free: 1.801 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003024/0.1296, allocations: 0.8285 MB / 482.4 MB, free: 0.9531 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001502/0.1311, allocations: 497.3 kB / 482.8 MB, free: 472 kB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.56e-05/0.1312, allocations: 5.062 kB / 482.9 MB, free: 468 kB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.432e-05/0.1312, allocations: 42.5 kB / 482.9 MB, free: 416 kB / 350.1 MB Notification: Performance of pre-optimization done (n=64): time 1.953e-06/0.1312, allocations: 0 / 482.9 MB, free: 416 kB / 350.1 MB Notification: Performance of matching and sorting (n=120): time 0.08895/0.2202, allocations: 15.75 MB / 498.6 MB, free: 496 kB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.599e-05/0.2203, allocations: 98.17 kB / 498.7 MB, free: 380 kB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006103/0.2209, allocations: 393.4 kB / 499.1 MB, free: 15.98 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002078/0.2212, allocations: 45.7 kB / 499.2 MB, free: 15.93 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002303/0.2214, allocations: 217.1 kB / 499.4 MB, free: 15.71 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000488/0.2219, allocations: 406.1 kB / 499.8 MB, free: 15.3 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005558/0.2225, allocations: 190.9 kB / 500 MB, free: 15.11 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001617/0.2226, allocations: 374.8 kB / 0.4886 GB, free: 14.74 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003742/0.2264, allocations: 1.342 MB / 0.4899 GB, free: 13.39 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003884/0.2303, allocations: 1.501 MB / 0.4914 GB, free: 11.85 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007215/0.2375, allocations: 2.438 MB / 0.4938 GB, free: 9.367 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.783e-06/0.2376, allocations: 4 kB / 0.4938 GB, free: 9.363 MB / 382.1 MB Notification: Performance of matching and sorting (n=148) (initialization): time 0.009561/0.2471, allocations: 2.834 MB / 0.4965 GB, free: 6.523 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.221e-05/0.2472, allocations: 4 kB / 0.4965 GB, free: 6.52 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.881e-05/0.2472, allocations: 7.984 kB / 0.4965 GB, free: 6.512 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.769e-05/0.2473, allocations: 12.25 kB / 0.4966 GB, free: 6.5 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004019/0.2513, allocations: 407.4 kB / 0.4969 GB, free: 6.102 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.701e-05/0.2513, allocations: 15.94 kB / 0.497 GB, free: 6.086 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002771/0.2541, allocations: 215.7 kB / 0.4972 GB, free: 5.875 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002408/0.2544, allocations: 43.98 kB / 0.4972 GB, free: 5.832 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.0007393/0.2551, allocations: 230.8 kB / 0.4974 GB, free: 5.598 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003815/0.2555, allocations: 67.19 kB / 0.4975 GB, free: 5.531 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000304/0.2559, allocations: 108.7 kB / 0.4976 GB, free: 5.422 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.688e-05/0.2559, allocations: 12 kB / 0.4976 GB, free: 5.41 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.699e-05/0.2559, allocations: 3.938 kB / 0.4976 GB, free: 5.406 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.203e-05/0.2559, allocations: 11.97 kB / 0.4976 GB, free: 5.395 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.2619/0.5178, allocations: 5.228 MB / 0.5027 GB, free: 50.19 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.943e-05/0.5179, allocations: 20.03 kB / 0.5027 GB, free: 50.19 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001936/0.5199, allocations: 354.9 kB / 0.5031 GB, free: 50.19 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.983e-05/0.52, allocations: 32 kB / 0.5031 GB, free: 50.19 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001228/0.5201, allocations: 46.95 kB / 0.5032 GB, free: 50.19 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.656e-05/0.5201, allocations: 43.78 kB / 0.5032 GB, free: 50.19 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.732e-05/0.5202, allocations: 30.66 kB / 0.5032 GB, free: 50.19 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007884/0.5281, allocations: 3.094 MB / 0.5062 GB, free: 49.18 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004463/0.5286, allocations: 238.6 kB / 0.5065 GB, free: 49.09 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001465/0.5287, allocations: 49.56 kB / 0.5065 GB, free: 49.09 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001388/0.5301, allocations: 191.5 kB / 0.5067 GB, free: 49.09 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004437/0.5306, allocations: 222 kB / 0.5069 GB, free: 49.08 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.344e-05/0.5307, allocations: 59.22 kB / 0.507 GB, free: 49.08 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.000316/0.531, allocations: 260.4 kB / 0.5072 GB, free: 48.99 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.531, allocations: 1.656 kB / 0.5072 GB, free: 48.99 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.001045/0.5321, allocations: 231.9 kB / 0.5074 GB, free: 48.99 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.007695/0.5398, allocations: 3.684 MB / 0.511 GB, free: 46.83 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.007011/0.5468, allocations: 2.407 MB / 0.5134 GB, free: 45.97 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.425e-05/0.5469, allocations: 2.938 kB / 0.5134 GB, free: 45.97 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003535/0.5504, allocations: 1.072 MB / 0.5144 GB, free: 45.63 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001508/0.5519, allocations: 149.9 kB / 0.5146 GB, free: 45.58 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02587/0.5778, allocations: 12.45 MB / 0.5267 GB, free: 38.23 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000396/0.5782, allocations: 0.929 MB / 0.5277 GB, free: 37.4 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.001205/0.5795, allocations: 198.2 kB / 0.5278 GB, free: 37.21 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000632/0.5801, allocations: 219.4 kB / 0.528 GB, free: 36.99 MB / 382.1 MB Notification: Performance of SimCode: time 1.223e-06/0.5801, allocations: 4 kB / 0.5281 GB, free: 36.99 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06707/0.6472, allocations: 21.65 MB / 0.5492 GB, free: 15.46 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.308/8.955, allocations: 7.562 kB / 0.5492 GB, free: 15.45 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