Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_cpp_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: "" <> buildModelFMU(ModelicaTest.Blocks.KinematicPTP,fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest_Blocks_KinematicPTP",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Blocks.KinematicPTP,fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest_Blocks_KinematicPTP",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0009064/0.0009065, allocations: 193.9 kB / 16.09 MB, free: 5.684 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.249/1.249, allocations: 226.5 MB / 243.4 MB, free: 6.379 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007918/0.0007919, allocations: 103.2 kB / 295.5 MB, free: 6.684 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2799/0.2799, allocations: 44.82 MB / 392.3 MB, free: 35.67 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002593/0.0002593, allocations: 8 kB / 465.4 MB, free: 12.61 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2881/0.2884, allocations: 62.96 MB / 0.516 GB, free: 37.16 MB / 378.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.KinematicPTP): time 0.001791/0.2902, allocations: 2.006 MB / 0.5179 GB, free: 35.67 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.00112/0.2914, allocations: 0.9195 MB / 0.5188 GB, free: 35.04 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001248/0.2915, allocations: 14.94 kB / 0.5188 GB, free: 35.02 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002706/0.2918, allocations: 93.72 kB / 0.5189 GB, free: 34.99 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001552/0.2919, allocations: 67.27 kB / 0.519 GB, free: 34.95 MB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004134/0.2924, allocations: 229.5 kB / 0.5192 GB, free: 34.84 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 0.0004484/0.2928, allocations: 0.6265 MB / 0.5198 GB, free: 34.58 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001327/0.293, allocations: 70.7 kB / 0.5199 GB, free: 34.54 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002269/0.2932, allocations: 261.9 kB / 0.5201 GB, free: 34.45 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002436/0.2934, allocations: 296.5 kB / 0.5204 GB, free: 34.33 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 6.452e-05/0.2935, allocations: 31.44 kB / 0.5204 GB, free: 34.33 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 6.219e-05/0.2936, allocations: 29.53 kB / 0.5205 GB, free: 34.33 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001214/0.2937, allocations: 153 kB / 0.5206 GB, free: 34.27 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001585/0.2939, allocations: 244.6 kB / 0.5208 GB, free: 34.11 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002479/0.2941, allocations: 382.6 kB / 0.5212 GB, free: 34.02 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.53e-06/0.2942, allocations: 2.812 kB / 0.5212 GB, free: 34.02 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.603e-06/0.2942, allocations: 0 / 0.5212 GB, free: 34.02 MB / 378.7 MB Notification: Performance of Transformations before backend: time 5.58e-06/0.2942, allocations: 0 / 0.5212 GB, free: 34.02 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.001841/0.296, allocations: 0.9206 MB / 0.5221 GB, free: 33.49 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.421e-05/0.2961, allocations: 8.281 kB / 0.5221 GB, free: 33.49 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.666e-05/0.2962, allocations: 90.08 kB / 0.5222 GB, free: 33.42 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.631e-05/0.2962, allocations: 62.12 kB / 0.5223 GB, free: 33.39 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003675/0.2966, allocations: 374.7 kB / 0.5226 GB, free: 33.1 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002844/0.2969, allocations: 278.7 kB / 0.5229 GB, free: 32.88 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.462e-05/0.297, allocations: 42.92 kB / 0.5229 GB, free: 32.87 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001814/0.2988, allocations: 0.8714 MB / 0.5238 GB, free: 32.52 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.637e-05/0.2988, allocations: 0 / 0.5238 GB, free: 32.52 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.258e-05/0.2989, allocations: 17.53 kB / 0.5238 GB, free: 32.51 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.816e-06/0.2989, allocations: 7.938 kB / 0.5238 GB, free: 32.51 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003206/0.3021, allocations: 1.322 MB / 0.5251 GB, free: 32.21 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002148/0.3043, allocations: 2.086 MB / 0.5271 GB, free: 30.73 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002721/0.307, allocations: 0.89 MB / 0.528 GB, free: 30.49 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001361/0.3084, allocations: 0.5431 MB / 0.5285 GB, free: 30.33 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.434e-05/0.3085, allocations: 13.2 kB / 0.5285 GB, free: 30.32 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.886e-05/0.3085, allocations: 51.73 kB / 0.5286 GB, free: 30.27 MB / 378.7 MB Notification: Performance of pre-optimization done (n=64): time 1.963e-06/0.3085, allocations: 0 / 0.5286 GB, free: 30.27 MB / 378.7 MB Notification: Performance of matching and sorting (n=120): time 0.08504/0.3936, allocations: 18.22 MB / 0.5464 GB, free: 24.95 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.795e-05/0.3936, allocations: 98.83 kB / 0.5465 GB, free: 24.85 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003844/0.394, allocations: 380 kB / 0.5468 GB, free: 24.61 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.000127/0.3942, allocations: 45.98 kB / 0.5469 GB, free: 24.56 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.294e-05/0.3943, allocations: 223.5 kB / 0.5471 GB, free: 24.36 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000267/0.3945, allocations: 397.7 kB / 0.5475 GB, free: 24.01 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001449/0.3947, allocations: 21.25 kB / 0.5475 GB, free: 23.99 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 8.465e-05/0.3948, allocations: 377.6 kB / 0.5479 GB, free: 23.63 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003471/0.3983, allocations: 1.451 MB / 0.5493 GB, free: 22.82 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003293/0.4016, allocations: 1.603 MB / 0.5508 GB, free: 21.18 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005981/0.4075, allocations: 2.668 MB / 0.5535 GB, free: 18.46 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.825e-06/0.4076, allocations: 0 / 0.5535 GB, free: 18.46 MB / 378.7 MB Notification: Performance of matching and sorting (n=148) (initialization): time 0.006796/0.4144, allocations: 3.051 MB / 0.5564 GB, free: 15.41 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.044e-05/0.4144, allocations: 8 kB / 0.5564 GB, free: 15.4 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.061e-05/0.4144, allocations: 4 kB / 0.5564 GB, free: 15.39 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.592e-05/0.4144, allocations: 8.25 kB / 0.5565 GB, free: 15.39 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002594/0.417, allocations: 471.3 kB / 0.5569 GB, free: 14.93 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.361e-05/0.4171, allocations: 15.88 kB / 0.5569 GB, free: 14.91 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001849/0.4189, allocations: 283.7 kB / 0.5572 GB, free: 14.63 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000143/0.4191, allocations: 39.98 kB / 0.5572 GB, free: 14.59 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.moving[1],kinematicPTP2b.noWphase,kinematicPTP1a.noWphase,kinematicPTP1b.moving[1],kinematicPTP1b.noWphase,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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0003902/0.4195, allocations: 235.6 kB / 0.5574 GB, free: 14.36 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001808/0.4196, allocations: 63.25 kB / 0.5575 GB, free: 14.29 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002143/0.4199, allocations: 112.7 kB / 0.5576 GB, free: 14.18 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.263e-06/0.4199, allocations: 12 kB / 0.5576 GB, free: 14.17 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.654e-05/0.4199, allocations: 3.938 kB / 0.5576 GB, free: 14.17 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.767e-06/0.4199, allocations: 3.984 kB / 0.5576 GB, free: 14.16 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009658/0.4296, allocations: 5.54 MB / 0.563 GB, free: 8.277 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.531e-05/0.4296, allocations: 23.98 kB / 0.5631 GB, free: 8.254 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001347/0.431, allocations: 407.7 kB / 0.5635 GB, free: 7.855 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.756e-05/0.431, allocations: 24 kB / 0.5635 GB, free: 7.832 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.612e-05/0.4311, allocations: 55.94 kB / 0.5635 GB, free: 7.777 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.826e-05/0.4311, allocations: 39.86 kB / 0.5636 GB, free: 7.738 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.305e-05/0.4311, allocations: 39.84 kB / 0.5636 GB, free: 7.699 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006282/0.4374, allocations: 3.414 MB / 0.5669 GB, free: 3.992 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002504/0.4377, allocations: 244.2 kB / 0.5672 GB, free: 3.734 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001005/0.4378, allocations: 51.98 kB / 0.5672 GB, free: 3.684 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001191/0.439, allocations: 255.8 kB / 0.5675 GB, free: 3.434 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004017/0.4394, allocations: 231.1 kB / 0.5677 GB, free: 3.207 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.499e-05/0.4395, allocations: 59.98 kB / 0.5677 GB, free: 3.148 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0001968/0.4397, allocations: 263.2 kB / 0.568 GB, free: 2.891 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.1e-07/0.4397, allocations: 0 / 0.568 GB, free: 2.891 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0008199/0.4405, allocations: 228 kB / 0.5682 GB, free: 2.668 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.006912/0.4474, allocations: 4.008 MB / 0.5721 GB, free: 14.35 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.006124/0.4536, allocations: 2.559 MB / 0.5746 GB, free: 11.79 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 8.666e-06/0.4536, allocations: 4.125 kB / 0.5746 GB, free: 11.79 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003177/0.4568, allocations: 1.172 MB / 0.5758 GB, free: 10.62 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001881/0.4587, allocations: 166.6 kB / 0.5759 GB, free: 10.46 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01658/0.4752, allocations: 8.214 MB / 0.584 GB, free: 1.859 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005511/0.4758, allocations: 0.9246 MB / 0.5849 GB, free: 0.9062 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008549/0.4767, allocations: 223.4 kB / 0.5851 GB, free: 0.6875 MB / 394.7 MB Notification: Performance of SimCode: time 6.71e-07/0.4767, allocations: 0 / 0.5851 GB, free: 0.6875 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.22/3.697, allocations: 11.9 MB / 0.5967 GB, free: 4.754 MB / 410.7 MB (rm -f ModelicaTest_trunk_cpp_ModelicaTest.Blocks.KinematicPTP.pipe ; mkfifo ModelicaTest_trunk_cpp_ModelicaTest.Blocks.KinematicPTP.pipe ; head -c 1048576 < ModelicaTest_trunk_cpp_ModelicaTest.Blocks.KinematicPTP.pipe >> ../files/ModelicaTest_trunk_cpp_ModelicaTest.Blocks.KinematicPTP.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_trunk_cpp_ModelicaTest.Blocks.KinematicPTP_res.mat --tempDir=temp_ModelicaTest_trunk_cpp_ModelicaTest_Blocks_KinematicPTP_fmu --startTime=0 --stopTime=3 --timeout=50 --tolerance=1e-06 ModelicaTest_trunk_cpp_ModelicaTest_Blocks_KinematicPTP.fmu > ModelicaTest_trunk_cpp_ModelicaTest.Blocks.KinematicPTP.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_cpp_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","../files/ModelicaTest_trunk_cpp_ModelicaTest.Blocks.KinematicPTP.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches