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.001549/0.001549, allocations: 103.3 kB / 17.2 MB, free: 6.293 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002279/0.002279, allocations: 209.8 kB / 18.14 MB, free: 5.371 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.458/1.458, allocations: 227.4 MB / 246.3 MB, free: 10.77 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2389/0.2389, allocations: 46.1 MB / 343.6 MB, free: 11.83 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00142/0.00142, allocations: 72.83 kB / 416.9 MB, free: 20.12 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1537/0.1552, allocations: 62.45 MB / 479.4 MB, free: 5.664 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.KinematicPTP): time 0.00468/0.1599, allocations: 2.457 MB / 481.8 MB, free: 3.191 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002202/0.1621, allocations: 0.9553 MB / 482.8 MB, free: 2.23 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001894/0.1624, allocations: 11.88 kB / 482.8 MB, free: 2.219 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004458/0.1628, allocations: 99.5 kB / 482.9 MB, free: 2.121 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002246/0.1631, allocations: 83.58 kB / 483 MB, free: 2.039 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006395/0.1638, allocations: 255.6 kB / 483.2 MB, free: 1.789 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007228/0.1645, allocations: 0.6783 MB / 483.9 MB, free: 1.109 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002106/0.1647, allocations: 65.33 kB / 484 MB, free: 1.043 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003296/0.165, allocations: 271 kB / 484.2 MB, free: 0.7773 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004087/0.1655, allocations: 318.7 kB / 484.5 MB, free: 476 kB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 9.158e-05/0.1656, allocations: 32 kB / 484.6 MB, free: 444 kB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.536e-05/0.1656, allocations: 36 kB / 484.6 MB, free: 408 kB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002051/0.1659, allocations: 171.5 kB / 484.8 MB, free: 236 kB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002279/0.1661, allocations: 218.8 kB / 485 MB, free: 16 kB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005652/0.1667, allocations: 0.5138 MB / 485.5 MB, free: 15.5 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.484e-06/0.1667, allocations: 4 kB / 485.5 MB, free: 15.5 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.553e-06/0.1667, allocations: 0 / 485.5 MB, free: 15.5 MB / 366.1 MB Notification: Performance of Transformations before backend: time 8.055e-06/0.1667, allocations: 0 / 485.5 MB, free: 15.5 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.002384/0.1691, allocations: 0.9314 MB / 486.4 MB, free: 14.52 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.902e-05/0.1692, allocations: 12.88 kB / 486.5 MB, free: 14.5 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001254/0.1693, allocations: 90.72 kB / 486.5 MB, free: 14.41 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001409/0.1695, allocations: 64.36 kB / 486.6 MB, free: 14.34 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006002/0.1701, allocations: 371.2 kB / 487 MB, free: 13.94 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004202/0.1705, allocations: 259.7 kB / 487.2 MB, free: 13.65 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.866e-05/0.1706, allocations: 48.22 kB / 487.3 MB, free: 13.61 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001976/0.1726, allocations: 0.8124 MB / 488.1 MB, free: 12.75 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.521e-05/0.1726, allocations: 7.984 kB / 488.1 MB, free: 12.74 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.979e-05/0.1727, allocations: 16 kB / 488.1 MB, free: 12.73 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.424e-05/0.1727, allocations: 11.94 kB / 488.1 MB, free: 12.71 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003387/0.1761, allocations: 1.2 MB / 489.3 MB, free: 11.52 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003358/0.1795, allocations: 2.031 MB / 491.3 MB, free: 9.398 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003153/0.1827, allocations: 0.8329 MB / 492.2 MB, free: 8.547 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001535/0.1842, allocations: 498.4 kB / 492.7 MB, free: 8.055 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.084e-05/0.1843, allocations: 8 kB / 492.7 MB, free: 8.047 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.144e-05/0.1844, allocations: 46.48 kB / 492.7 MB, free: 7.992 MB / 366.1 MB Notification: Performance of pre-optimization done (n=64): time 2.755e-06/0.1844, allocations: 4 kB / 492.7 MB, free: 7.988 MB / 366.1 MB Notification: Performance of matching and sorting (n=120): time 0.08691/0.2713, allocations: 15.74 MB / 0.4965 GB, free: 8.074 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.089e-05/0.2714, allocations: 94.17 kB / 0.4966 GB, free: 7.965 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000575/0.272, allocations: 385.5 kB / 0.497 GB, free: 7.582 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002285/0.2723, allocations: 45.7 kB / 0.497 GB, free: 7.531 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001993/0.2725, allocations: 225 kB / 0.4973 GB, free: 7.305 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005209/0.273, allocations: 402.1 kB / 0.4976 GB, free: 6.906 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007106/0.2737, allocations: 194.9 kB / 0.4978 GB, free: 6.707 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0002165/0.274, allocations: 374.8 kB / 0.4982 GB, free: 6.332 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003414/0.2774, allocations: 1.349 MB / 0.4995 GB, free: 4.984 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003501/0.2809, allocations: 1.49 MB / 0.501 GB, free: 3.449 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006231/0.2871, allocations: 2.449 MB / 0.5034 GB, free: 0.9531 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.037e-05/0.2872, allocations: 0 / 0.5034 GB, free: 0.9531 MB / 382.1 MB Notification: Performance of matching and sorting (n=148) (initialization): time 0.2849/0.572, allocations: 2.822 MB / 0.5061 GB, free: 43.66 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.07e-05/0.5721, allocations: 7.812 kB / 0.5061 GB, free: 43.66 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.305e-05/0.5721, allocations: 3.25 kB / 0.5061 GB, free: 43.66 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.947e-05/0.5722, allocations: 9.625 kB / 0.5061 GB, free: 43.66 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002854/0.575, allocations: 409.1 kB / 0.5065 GB, free: 43.64 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.236e-05/0.5751, allocations: 14.06 kB / 0.5065 GB, free: 43.64 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002068/0.5771, allocations: 218.8 kB / 0.5067 GB, free: 43.62 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001703/0.5773, allocations: 41.39 kB / 0.5068 GB, free: 43.61 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.0004736/0.5778, allocations: 228.3 kB / 0.507 GB, free: 43.43 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002319/0.578, allocations: 63.41 kB / 0.5071 GB, free: 43.43 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002292/0.5783, allocations: 111.8 kB / 0.5072 GB, free: 43.33 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.596e-05/0.5783, allocations: 19.06 kB / 0.5072 GB, free: 43.33 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.386e-05/0.5783, allocations: 1.062 kB / 0.5072 GB, free: 43.33 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.532e-05/0.5783, allocations: 8.688 kB / 0.5072 GB, free: 43.33 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01223/0.5906, allocations: 5.23 MB / 0.5123 GB, free: 40.92 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.157e-05/0.5907, allocations: 20.91 kB / 0.5123 GB, free: 40.92 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00164/0.5923, allocations: 355.6 kB / 0.5127 GB, free: 40.89 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.03e-05/0.5924, allocations: 27.78 kB / 0.5127 GB, free: 40.89 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001208/0.5925, allocations: 47.8 kB / 0.5127 GB, free: 40.88 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.354e-05/0.5926, allocations: 39.55 kB / 0.5128 GB, free: 40.87 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.863e-05/0.5926, allocations: 36.03 kB / 0.5128 GB, free: 40.86 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00746/0.6001, allocations: 3.083 MB / 0.5158 GB, free: 39.12 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004417/0.6005, allocations: 238.6 kB / 0.516 GB, free: 38.95 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001481/0.6007, allocations: 52.28 kB / 0.5161 GB, free: 38.94 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001253/0.602, allocations: 189.5 kB / 0.5163 GB, free: 38.92 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004918/0.6025, allocations: 218.6 kB / 0.5165 GB, free: 38.83 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001008/0.6026, allocations: 61.73 kB / 0.5165 GB, free: 38.82 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0003418/0.6029, allocations: 262.9 kB / 0.5168 GB, free: 38.69 MB / 382.1 MB Notification: Performance of sort global known variables: time 2.1e-07/0.6029, allocations: 3.062 kB / 0.5168 GB, free: 38.69 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.001132/0.6041, allocations: 226.7 kB / 0.517 GB, free: 38.66 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.007238/0.6113, allocations: 3.671 MB / 0.5206 GB, free: 36.37 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.006039/0.6174, allocations: 2.348 MB / 0.5229 GB, free: 35.52 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 1.731e-05/0.6174, allocations: 3.312 kB / 0.5229 GB, free: 35.52 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003187/0.6206, allocations: 1.065 MB / 0.5239 GB, free: 35.04 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00132/0.6219, allocations: 155.4 kB / 0.5241 GB, free: 34.97 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02224/0.6442, allocations: 12.7 MB / 0.5365 GB, free: 23.41 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004545/0.6447, allocations: 0.936 MB / 0.5374 GB, free: 22.44 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.001366/0.6461, allocations: 213.5 kB / 0.5376 GB, free: 22.24 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006933/0.6468, allocations: 211.4 kB / 0.5378 GB, free: 22.04 MB / 382.1 MB Notification: Performance of SimCode: time 1.553e-06/0.6468, allocations: 3.938 kB / 0.5378 GB, free: 22.04 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03092/0.6777, allocations: 20.05 MB / 0.5574 GB, free: 2.074 MB / 382.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001612/0.6779, allocations: 188.5 kB / 0.5576 GB, free: 1.816 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.301/2.979, allocations: 0 / 0.5576 GB, free: 1.816 MB / 382.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