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) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001278/0.001278, allocations: 110 kB / 20.43 MB, free: 1.453 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001452/0.001452, allocations: 210.7 kB / 23.74 MB, free: 4.66 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.527/1.527, allocations: 230.5 MB / 257.4 MB, free: 7.98 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2371/0.2371, allocations: 46.92 MB / 360.8 MB, free: 4.16 MB / 286.1 MB " [Timeout remaining time 180] 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"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002483/0.002483, allocations: 79.86 kB / 0.4962 GB, free: 7.746 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2953/0.2977, allocations: 66.09 MB / 0.5607 GB, free: 4.277 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.KinematicPTP): time 0.003851/0.3016, allocations: 2.419 MB / 0.5631 GB, free: 1.848 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.001975/0.3036, allocations: 0.9913 MB / 0.5641 GB, free: 0.8516 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002711/0.3038, allocations: 15.81 kB / 0.5641 GB, free: 0.8359 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004141/0.3042, allocations: 119.2 kB / 0.5642 GB, free: 0.7188 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00029/0.3045, allocations: 95.41 kB / 0.5643 GB, free: 0.625 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000783/0.3053, allocations: 303.4 kB / 0.5646 GB, free: 336 kB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0009784/0.3063, allocations: 0.7171 MB / 0.5653 GB, free: 15.61 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001697/0.3065, allocations: 51.08 kB / 0.5653 GB, free: 15.55 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005125/0.307, allocations: 307 kB / 0.5656 GB, free: 15.25 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005364/0.3075, allocations: 342.7 kB / 0.5659 GB, free: 14.92 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001349/0.3077, allocations: 60 kB / 0.566 GB, free: 14.86 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001097/0.3078, allocations: 60 kB / 0.5661 GB, free: 14.8 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002191/0.308, allocations: 195.4 kB / 0.5662 GB, free: 14.61 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002583/0.3082, allocations: 242.7 kB / 0.5665 GB, free: 14.37 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006633/0.3089, allocations: 0.5603 MB / 0.567 GB, free: 13.81 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.429e-06/0.3089, allocations: 0 / 0.567 GB, free: 13.81 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.663e-06/0.3089, allocations: 0 / 0.567 GB, free: 13.81 MB / 414.1 MB Notification: Performance of Transformations before backend: time 1.512e-05/0.3089, allocations: 0 / 0.567 GB, free: 13.81 MB / 414.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.002387/0.3113, allocations: 0.8713 MB / 0.5679 GB, free: 12.91 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.503e-05/0.3114, allocations: 16.03 kB / 0.5679 GB, free: 12.89 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001145/0.3115, allocations: 90.7 kB / 0.568 GB, free: 12.79 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001211/0.3116, allocations: 64.61 kB / 0.568 GB, free: 12.73 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006626/0.3123, allocations: 313.1 kB / 0.5683 GB, free: 12.39 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006463/0.3129, allocations: 0.6708 MB / 0.569 GB, free: 11.59 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.363e-05/0.313, allocations: 40.38 kB / 0.569 GB, free: 11.55 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002111/0.3151, allocations: 0.8123 MB / 0.5698 GB, free: 10.7 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.967e-05/0.3151, allocations: 0 / 0.5698 GB, free: 10.7 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.998e-05/0.3152, allocations: 28 kB / 0.5698 GB, free: 10.67 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.35e-05/0.3152, allocations: 8 kB / 0.5699 GB, free: 10.66 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003557/0.3188, allocations: 1.2 MB / 0.571 GB, free: 9.461 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003207/0.322, allocations: 1.995 MB / 0.573 GB, free: 7.387 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003074/0.325, allocations: 0.7765 MB / 0.5737 GB, free: 6.594 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001558/0.3266, allocations: 449.3 kB / 0.5742 GB, free: 6.148 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.06e-05/0.3267, allocations: 15.97 kB / 0.5742 GB, free: 6.133 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.719e-05/0.3267, allocations: 46.5 kB / 0.5742 GB, free: 6.078 MB / 414.1 MB Notification: Performance of pre-optimization done (n=64): time 2.104e-06/0.3267, allocations: 0 / 0.5742 GB, free: 6.078 MB / 414.1 MB Notification: Performance of matching and sorting (n=120): time 0.09041/0.4171, allocations: 15.47 MB / 0.5893 GB, free: 6.512 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.277e-05/0.4172, allocations: 98.05 kB / 0.5894 GB, free: 6.398 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005235/0.4177, allocations: 389.5 kB / 0.5898 GB, free: 6.008 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001608/0.4179, allocations: 45.7 kB / 0.5898 GB, free: 5.957 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002118/0.4181, allocations: 225.6 kB / 0.59 GB, free: 5.73 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004676/0.4186, allocations: 424.3 kB / 0.5905 GB, free: 5.312 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005737/0.4191, allocations: 202.9 kB / 0.5906 GB, free: 5.105 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0001892/0.4193, allocations: 366.8 kB / 0.591 GB, free: 4.738 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003853/0.4232, allocations: 1.345 MB / 0.5923 GB, free: 3.395 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004059/0.4272, allocations: 1.493 MB / 0.5938 GB, free: 1.852 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007148/0.4344, allocations: 2.443 MB / 0.5962 GB, free: 15.37 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.418e-06/0.4344, allocations: 0 / 0.5962 GB, free: 15.37 MB / 446.1 MB Notification: Performance of matching and sorting (n=148) (initialization): time 0.008315/0.4427, allocations: 2.831 MB / 0.5989 GB, free: 12.52 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.63e-05/0.4427, allocations: 8 kB / 0.5989 GB, free: 12.52 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.366e-05/0.4427, allocations: 4 kB / 0.5989 GB, free: 12.51 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.776e-05/0.4428, allocations: 8 kB / 0.5989 GB, free: 12.5 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0029/0.4457, allocations: 403.7 kB / 0.5993 GB, free: 12.11 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.724e-05/0.4457, allocations: 15.88 kB / 0.5993 GB, free: 12.09 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002105/0.4478, allocations: 219.7 kB / 0.5995 GB, free: 11.88 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000165/0.448, allocations: 39.98 kB / 0.5996 GB, free: 11.84 MB / 446.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.0005072/0.4485, allocations: 239.6 kB / 0.5998 GB, free: 11.6 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002342/0.4487, allocations: 59.62 kB / 0.5999 GB, free: 11.54 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002906/0.449, allocations: 108.7 kB / 0.6 GB, free: 11.43 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.168e-05/0.449, allocations: 12 kB / 0.6 GB, free: 11.42 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.412e-05/0.449, allocations: 7.938 kB / 0.6 GB, free: 11.41 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.289e-05/0.449, allocations: 7.969 kB / 0.6 GB, free: 11.41 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01278/0.4618, allocations: 5.2 MB / 0.6051 GB, free: 5.875 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.89e-05/0.4619, allocations: 24 kB / 0.6051 GB, free: 5.852 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001618/0.4635, allocations: 352.2 kB / 0.6054 GB, free: 5.508 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.177e-05/0.4635, allocations: 28 kB / 0.6055 GB, free: 5.48 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001324/0.4636, allocations: 51.98 kB / 0.6055 GB, free: 5.43 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.743e-05/0.4637, allocations: 43.8 kB / 0.6056 GB, free: 5.387 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.697e-05/0.4637, allocations: 35.88 kB / 0.6056 GB, free: 5.352 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007723/0.4714, allocations: 3.099 MB / 0.6086 GB, free: 1.945 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004822/0.4719, allocations: 163.5 kB / 0.6088 GB, free: 1.785 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001584/0.4721, allocations: 51.97 kB / 0.6088 GB, free: 1.734 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001351/0.4734, allocations: 191.8 kB / 0.609 GB, free: 1.547 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004464/0.4739, allocations: 219.2 kB / 0.6092 GB, free: 1.332 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000104/0.474, allocations: 63.98 kB / 0.6093 GB, free: 1.27 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.0003211/0.4743, allocations: 259.2 kB / 0.6095 GB, free: 1.016 MB / 446.1 MB Notification: Performance of sort global known variables: time 8e-08/0.4743, allocations: 0 / 0.6095 GB, free: 1.016 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.001086/0.4754, allocations: 228 kB / 0.6097 GB, free: 0.793 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.008196/0.4836, allocations: 3.683 MB / 0.6133 GB, free: 12.8 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.006656/0.4902, allocations: 2.163 MB / 0.6154 GB, free: 10.64 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 9.578e-06/0.4903, allocations: 3.938 kB / 0.6155 GB, free: 10.63 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003452/0.4937, allocations: 1.051 MB / 0.6165 GB, free: 9.586 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001354/0.4951, allocations: 148.8 kB / 0.6166 GB, free: 9.441 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02878/0.5238, allocations: 12.38 MB / 0.6287 GB, free: 12.33 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008218/0.5247, allocations: 0.932 MB / 0.6296 GB, free: 11.37 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.001169/0.5258, allocations: 210.2 kB / 0.6298 GB, free: 11.16 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008094/0.5266, allocations: 219.4 kB / 0.63 GB, free: 10.95 MB / 478.1 MB Notification: Performance of SimCode: time 9.32e-07/0.5266, allocations: 0 / 0.63 GB, free: 10.95 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0622/0.5888, allocations: 22.86 MB / 0.6524 GB, free: 4.184 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.72/13.31, allocations: 15.3 kB / 0.6524 GB, free: 4.172 MB / 494.1 MB " [Timeout remaining time 647] (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 --stepSize=0.000598444 --timeout=50 --tolerance=1e-06 ModelicaTest_trunk_ModelicaTest_Blocks_KinematicPTP.fmu > ModelicaTest_trunk_ModelicaTest.Blocks.KinematicPTP.pipe 2>&1) [Timeout 52.5] diffSimulationResults("ModelicaTest_trunk_ModelicaTest.Blocks.KinematicPTP_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.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) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 16.379261649912223]