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.001065/0.001065, allocations: 118.2 kB / 17.79 MB, free: 5.273 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001119/0.001119, allocations: 198 kB / 18.74 MB, free: 4.332 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.531/1.531, allocations: 227.4 MB / 246.9 MB, free: 10.48 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2575/0.2575, allocations: 46.11 MB / 344.3 MB, free: 11.5 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001302/0.001302, allocations: 75.88 kB / 481.3 MB, free: 4.09 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4004/0.4017, allocations: 62.43 MB / 0.531 GB, free: 13.6 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.KinematicPTP): time 0.004486/0.4063, allocations: 2.415 MB / 0.5333 GB, free: 11.68 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.002031/0.4083, allocations: 0.974 MB / 0.5343 GB, free: 10.89 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002183/0.4086, allocations: 9.438 kB / 0.5343 GB, free: 10.89 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004264/0.409, allocations: 116.2 kB / 0.5344 GB, free: 10.8 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002421/0.4093, allocations: 95.83 kB / 0.5345 GB, free: 10.73 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008058/0.4101, allocations: 292.3 kB / 0.5348 GB, free: 10.48 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007433/0.4109, allocations: 0.7206 MB / 0.5355 GB, free: 10.05 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001923/0.4111, allocations: 71.25 kB / 0.5356 GB, free: 10.02 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003547/0.4114, allocations: 300.7 kB / 0.5358 GB, free: 9.828 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004343/0.4119, allocations: 328.7 kB / 0.5362 GB, free: 9.594 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001123/0.412, allocations: 60.22 kB / 0.5362 GB, free: 9.594 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001022/0.4121, allocations: 59.94 kB / 0.5363 GB, free: 9.594 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002113/0.4123, allocations: 192 kB / 0.5365 GB, free: 9.445 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003396/0.4127, allocations: 239.8 kB / 0.5367 GB, free: 9.25 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006957/0.4134, allocations: 0.5567 MB / 0.5372 GB, free: 8.828 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.077e-06/0.4134, allocations: 0 / 0.5372 GB, free: 8.828 MB / 398.1 MB Notification: Performance of FrontEnd: time 3.687e-06/0.4134, allocations: 0 / 0.5372 GB, free: 8.828 MB / 398.1 MB Notification: Performance of Transformations before backend: time 9.378e-06/0.4134, allocations: 5.312 kB / 0.5372 GB, free: 8.824 MB / 398.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.002288/0.4157, allocations: 0.9452 MB / 0.5382 GB, free: 8.098 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.664e-05/0.4158, allocations: 13.34 kB / 0.5382 GB, free: 8.094 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000137/0.4159, allocations: 65.7 kB / 0.5382 GB, free: 8.066 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006726/0.4166, allocations: 387.2 kB / 0.5386 GB, free: 7.723 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004081/0.417, allocations: 261.8 kB / 0.5388 GB, free: 7.492 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.034e-05/0.4171, allocations: 40.03 kB / 0.5389 GB, free: 7.48 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002084/0.4192, allocations: 0.817 MB / 0.5397 GB, free: 6.949 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.067e-05/0.4192, allocations: 5.359 kB / 0.5397 GB, free: 6.945 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.506e-05/0.4193, allocations: 16.88 kB / 0.5397 GB, free: 6.934 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.278e-05/0.4193, allocations: 9 kB / 0.5397 GB, free: 6.934 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003608/0.4229, allocations: 1.203 MB / 0.5409 GB, free: 6.391 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002946/0.4259, allocations: 2.015 MB / 0.5429 GB, free: 4.664 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003073/0.429, allocations: 0.8318 MB / 0.5437 GB, free: 4.246 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001493/0.4305, allocations: 499 kB / 0.5441 GB, free: 3.984 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.369e-05/0.4306, allocations: 11.98 kB / 0.5442 GB, free: 3.973 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.271e-05/0.4306, allocations: 42.5 kB / 0.5442 GB, free: 3.922 MB / 398.1 MB Notification: Performance of pre-optimization done (n=64): time 2.985e-06/0.4306, allocations: 0 / 0.5442 GB, free: 3.922 MB / 398.1 MB Notification: Performance of matching and sorting (n=120): time 0.0861/0.5167, allocations: 15.78 MB / 0.5596 GB, free: 3.969 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.075e-05/0.5169, allocations: 90.23 kB / 0.5597 GB, free: 3.859 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004899/0.5174, allocations: 393.4 kB / 0.5601 GB, free: 3.461 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001355/0.5175, allocations: 45.7 kB / 0.5601 GB, free: 3.41 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001518/0.5177, allocations: 221.6 kB / 0.5603 GB, free: 3.188 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003752/0.518, allocations: 428.3 kB / 0.5607 GB, free: 2.766 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005588/0.5186, allocations: 194.9 kB / 0.5609 GB, free: 2.566 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001534/0.5188, allocations: 374.8 kB / 0.5613 GB, free: 2.191 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003526/0.5223, allocations: 1.342 MB / 0.5626 GB, free: 0.8516 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00366/0.526, allocations: 1.497 MB / 0.564 GB, free: 15.3 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006692/0.5327, allocations: 2.445 MB / 0.5664 GB, free: 12.82 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.222e-06/0.5327, allocations: 8 kB / 0.5664 GB, free: 12.81 MB / 430.1 MB Notification: Performance of matching and sorting (n=148) (initialization): time 0.007868/0.5406, allocations: 2.83 MB / 0.5692 GB, free: 9.969 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.654e-05/0.5406, allocations: 8.25 kB / 0.5692 GB, free: 9.961 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.061e-05/0.5407, allocations: 4 kB / 0.5692 GB, free: 9.957 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.422e-05/0.5407, allocations: 8 kB / 0.5692 GB, free: 9.949 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002728/0.5434, allocations: 407.4 kB / 0.5696 GB, free: 9.551 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.702e-05/0.5435, allocations: 15.88 kB / 0.5696 GB, free: 9.535 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001939/0.5454, allocations: 223.7 kB / 0.5698 GB, free: 9.316 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001509/0.5456, allocations: 39.98 kB / 0.5699 GB, free: 9.277 MB / 430.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.0004573/0.546, allocations: 226.9 kB / 0.5701 GB, free: 9.047 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002101/0.5463, allocations: 59.62 kB / 0.5701 GB, free: 8.988 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002773/0.5465, allocations: 108.7 kB / 0.5703 GB, free: 8.883 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.172e-05/0.5466, allocations: 12 kB / 0.5703 GB, free: 8.871 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.115e-05/0.5466, allocations: 3.938 kB / 0.5703 GB, free: 8.867 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.086e-05/0.5466, allocations: 15.91 kB / 0.5703 GB, free: 8.852 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0115/0.5581, allocations: 5.232 MB / 0.5754 GB, free: 3.281 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.25e-05/0.5581, allocations: 20 kB / 0.5754 GB, free: 3.262 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001464/0.5596, allocations: 355.6 kB / 0.5757 GB, free: 2.914 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.212e-05/0.5597, allocations: 28 kB / 0.5758 GB, free: 2.887 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001113/0.5598, allocations: 44 kB / 0.5758 GB, free: 2.844 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.736e-05/0.5598, allocations: 47.78 kB / 0.5759 GB, free: 2.797 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.2e-05/0.5598, allocations: 31.88 kB / 0.5759 GB, free: 2.766 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00732/0.5672, allocations: 3.093 MB / 0.5789 GB, free: 15.37 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004577/0.5677, allocations: 244.6 kB / 0.5791 GB, free: 15.11 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000141/0.5678, allocations: 47.98 kB / 0.5792 GB, free: 15.07 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001283/0.5691, allocations: 195.8 kB / 0.5794 GB, free: 14.88 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004165/0.5695, allocations: 215.2 kB / 0.5796 GB, free: 14.66 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.939e-05/0.5696, allocations: 56 kB / 0.5796 GB, free: 14.61 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.0003749/0.57, allocations: 263.1 kB / 0.5799 GB, free: 14.35 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.57, allocations: 0 / 0.5799 GB, free: 14.35 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.0009738/0.571, allocations: 228 kB / 0.5801 GB, free: 14.13 MB / 446.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.0002204/0.5712, allocations: 186.7 kB / 0.5803 GB, free: 13.94 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.006514/0.5777, allocations: 2.383 MB / 0.5826 GB, free: 11.56 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 1.676e-05/0.5778, allocations: 4 kB / 0.5826 GB, free: 11.55 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003479/0.5812, allocations: 1.067 MB / 0.5837 GB, free: 10.49 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001358/0.5826, allocations: 155 kB / 0.5838 GB, free: 10.35 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003926/0.5866, allocations: 1.967 MB / 0.5857 GB, free: 8.062 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005141/0.5871, allocations: 0.9204 MB / 0.5866 GB, free: 7.117 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.001051/0.5882, allocations: 214 kB / 0.5868 GB, free: 6.906 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005939/0.5888, allocations: 67.44 kB / 0.5869 GB, free: 6.84 MB / 446.1 MB Notification: Performance of SimCode: time 2.9e-07/0.5888, allocations: 0 / 0.5869 GB, free: 6.84 MB / 446.1 MB Notification: Performance of Templates: time 0.02816/0.6169, allocations: 16.79 MB / 0.6033 GB, free: 6.062 MB / 462.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 -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/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Blocks/KinematicPTP/KinematicPTP.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_trunk_ModelicaTest.Blocks.KinematicPTP.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches