Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Blocks.KinematicPTP.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Blocks.KinematicPTP,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Blocks_KinematicPTP",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Blocks.KinematicPTP,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Blocks_KinematicPTP",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008897/0.000894, allocations: 97.75 kB / 17.35 MB, free: 6.371 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001086/0.001086, allocations: 200.8 kB / 18.28 MB, free: 5.496 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.393/1.393, allocations: 227.7 MB / 246.8 MB, free: 11.42 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2046/0.2046, allocations: 46.19 MB / 345.2 MB, free: 11.39 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002367/0.0002368, allocations: 8 kB / 419.6 MB, free: 19.64 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1107/0.111, allocations: 63.56 MB / 483.2 MB, free: 4.07 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.KinematicPTP): time 0.002698/0.1137, allocations: 2.091 MB / 485.3 MB, free: 1.965 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001758/0.1155, allocations: 0.9515 MB / 486.2 MB, free: 1.008 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001976/0.1157, allocations: 7.875 kB / 486.2 MB, free: 1 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003561/0.1161, allocations: 99.52 kB / 486.3 MB, free: 0.9023 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002099/0.1163, allocations: 75.58 kB / 486.4 MB, free: 0.8281 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006054/0.1169, allocations: 251.7 kB / 486.6 MB, free: 0.582 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006496/0.1176, allocations: 0.6821 MB / 487.3 MB, free: 15.9 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001777/0.1178, allocations: 69.33 kB / 487.4 MB, free: 15.83 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002986/0.1181, allocations: 263 kB / 487.6 MB, free: 15.57 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003671/0.1185, allocations: 314.7 kB / 487.9 MB, free: 15.26 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 6.941e-05/0.1185, allocations: 32 kB / 488 MB, free: 15.23 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.481e-05/0.1186, allocations: 31.94 kB / 488 MB, free: 15.2 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001858/0.1188, allocations: 167.5 kB / 488.2 MB, free: 15.04 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002337/0.119, allocations: 240.5 kB / 488.4 MB, free: 14.79 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004569/0.1195, allocations: 0.5059 MB / 488.9 MB, free: 14.29 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.657e-06/0.1195, allocations: 4 kB / 488.9 MB, free: 14.28 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.353e-06/0.1195, allocations: 0 / 488.9 MB, free: 14.28 MB / 366.1 MB Notification: Performance of Transformations before backend: time 5.701e-06/0.1195, allocations: 0 / 488.9 MB, free: 14.28 MB / 366.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.00212/0.1217, allocations: 0.9162 MB / 489.8 MB, free: 13.32 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.437e-05/0.1217, allocations: 12.88 kB / 489.8 MB, free: 13.3 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001103/0.1218, allocations: 90.66 kB / 489.9 MB, free: 13.21 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001094/0.1219, allocations: 68.28 kB / 490 MB, free: 13.14 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004925/0.1224, allocations: 371.2 kB / 490.4 MB, free: 12.74 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003753/0.1228, allocations: 275.6 kB / 490.6 MB, free: 12.43 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.655e-05/0.1229, allocations: 44.38 kB / 490.7 MB, free: 12.39 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002079/0.125, allocations: 0.8671 MB / 491.5 MB, free: 11.48 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.78e-05/0.1251, allocations: 7.938 kB / 491.6 MB, free: 11.47 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.048e-05/0.1251, allocations: 20 kB / 491.6 MB, free: 11.45 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.412e-05/0.1251, allocations: 11.98 kB / 491.6 MB, free: 11.44 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003612/0.1288, allocations: 1.317 MB / 492.9 MB, free: 10.12 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002714/0.1315, allocations: 2.078 MB / 495 MB, free: 7.961 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003136/0.1346, allocations: 0.9025 MB / 495.9 MB, free: 7.043 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001592/0.1362, allocations: 0.5453 MB / 496.4 MB, free: 6.492 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.701e-05/0.1363, allocations: 11.98 kB / 496.4 MB, free: 6.48 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.912e-05/0.1364, allocations: 50.5 kB / 496.5 MB, free: 6.422 MB / 366.1 MB Notification: Performance of pre-optimization done (n=64): time 2.454e-06/0.1364, allocations: 0 / 496.5 MB, free: 6.422 MB / 366.1 MB Notification: Performance of matching and sorting (n=120): time 0.09333/0.2297, allocations: 18.23 MB / 0.5027 GB, free: 4.012 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.565e-05/0.2298, allocations: 94.17 kB / 0.5027 GB, free: 3.902 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004771/0.2303, allocations: 389.5 kB / 0.5031 GB, free: 3.516 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001638/0.2305, allocations: 45.7 kB / 0.5032 GB, free: 3.465 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001592/0.2306, allocations: 221.1 kB / 0.5034 GB, free: 3.242 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000378/0.231, allocations: 394.1 kB / 0.5038 GB, free: 2.852 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002219/0.2312, allocations: 101.7 kB / 0.5038 GB, free: 2.746 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001566/0.2314, allocations: 378.7 kB / 0.5042 GB, free: 2.367 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003778/0.2352, allocations: 1.455 MB / 0.5056 GB, free: 0.9102 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.2091/0.4443, allocations: 1.603 MB / 0.5072 GB, free: 42.21 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00738/0.4517, allocations: 2.67 MB / 0.5098 GB, free: 41.93 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.641e-06/0.4517, allocations: 0.5625 kB / 0.5098 GB, free: 41.93 MB / 382.1 MB Notification: Performance of matching and sorting (n=148) (initialization): time 0.008389/0.4601, allocations: 3.058 MB / 0.5128 GB, free: 40.88 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.402e-05/0.4602, allocations: 5.938 kB / 0.5128 GB, free: 40.88 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.715e-05/0.4602, allocations: 2.75 kB / 0.5128 GB, free: 40.88 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 4.353e-05/0.4603, allocations: 9.672 kB / 0.5128 GB, free: 40.88 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002951/0.4632, allocations: 469.8 kB / 0.5133 GB, free: 40.84 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.247e-05/0.4633, allocations: 15.94 kB / 0.5133 GB, free: 40.84 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002106/0.4654, allocations: 280.2 kB / 0.5135 GB, free: 40.8 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001649/0.4656, allocations: 47.28 kB / 0.5136 GB, free: 40.79 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.0004916/0.4661, allocations: 230.1 kB / 0.5138 GB, free: 40.61 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002226/0.4663, allocations: 63.44 kB / 0.5139 GB, free: 40.61 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002863/0.4666, allocations: 109 kB / 0.514 GB, free: 40.52 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.483e-05/0.4666, allocations: 16.19 kB / 0.514 GB, free: 40.52 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.098e-05/0.4666, allocations: 0 / 0.514 GB, free: 40.52 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.454e-05/0.4666, allocations: 7.219 kB / 0.514 GB, free: 40.52 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01297/0.4796, allocations: 5.549 MB / 0.5194 GB, free: 38.02 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.601e-05/0.4797, allocations: 20.03 kB / 0.5194 GB, free: 38.02 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00173/0.4814, allocations: 417.5 kB / 0.5198 GB, free: 37.97 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.036e-05/0.4815, allocations: 27.59 kB / 0.5199 GB, free: 37.97 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.749e-05/0.4816, allocations: 42.97 kB / 0.5199 GB, free: 37.96 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.413e-05/0.4816, allocations: 43.38 kB / 0.5199 GB, free: 37.95 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.684e-05/0.4817, allocations: 39.73 kB / 0.52 GB, free: 37.94 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008018/0.4897, allocations: 3.432 MB / 0.5233 GB, free: 36.14 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004539/0.4902, allocations: 240 kB / 0.5236 GB, free: 35.98 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000128/0.4903, allocations: 49.67 kB / 0.5236 GB, free: 35.96 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001338/0.4916, allocations: 257.4 kB / 0.5238 GB, free: 35.93 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000392/0.492, allocations: 211 kB / 0.524 GB, free: 35.86 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.968e-05/0.4921, allocations: 56.56 kB / 0.5241 GB, free: 35.85 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0002715/0.4924, allocations: 261.5 kB / 0.5243 GB, free: 35.72 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.4924, allocations: 1.938 kB / 0.5243 GB, free: 35.72 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.001046/0.4935, allocations: 229.8 kB / 0.5246 GB, free: 35.68 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.007432/0.5009, allocations: 4.014 MB / 0.5285 GB, free: 33.16 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.006198/0.5071, allocations: 2.563 MB / 0.531 GB, free: 30.93 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 1.625e-05/0.5072, allocations: 8 kB / 0.531 GB, free: 30.93 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003189/0.5104, allocations: 1.177 MB / 0.5321 GB, free: 29.75 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002026/0.5124, allocations: 164.6 kB / 0.5323 GB, free: 29.6 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0247/0.5371, allocations: 13.28 MB / 0.5453 GB, free: 15.62 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003645/0.5375, allocations: 0.9359 MB / 0.5462 GB, free: 14.66 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.00122/0.5388, allocations: 210.8 kB / 0.5464 GB, free: 14.46 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006287/0.5394, allocations: 215.4 kB / 0.5466 GB, free: 14.25 MB / 382.1 MB Notification: Performance of SimCode: time 1.353e-06/0.5394, allocations: 4 kB / 0.5466 GB, free: 14.24 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05413/0.5935, allocations: 19.81 MB / 0.5659 GB, free: 10.54 MB / 398.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000206/0.5938, allocations: 187.7 kB / 0.5661 GB, free: 10.28 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.259/2.853, allocations: 0 / 0.5661 GB, free: 10.28 MB / 398.1 MB (rm -f ModelicaTest_trunk_ModelicaTest.Blocks.KinematicPTP.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Blocks.KinematicPTP.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Blocks.KinematicPTP.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Blocks.KinematicPTP.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_trunk_ModelicaTest.Blocks.KinematicPTP_res.mat --tempDir=temp_ModelicaTest_trunk_ModelicaTest_Blocks_KinematicPTP_fmu --startTime=0 --stopTime=3 --timeout=50 --tolerance=1e-06 ModelicaTest_trunk_ModelicaTest_Blocks_KinematicPTP.fmu > ModelicaTest_trunk_ModelicaTest.Blocks.KinematicPTP.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_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_trunk_ModelicaTest.Blocks.KinematicPTP.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches