Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_3.2.3_ModelicaTest.Blocks.KinematicPTP.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001285/0.001285, allocations: 118.9 kB / 17.83 MB, free: 5.227 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001372/0.001372, allocations: 198.3 kB / 20.79 MB, free: 2.281 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.518/1.518, allocations: 207.6 MB / 231.2 MB, free: 4.102 MB / 174.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.3423/0.3423, allocations: 44.23 MB / 327.3 MB, free: 6.691 MB / 254.1 MB " [Timeout remaining time 179] Using package ModelicaTest with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Blocks.KinematicPTP,fileNamePrefix="ModelicaTest_3_2_3_ModelicaTest_Blocks_KinematicPTP",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Blocks.KinematicPTP,fileNamePrefix="ModelicaTest_3_2_3_ModelicaTest_Blocks_KinematicPTP",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Modelica requested package Complex of version 3.2.3. Complex 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002671/0.002671, allocations: 68.52 kB / 462.9 MB, free: 0.9062 MB / 382.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2807/0.2834, allocations: 61 MB / 0.5116 GB, free: 13.48 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.KinematicPTP): time 0.002866/0.2863, allocations: 2.422 MB / 0.514 GB, free: 11.56 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.001413/0.2877, allocations: 0.991 MB / 0.515 GB, free: 10.76 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001696/0.2878, allocations: 15.94 kB / 0.515 GB, free: 10.75 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003536/0.2882, allocations: 113.7 kB / 0.5151 GB, free: 10.67 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002044/0.2884, allocations: 109.2 kB / 0.5152 GB, free: 10.58 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005343/0.2889, allocations: 288.7 kB / 0.5155 GB, free: 10.34 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006142/0.2895, allocations: 0.7305 MB / 0.5162 GB, free: 9.902 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001435/0.2897, allocations: 45.91 kB / 0.5162 GB, free: 9.871 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000268/0.29, allocations: 304.1 kB / 0.5165 GB, free: 9.688 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003129/0.2903, allocations: 348.2 kB / 0.5168 GB, free: 9.438 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 8.884e-05/0.2904, allocations: 60.5 kB / 0.5169 GB, free: 9.438 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.009e-05/0.2904, allocations: 60.5 kB / 0.517 GB, free: 9.438 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001417/0.2906, allocations: 192.7 kB / 0.5171 GB, free: 9.289 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001487/0.2907, allocations: 248 kB / 0.5174 GB, free: 9.086 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004282/0.2912, allocations: 0.561 MB / 0.5179 GB, free: 8.633 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.148e-06/0.2912, allocations: 0 / 0.5179 GB, free: 8.633 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.393e-06/0.2912, allocations: 0 / 0.5179 GB, free: 8.633 MB / 382.1 MB Notification: Performance of Transformations before backend: time 8.346e-06/0.2912, allocations: 0 / 0.5179 GB, free: 8.633 MB / 382.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.002006/0.2932, allocations: 0.9543 MB / 0.5189 GB, free: 7.629 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.717e-05/0.2932, allocations: 23.83 kB / 0.5189 GB, free: 7.605 MB / 382.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.693e-05/0.2932, allocations: 8.75 kB / 0.5189 GB, free: 7.598 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.866e-05/0.2933, allocations: 86.72 kB / 0.519 GB, free: 7.504 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001318/0.2935, allocations: 60.66 kB / 0.519 GB, free: 7.445 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005311/0.294, allocations: 379.4 kB / 0.5194 GB, free: 7.035 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002992/0.2943, allocations: 267.7 kB / 0.5196 GB, free: 6.738 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.308e-05/0.2944, allocations: 48.08 kB / 0.5197 GB, free: 6.691 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001813/0.2962, allocations: 0.8085 MB / 0.5205 GB, free: 5.84 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.952e-05/0.2962, allocations: 4 kB / 0.5205 GB, free: 5.836 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.41e-05/0.2963, allocations: 16 kB / 0.5205 GB, free: 5.82 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.157e-06/0.2963, allocations: 8 kB / 0.5205 GB, free: 5.812 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003222/0.2995, allocations: 1.2 MB / 0.5217 GB, free: 4.613 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002459/0.3019, allocations: 2.046 MB / 0.5237 GB, free: 2.48 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002926/0.3049, allocations: 0.7743 MB / 0.5244 GB, free: 1.688 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001376/0.3063, allocations: 457.8 kB / 0.5249 GB, free: 1.234 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.95e-05/0.3063, allocations: 19.88 kB / 0.5249 GB, free: 1.215 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.283e-05/0.3064, allocations: 34.56 kB / 0.5249 GB, free: 1.172 MB / 382.1 MB Notification: Performance of pre-optimization done (n=64): time 4.218e-06/0.3064, allocations: 4 kB / 0.5249 GB, free: 1.168 MB / 382.1 MB Notification: Performance of matching and sorting (n=120): time 0.09099/0.3974, allocations: 15.78 MB / 0.5403 GB, free: 1.215 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000104/0.3975, allocations: 94.17 kB / 0.5404 GB, free: 1.102 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005662/0.398, allocations: 385.5 kB / 0.5408 GB, free: 0.7148 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002229/0.3983, allocations: 49.7 kB / 0.5408 GB, free: 0.6602 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001948/0.3984, allocations: 225.5 kB / 0.5411 GB, free: 444 kB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004868/0.3989, allocations: 420.3 kB / 0.5415 GB, free: 20 kB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006475/0.3996, allocations: 198.9 kB / 0.5416 GB, free: 15.82 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0002066/0.3998, allocations: 370.8 kB / 0.542 GB, free: 15.45 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003942/0.4037, allocations: 1.345 MB / 0.5433 GB, free: 14.1 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004103/0.4078, allocations: 1.493 MB / 0.5448 GB, free: 12.56 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00735/0.4152, allocations: 2.441 MB / 0.5472 GB, free: 10.07 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.017e-06/0.4152, allocations: 4 kB / 0.5472 GB, free: 10.07 MB / 414.1 MB Notification: Performance of matching and sorting (n=148) (initialization): time 0.008718/0.4239, allocations: 2.83 MB / 0.5499 GB, free: 7.234 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.835e-05/0.4239, allocations: 7.938 kB / 0.5499 GB, free: 7.227 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.397e-05/0.424, allocations: 4 kB / 0.5499 GB, free: 7.223 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.088e-05/0.424, allocations: 11.98 kB / 0.5499 GB, free: 7.211 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002899/0.4269, allocations: 411.5 kB / 0.5503 GB, free: 6.809 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.131e-05/0.4269, allocations: 11.94 kB / 0.5503 GB, free: 6.797 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002122/0.429, allocations: 215.7 kB / 0.5506 GB, free: 6.586 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001682/0.4292, allocations: 51.98 kB / 0.5506 GB, free: 6.535 MB / 414.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.0005408/0.4297, allocations: 241.7 kB / 0.5508 GB, free: 6.289 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002889/0.43, allocations: 63.58 kB / 0.5509 GB, free: 6.227 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000321/0.4304, allocations: 108.7 kB / 0.551 GB, free: 6.121 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.495e-05/0.4304, allocations: 15.94 kB / 0.551 GB, free: 6.105 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.05e-05/0.4304, allocations: 0 / 0.551 GB, free: 6.105 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.3e-05/0.4304, allocations: 7.969 kB / 0.551 GB, free: 6.098 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0127/0.4431, allocations: 5.232 MB / 0.5561 GB, free: 0.5234 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.529e-05/0.4431, allocations: 20 kB / 0.5561 GB, free: 0.5039 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00172/0.4448, allocations: 351.5 kB / 0.5565 GB, free: 164 kB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.004e-05/0.4449, allocations: 28 kB / 0.5565 GB, free: 136 kB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001033/0.445, allocations: 48 kB / 0.5566 GB, free: 88 kB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.153e-05/0.445, allocations: 51.78 kB / 0.5566 GB, free: 36 kB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.582e-05/0.445, allocations: 31.88 kB / 0.5566 GB, free: 4 kB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008656/0.4537, allocations: 3.091 MB / 0.5597 GB, free: 12.62 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005093/0.4542, allocations: 236.7 kB / 0.5599 GB, free: 12.37 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001435/0.4544, allocations: 47.98 kB / 0.5599 GB, free: 12.32 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001421/0.4558, allocations: 187.8 kB / 0.5601 GB, free: 12.14 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005037/0.4563, allocations: 227.2 kB / 0.5603 GB, free: 11.91 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001132/0.4564, allocations: 56 kB / 0.5604 GB, free: 11.86 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.0004274/0.4568, allocations: 267.1 kB / 0.5606 GB, free: 11.6 MB / 430.1 MB Notification: Performance of sort global known variables: time 6e-08/0.4568, allocations: 0 / 0.5606 GB, free: 11.6 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.0012/0.458, allocations: 232 kB / 0.5609 GB, free: 11.37 MB / 430.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.008841/0.4669, allocations: 3.693 MB / 0.5645 GB, free: 7.371 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.00703/0.4739, allocations: 2.164 MB / 0.5666 GB, free: 5.207 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 1.863e-05/0.4739, allocations: 3.938 kB / 0.5666 GB, free: 5.203 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003845/0.4777, allocations: 1.055 MB / 0.5676 GB, free: 4.152 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001596/0.4793, allocations: 145.4 kB / 0.5677 GB, free: 4.008 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03005/0.5094, allocations: 12.37 MB / 0.5798 GB, free: 6.902 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006702/0.5101, allocations: 0.9243 MB / 0.5807 GB, free: 5.949 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.001083/0.5111, allocations: 218.2 kB / 0.5809 GB, free: 5.734 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007863/0.5119, allocations: 219.4 kB / 0.5811 GB, free: 5.52 MB / 446.1 MB Notification: Performance of SimCode: time 8.12e-07/0.5119, allocations: 0 / 0.5811 GB, free: 5.52 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04914/0.5611, allocations: 21.84 MB / 0.6025 GB, free: 15.62 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.54/11.1, allocations: 7.422 kB / 0.6025 GB, free: 15.62 MB / 478.1 MB " [Timeout remaining time 649] (rm -f ModelicaTest_3.2.3_ModelicaTest.Blocks.KinematicPTP.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.Blocks.KinematicPTP.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.Blocks.KinematicPTP.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.Blocks.KinematicPTP.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_3.2.3_ModelicaTest.Blocks.KinematicPTP_res.mat --tempDir=temp_ModelicaTest_3_2_3_ModelicaTest_Blocks_KinematicPTP_fmu --startTime=0 --stopTime=3 --stepSize=0.000598444 --timeout=50 --tolerance=1e-06 ModelicaTest_3_2_3_ModelicaTest_Blocks_KinematicPTP.fmu > ModelicaTest_3.2.3_ModelicaTest.Blocks.KinematicPTP.pipe 2>&1) [Timeout 52.5] diffSimulationResults("ModelicaTest_3.2.3_ModelicaTest.Blocks.KinematicPTP_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/Blocks/KinematicPTP/KinematicPTP.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_3.2.3_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: 14.561967827030458]