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.001273/0.001273, allocations: 118.8 kB / 17.79 MB, free: 5.254 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001248/0.001248, allocations: 198 kB / 18.73 MB, free: 4.312 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.425/1.425, allocations: 227.4 MB / 247 MB, free: 10.4 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.217/0.217, allocations: 46.12 MB / 344.3 MB, free: 11.42 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002147/0.002147, allocations: 75.88 kB / 480.9 MB, free: 4.477 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3369/0.3391, allocations: 62.44 MB / 0.5306 GB, free: 13.34 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.KinematicPTP): time 0.003653/0.3427, allocations: 2.416 MB / 0.533 GB, free: 11.42 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.001761/0.3445, allocations: 0.9786 MB / 0.5339 GB, free: 10.63 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001669/0.3447, allocations: 13.56 kB / 0.5339 GB, free: 10.62 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003994/0.3451, allocations: 114.6 kB / 0.534 GB, free: 10.54 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002191/0.3454, allocations: 89.48 kB / 0.5341 GB, free: 10.47 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006173/0.346, allocations: 300 kB / 0.5344 GB, free: 10.22 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006991/0.3467, allocations: 0.7155 MB / 0.5351 GB, free: 9.793 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001608/0.3469, allocations: 75.41 kB / 0.5352 GB, free: 9.75 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003274/0.3472, allocations: 296.2 kB / 0.5355 GB, free: 9.566 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004016/0.3476, allocations: 329.2 kB / 0.5358 GB, free: 9.332 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 9.669e-05/0.3477, allocations: 60.38 kB / 0.5358 GB, free: 9.332 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.269e-05/0.3478, allocations: 60.03 kB / 0.5359 GB, free: 9.332 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002088/0.348, allocations: 192.1 kB / 0.5361 GB, free: 9.184 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002363/0.3483, allocations: 243.2 kB / 0.5363 GB, free: 8.984 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005856/0.3489, allocations: 0.5563 MB / 0.5369 GB, free: 8.562 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.757e-06/0.3489, allocations: 0 / 0.5369 GB, free: 8.562 MB / 398.1 MB Notification: Performance of FrontEnd: time 2.084e-06/0.3489, allocations: 0 / 0.5369 GB, free: 8.562 MB / 398.1 MB Notification: Performance of Transformations before backend: time 7.494e-06/0.3489, allocations: 0 / 0.5369 GB, free: 8.562 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.002315/0.3512, allocations: 0.9501 MB / 0.5378 GB, free: 7.832 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.073e-05/0.3513, allocations: 9.75 kB / 0.5378 GB, free: 7.832 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001126/0.3514, allocations: 86.47 kB / 0.5379 GB, free: 7.754 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001175/0.3515, allocations: 66.45 kB / 0.5379 GB, free: 7.727 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005854/0.3521, allocations: 387 kB / 0.5383 GB, free: 7.383 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003741/0.3525, allocations: 265.8 kB / 0.5386 GB, free: 7.148 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001031/0.3526, allocations: 39.97 kB / 0.5386 GB, free: 7.137 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002085/0.3547, allocations: 0.8049 MB / 0.5394 GB, free: 6.617 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.913e-05/0.3547, allocations: 9.312 kB / 0.5394 GB, free: 6.609 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.657e-05/0.3548, allocations: 15.59 kB / 0.5394 GB, free: 6.598 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.742e-05/0.3548, allocations: 10.84 kB / 0.5394 GB, free: 6.598 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003656/0.3585, allocations: 1.206 MB / 0.5406 GB, free: 6.051 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002895/0.3614, allocations: 2.031 MB / 0.5426 GB, free: 4.309 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003107/0.3645, allocations: 0.8241 MB / 0.5434 GB, free: 3.898 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001573/0.3661, allocations: 499 kB / 0.5439 GB, free: 3.645 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.917e-05/0.3662, allocations: 6.25 kB / 0.5439 GB, free: 3.645 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.535e-05/0.3662, allocations: 46.06 kB / 0.5439 GB, free: 3.594 MB / 398.1 MB Notification: Performance of pre-optimization done (n=64): time 2.625e-06/0.3662, allocations: 0 / 0.5439 GB, free: 3.594 MB / 398.1 MB Notification: Performance of matching and sorting (n=120): time 0.08758/0.4538, allocations: 15.78 MB / 0.5593 GB, free: 3.816 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001124/0.454, allocations: 94.17 kB / 0.5594 GB, free: 3.703 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005651/0.4546, allocations: 385.6 kB / 0.5598 GB, free: 3.312 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001411/0.4547, allocations: 49.7 kB / 0.5598 GB, free: 3.258 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001836/0.4549, allocations: 229.5 kB / 0.56 GB, free: 3.027 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004092/0.4553, allocations: 412.5 kB / 0.5604 GB, free: 2.621 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005676/0.4559, allocations: 202.8 kB / 0.5606 GB, free: 2.414 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.000205/0.4561, allocations: 370.8 kB / 0.561 GB, free: 2.043 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003777/0.4599, allocations: 1.345 MB / 0.5623 GB, free: 0.6992 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003873/0.4638, allocations: 1.486 MB / 0.5637 GB, free: 15.17 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006976/0.4707, allocations: 2.453 MB / 0.5661 GB, free: 12.67 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.819e-06/0.4708, allocations: 0 / 0.5661 GB, free: 12.67 MB / 430.1 MB Notification: Performance of matching and sorting (n=148) (initialization): time 0.007971/0.4788, allocations: 2.834 MB / 0.5689 GB, free: 9.828 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.624e-05/0.4788, allocations: 8 kB / 0.5689 GB, free: 9.82 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.076e-05/0.4788, allocations: 0 / 0.5689 GB, free: 9.82 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.468e-05/0.4789, allocations: 12 kB / 0.5689 GB, free: 9.809 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002673/0.4815, allocations: 411.6 kB / 0.5693 GB, free: 9.406 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.542e-05/0.4816, allocations: 11.94 kB / 0.5693 GB, free: 9.395 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001944/0.4835, allocations: 223.7 kB / 0.5695 GB, free: 9.176 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000161/0.4837, allocations: 39.98 kB / 0.5696 GB, free: 9.137 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.0004918/0.4842, allocations: 234.8 kB / 0.5698 GB, free: 8.898 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002099/0.4844, allocations: 59.62 kB / 0.5699 GB, free: 8.84 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002816/0.4847, allocations: 112.7 kB / 0.57 GB, free: 8.73 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.232e-05/0.4847, allocations: 12 kB / 0.57 GB, free: 8.719 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.488e-05/0.4847, allocations: 3.938 kB / 0.57 GB, free: 8.715 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.093e-05/0.4848, allocations: 3.984 kB / 0.57 GB, free: 8.711 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01188/0.4966, allocations: 5.231 MB / 0.5751 GB, free: 3.137 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.593e-05/0.4967, allocations: 21 kB / 0.5751 GB, free: 3.117 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001533/0.4982, allocations: 355.4 kB / 0.5755 GB, free: 2.77 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.814e-05/0.4983, allocations: 28 kB / 0.5755 GB, free: 2.742 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.746e-05/0.4984, allocations: 48 kB / 0.5755 GB, free: 2.695 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.93e-05/0.4985, allocations: 43.86 kB / 0.5756 GB, free: 2.652 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.693e-05/0.4985, allocations: 35.81 kB / 0.5756 GB, free: 2.617 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007642/0.5062, allocations: 3.09 MB / 0.5786 GB, free: 15.23 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003958/0.5066, allocations: 244.6 kB / 0.5789 GB, free: 14.97 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001283/0.5067, allocations: 51.98 kB / 0.5789 GB, free: 14.92 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001278/0.508, allocations: 191.8 kB / 0.5791 GB, free: 14.73 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004331/0.5084, allocations: 219.2 kB / 0.5793 GB, free: 14.52 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.418e-05/0.5085, allocations: 59.98 kB / 0.5794 GB, free: 14.46 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.0003243/0.5089, allocations: 259.2 kB / 0.5796 GB, free: 14.2 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.7e-07/0.5089, allocations: 0 / 0.5796 GB, free: 14.2 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.0009599/0.5098, allocations: 232 kB / 0.5798 GB, free: 13.98 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.008113/0.518, allocations: 3.698 MB / 0.5834 GB, free: 9.969 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.006706/0.5247, allocations: 2.383 MB / 0.5858 GB, free: 7.59 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 1.657e-05/0.5247, allocations: 4 kB / 0.5858 GB, free: 7.586 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003471/0.5282, allocations: 1.063 MB / 0.5868 GB, free: 6.527 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001288/0.5295, allocations: 159.1 kB / 0.587 GB, free: 6.379 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02769/0.5572, allocations: 12.38 MB / 0.599 GB, free: 9.254 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006892/0.5579, allocations: 0.9281 MB / 0.6 GB, free: 8.297 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.001055/0.559, allocations: 210 kB / 0.6002 GB, free: 8.09 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007025/0.5597, allocations: 219.4 kB / 0.6004 GB, free: 7.875 MB / 462.1 MB Notification: Performance of SimCode: time 5.51e-07/0.5597, allocations: 0 / 0.6004 GB, free: 7.875 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04971/0.6094, allocations: 21.59 MB / 0.6215 GB, free: 2.355 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.887/9.496, allocations: 12.61 kB / 0.6215 GB, free: 2.344 MB / 478.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