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/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/ModelicaServices 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 ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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) 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/Complex trunk/package.mo): time 0.001616/0.001616, allocations: 207.3 kB / 17.99 MB, free: 3.777 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.266/1.266, allocations: 226.7 MB / 245.5 MB, free: 6.988 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009173/0.0009173, allocations: 109.3 kB / 296.7 MB, free: 6.504 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.3328/0.3328, allocations: 44.82 MB / 392.7 MB, free: 34.76 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.001119/0.001119, allocations: 55.91 kB / 465.5 MB, free: 12.15 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3561/0.3572, allocations: 62.02 MB / 0.5151 GB, free: 37.69 MB / 378.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.KinematicPTP): time 0.003173/0.3604, allocations: 2.456 MB / 0.5175 GB, free: 35.93 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.001422/0.3619, allocations: 0.9611 MB / 0.5185 GB, free: 35.26 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001411/0.3621, allocations: 9.688 kB / 0.5185 GB, free: 35.25 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 0.000365/0.3624, allocations: 97.14 kB / 0.5186 GB, free: 35.22 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001874/0.3626, allocations: 86.23 kB / 0.5187 GB, free: 35.17 MB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004863/0.3631, allocations: 256 kB / 0.5189 GB, free: 35.02 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 0.0005015/0.3636, allocations: 0.6886 MB / 0.5196 GB, free: 34.75 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001623/0.3638, allocations: 70.22 kB / 0.5196 GB, free: 34.72 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002342/0.364, allocations: 269 kB / 0.5199 GB, free: 34.62 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002954/0.3643, allocations: 324.5 kB / 0.5202 GB, free: 34.49 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 7.592e-05/0.3644, allocations: 31 kB / 0.5202 GB, free: 34.49 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 6.749e-05/0.3645, allocations: 34.62 kB / 0.5203 GB, free: 34.49 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001522/0.3647, allocations: 166.6 kB / 0.5204 GB, free: 34.42 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001619/0.3648, allocations: 221 kB / 0.5206 GB, free: 34.29 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003972/0.3652, allocations: 0.5199 MB / 0.5212 GB, free: 34.07 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.34e-06/0.3652, allocations: 0 / 0.5212 GB, free: 34.07 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.222e-06/0.3653, allocations: 0 / 0.5212 GB, free: 34.07 MB / 378.7 MB Notification: Performance of Transformations before backend: time 6.692e-06/0.3653, allocations: 0 / 0.5212 GB, free: 34.07 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.002096/0.3674, allocations: 0.9302 MB / 0.5221 GB, free: 33.49 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.804e-05/0.3674, allocations: 13.59 kB / 0.5221 GB, free: 33.49 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000111/0.3675, allocations: 64.06 kB / 0.5221 GB, free: 33.46 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004452/0.368, allocations: 371.1 kB / 0.5225 GB, free: 33.18 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002992/0.3683, allocations: 263 kB / 0.5227 GB, free: 32.96 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.361e-05/0.3684, allocations: 41.52 kB / 0.5228 GB, free: 32.95 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00183/0.3702, allocations: 0.8134 MB / 0.5236 GB, free: 32.61 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.971e-05/0.3703, allocations: 0 / 0.5236 GB, free: 32.61 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.017e-05/0.3703, allocations: 20.94 kB / 0.5236 GB, free: 32.59 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.1e-05/0.3703, allocations: 11.56 kB / 0.5236 GB, free: 32.59 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003317/0.3737, allocations: 1.201 MB / 0.5248 GB, free: 32.31 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00238/0.3761, allocations: 2.05 MB / 0.5268 GB, free: 30.83 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002836/0.3789, allocations: 0.8203 MB / 0.5276 GB, free: 30.6 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00138/0.3803, allocations: 0.4886 MB / 0.5281 GB, free: 30.45 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.83e-05/0.3804, allocations: 12.3 kB / 0.5281 GB, free: 30.44 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.105e-05/0.3804, allocations: 45.12 kB / 0.5281 GB, free: 30.39 MB / 378.7 MB Notification: Performance of pre-optimization done (n=64): time 2.295e-06/0.3804, allocations: 0 / 0.5281 GB, free: 30.39 MB / 378.7 MB Notification: Performance of matching and sorting (n=120): time 0.08453/0.465, allocations: 15.75 MB / 0.5435 GB, free: 25.03 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.344e-05/0.465, allocations: 88.48 kB / 0.5436 GB, free: 24.94 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004437/0.4655, allocations: 386.7 kB / 0.5439 GB, free: 24.7 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001457/0.4656, allocations: 41.2 kB / 0.544 GB, free: 24.65 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000104/0.4658, allocations: 233.4 kB / 0.5442 GB, free: 24.44 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002956/0.4661, allocations: 396.5 kB / 0.5446 GB, free: 24.09 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005473/0.4666, allocations: 197.3 kB / 0.5448 GB, free: 23.97 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 8.91e-05/0.4667, allocations: 373.5 kB / 0.5451 GB, free: 23.61 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00347/0.4702, allocations: 1.343 MB / 0.5464 GB, free: 22.88 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003792/0.474, allocations: 1.495 MB / 0.5479 GB, free: 22 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006315/0.4803, allocations: 2.45 MB / 0.5503 GB, free: 20.62 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.27e-06/0.4803, allocations: 1.062 kB / 0.5503 GB, free: 20.62 MB / 378.7 MB Notification: Performance of matching and sorting (n=148) (initialization): time 0.007/0.4873, allocations: 2.827 MB / 0.5531 GB, free: 18.23 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.647e-05/0.4874, allocations: 8 kB / 0.5531 GB, free: 18.23 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.068e-05/0.4874, allocations: 7.938 kB / 0.5531 GB, free: 18.22 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.35e-05/0.4874, allocations: 8 kB / 0.5531 GB, free: 18.21 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002563/0.49, allocations: 411.7 kB / 0.5535 GB, free: 17.81 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.638e-05/0.49, allocations: 15.88 kB / 0.5535 GB, free: 17.79 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001911/0.4919, allocations: 215.7 kB / 0.5537 GB, free: 17.58 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001397/0.4921, allocations: 39.98 kB / 0.5537 GB, free: 17.54 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.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.000391/0.4925, allocations: 234.4 kB / 0.554 GB, free: 17.3 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001975/0.4927, allocations: 63.25 kB / 0.554 GB, free: 17.24 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002528/0.493, allocations: 112.7 kB / 0.5541 GB, free: 17.13 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.945e-06/0.493, allocations: 12 kB / 0.5541 GB, free: 17.12 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.627e-05/0.493, allocations: 3.938 kB / 0.5541 GB, free: 17.11 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.547e-06/0.493, allocations: 7.969 kB / 0.5541 GB, free: 17.11 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0094/0.5024, allocations: 5.224 MB / 0.5592 GB, free: 11.54 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.741e-05/0.5025, allocations: 23.98 kB / 0.5593 GB, free: 11.51 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001328/0.5038, allocations: 351.5 kB / 0.5596 GB, free: 11.17 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.812e-05/0.5038, allocations: 28 kB / 0.5596 GB, free: 11.14 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.945e-05/0.5039, allocations: 48 kB / 0.5597 GB, free: 11.09 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.01e-05/0.5039, allocations: 51.78 kB / 0.5597 GB, free: 11.04 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.257e-05/0.504, allocations: 39.8 kB / 0.5598 GB, free: 11 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01064/0.5146, allocations: 5.611 MB / 0.5652 GB, free: 4.969 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003341/0.515, allocations: 240.3 kB / 0.5655 GB, free: 4.715 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.598e-05/0.5151, allocations: 51.98 kB / 0.5655 GB, free: 4.664 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001198/0.5163, allocations: 187.8 kB / 0.5657 GB, free: 4.48 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003974/0.5167, allocations: 227.2 kB / 0.5659 GB, free: 4.258 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.091e-05/0.5168, allocations: 56 kB / 0.566 GB, free: 4.203 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.000209/0.517, allocations: 263.1 kB / 0.5662 GB, free: 3.945 MB / 378.7 MB Notification: Performance of sort global known variables: time 1e-07/0.517, allocations: 0 / 0.5662 GB, free: 3.945 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.001064/0.5181, allocations: 252 kB / 0.5665 GB, free: 3.699 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 (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.0001916/0.5183, allocations: 158.8 kB / 0.5666 GB, free: 3.535 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.005585/0.5239, allocations: 2.352 MB / 0.5689 GB, free: 1.188 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 8.206e-06/0.5239, allocations: 0 / 0.5689 GB, free: 1.188 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002977/0.5269, allocations: 1.067 MB / 0.57 GB, free: 128 kB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001212/0.5281, allocations: 146.5 kB / 0.5701 GB, free: 15.98 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004167/0.5323, allocations: 2.776 MB / 0.5728 GB, free: 12.88 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005382/0.5328, allocations: 0.952 MB / 0.5737 GB, free: 11.9 MB / 394.7 MB Notification: Performance of simCode: alias equations: time 0.001271/0.5341, allocations: 206.1 kB / 0.5739 GB, free: 11.7 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005819/0.5347, allocations: 67.42 kB / 0.574 GB, free: 11.63 MB / 394.7 MB Notification: Performance of SimCode: time 4.3e-07/0.5347, allocations: 0 / 0.574 GB, free: 11.63 MB / 394.7 MB Notification: Performance of Templates: time 0.02333/0.558, allocations: 16.09 MB / 0.5897 GB, free: 11.56 MB / 410.7 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 -emit_protected -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.Blocks.KinematicPTP.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_ModelicaTest.Blocks.KinematicPTP_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Blocks/KinematicPTP/KinematicPTP.csv","../files/ModelicaTest_trunk_ModelicaTest.Blocks.KinematicPTP.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches