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: translateModel(ModelicaTest.Blocks.KinematicPTP,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|integrator.y|integrator1.y|integrator2.y|integrator3.y",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Blocks.KinematicPTP") translateModel(ModelicaTest.Blocks.KinematicPTP,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|integrator.y|integrator1.y|integrator2.y|integrator3.y",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Blocks.KinematicPTP") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001221/0.001221, allocations: 115.9 kB / 18.41 MB, free: 4.559 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001427/0.001428, allocations: 203.5 kB / 19.36 MB, free: 3.617 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.241/1.241, allocations: 227.4 MB / 247.5 MB, free: 10.36 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.1865/0.1865, allocations: 46.11 MB / 344.9 MB, free: 11.48 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001269/0.001269, allocations: 80.44 kB / 419 MB, free: 19.01 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09551/0.09679, allocations: 62.45 MB / 481.5 MB, free: 4.52 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.KinematicPTP): time 0.003385/0.1002, allocations: 2.409 MB / 483.9 MB, free: 2.098 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.00141/0.1016, allocations: 0.9747 MB / 484.8 MB, free: 1.117 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000125/0.1018, allocations: 7.938 kB / 484.9 MB, free: 1.109 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003038/0.1021, allocations: 119.2 kB / 485 MB, free: 0.9922 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001831/0.1023, allocations: 91.39 kB / 485.1 MB, free: 0.9023 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000547/0.1028, allocations: 291.5 kB / 485.3 MB, free: 0.6172 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006/0.1035, allocations: 0.7096 MB / 486.1 MB, free: 15.91 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001441/0.1036, allocations: 69.05 kB / 486.1 MB, free: 15.84 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002722/0.1039, allocations: 302.9 kB / 486.4 MB, free: 15.54 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003299/0.1042, allocations: 330.8 kB / 486.7 MB, free: 15.21 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 7.465e-05/0.1043, allocations: 60 kB / 486.8 MB, free: 15.16 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.224e-05/0.1044, allocations: 60 kB / 486.9 MB, free: 15.1 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001696/0.1046, allocations: 191.5 kB / 487 MB, free: 14.91 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001825/0.1048, allocations: 234.8 kB / 487.3 MB, free: 14.68 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004382/0.1052, allocations: 0.5567 MB / 487.8 MB, free: 14.12 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.297e-06/0.1052, allocations: 0 / 487.8 MB, free: 14.12 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.553e-06/0.1052, allocations: 0 / 487.8 MB, free: 14.12 MB / 366.1 MB Notification: Performance of Transformations before backend: time 6.222e-06/0.1052, allocations: 0 / 487.8 MB, free: 14.12 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.001957/0.1072, allocations: 0.9277 MB / 488.8 MB, free: 13.14 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.072e-05/0.1072, allocations: 15.97 kB / 488.8 MB, free: 13.13 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.569e-05/0.1073, allocations: 64.28 kB / 488.8 MB, free: 13.07 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000513/0.1078, allocations: 383.2 kB / 489.2 MB, free: 12.65 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003094/0.1082, allocations: 259.7 kB / 489.5 MB, free: 12.36 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.124e-05/0.1083, allocations: 44.36 kB / 489.5 MB, free: 12.32 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001711/0.11, allocations: 0.8087 MB / 490.3 MB, free: 11.47 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.843e-05/0.11, allocations: 11.84 kB / 490.3 MB, free: 11.46 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.301e-05/0.1101, allocations: 19.98 kB / 490.3 MB, free: 11.44 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.003e-05/0.1101, allocations: 8 kB / 490.4 MB, free: 11.43 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003047/0.1131, allocations: 1.208 MB / 491.6 MB, free: 10.23 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002521/0.1157, allocations: 2.035 MB / 493.6 MB, free: 8.105 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002608/0.1183, allocations: 0.836 MB / 494.4 MB, free: 7.254 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001307/0.1196, allocations: 497.8 kB / 494.9 MB, free: 6.762 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.612e-05/0.1197, allocations: 8 kB / 494.9 MB, free: 6.754 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.343e-05/0.1197, allocations: 38.5 kB / 495 MB, free: 6.707 MB / 366.1 MB Notification: Performance of pre-optimization done (n=64): time 1.853e-06/0.1197, allocations: 3.938 kB / 495 MB, free: 6.703 MB / 366.1 MB Notification: Performance of matching and sorting (n=120): time 0.108/0.2278, allocations: 15.75 MB / 0.4987 GB, free: 6.773 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.824e-05/0.2278, allocations: 94.23 kB / 0.4988 GB, free: 6.664 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004159/0.2283, allocations: 389.4 kB / 0.4992 GB, free: 6.273 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001356/0.2284, allocations: 45.7 kB / 0.4993 GB, free: 6.223 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001987/0.2286, allocations: 217.1 kB / 0.4995 GB, free: 6.004 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003747/0.229, allocations: 402.1 kB / 0.4998 GB, free: 5.605 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005349/0.2295, allocations: 194.8 kB / 0.5 GB, free: 5.406 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001428/0.2297, allocations: 374.8 kB / 0.5004 GB, free: 5.031 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003333/0.233, allocations: 1.342 MB / 0.5017 GB, free: 3.691 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003386/0.2364, allocations: 1.501 MB / 0.5032 GB, free: 2.145 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.1692/0.4056, allocations: 2.43 MB / 0.5055 GB, free: 42.87 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.492e-06/0.4057, allocations: 1.219 kB / 0.5055 GB, free: 42.87 MB / 382.1 MB Notification: Performance of matching and sorting (n=148) (initialization): time 0.006933/0.4126, allocations: 2.827 MB / 0.5083 GB, free: 42.34 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.984e-05/0.4126, allocations: 6.781 kB / 0.5083 GB, free: 42.34 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.769e-06/0.4127, allocations: 4 kB / 0.5083 GB, free: 42.34 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.639e-05/0.4127, allocations: 9.828 kB / 0.5083 GB, free: 42.34 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002542/0.4152, allocations: 408.3 kB / 0.5087 GB, free: 42.31 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.32e-05/0.4153, allocations: 14.84 kB / 0.5087 GB, free: 42.31 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001801/0.4171, allocations: 216.9 kB / 0.5089 GB, free: 42.29 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001631/0.4172, allocations: 44.25 kB / 0.509 GB, free: 42.28 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.000387/0.4176, allocations: 236.2 kB / 0.5092 GB, free: 42.1 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001951/0.4178, allocations: 64.5 kB / 0.5093 GB, free: 42.1 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002089/0.4181, allocations: 108.7 kB / 0.5094 GB, free: 42 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.081e-05/0.4181, allocations: 12.69 kB / 0.5094 GB, free: 42 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.737e-06/0.4181, allocations: 6.531 kB / 0.5094 GB, free: 42 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.488e-06/0.4181, allocations: 4.828 kB / 0.5094 GB, free: 42 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01003/0.4281, allocations: 5.224 MB / 0.5145 GB, free: 39.61 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.429e-05/0.4282, allocations: 25.78 kB / 0.5145 GB, free: 39.6 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001358/0.4295, allocations: 356.5 kB / 0.5148 GB, free: 39.57 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.142e-05/0.4296, allocations: 28.38 kB / 0.5149 GB, free: 39.57 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.836e-05/0.4297, allocations: 44.09 kB / 0.5149 GB, free: 39.55 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.858e-05/0.4297, allocations: 43.97 kB / 0.515 GB, free: 39.54 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.861e-05/0.4298, allocations: 30.56 kB / 0.515 GB, free: 39.54 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006092/0.4359, allocations: 3.09 MB / 0.518 GB, free: 37.79 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003397/0.4362, allocations: 237.3 kB / 0.5182 GB, free: 37.62 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001284/0.4363, allocations: 49.64 kB / 0.5183 GB, free: 37.61 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001154/0.4375, allocations: 194.5 kB / 0.5185 GB, free: 37.58 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003836/0.4379, allocations: 221.3 kB / 0.5187 GB, free: 37.49 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000102/0.438, allocations: 59.53 kB / 0.5187 GB, free: 37.48 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0002367/0.4382, allocations: 263 kB / 0.519 GB, free: 37.35 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.4382, allocations: 1.125 kB / 0.519 GB, free: 37.35 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0009012/0.4392, allocations: 226.8 kB / 0.5192 GB, free: 37.32 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.0001758/0.4393, allocations: 171 kB / 0.5194 GB, free: 37.19 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.005153/0.4445, allocations: 2.389 MB / 0.5217 GB, free: 36.34 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 1.158e-05/0.4445, allocations: 3.656 kB / 0.5217 GB, free: 36.34 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002799/0.4473, allocations: 1.069 MB / 0.5227 GB, free: 36 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001133/0.4485, allocations: 146.7 kB / 0.5229 GB, free: 35.95 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002904/0.4514, allocations: 1.955 MB / 0.5248 GB, free: 34.43 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003121/0.4517, allocations: 0.9223 MB / 0.5257 GB, free: 33.64 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0008549/0.4526, allocations: 213.2 kB / 0.5259 GB, free: 33.52 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005352/0.4531, allocations: 74.36 kB / 0.526 GB, free: 33.5 MB / 382.1 MB Notification: Performance of SimCode: time 2.21e-07/0.4531, allocations: 0 / 0.526 GB, free: 33.5 MB / 382.1 MB Notification: Performance of Templates: time 0.01746/0.4706, allocations: 16.58 MB / 0.5422 GB, free: 18.83 MB / 382.1 MB make -j1 -f ModelicaTest_trunk_ModelicaTest.Blocks.KinematicPTP.makefile (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 & ./ModelicaTest_trunk_ModelicaTest.Blocks.KinematicPTP -abortSlowSimulation -alarm=480 -s gbode -emit_protected -lv LOG_STATS > 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