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.00168/0.00168, allocations: 113.6 kB / 17.12 MB, free: 5.93 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.002046/0.002046, allocations: 213 kB / 20.09 MB, free: 2.977 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.564/1.564, allocations: 207.6 MB / 230.5 MB, free: 4.012 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.3724/0.3724, allocations: 44.23 MB / 326.6 MB, free: 6.777 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="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Blocks.KinematicPTP,fileNamePrefix="ModelicaTest_3_2_3_ModelicaTest_Blocks_KinematicPTP",fmuType="me",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.00231/0.00231, allocations: 67.91 kB / 462.2 MB, free: 0.9102 MB / 382.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2944/0.2968, allocations: 60.99 MB / 0.5109 GB, free: 13.25 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.KinematicPTP): time 0.003009/0.2998, allocations: 2.432 MB / 0.5133 GB, free: 11.33 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.001473/0.3012, allocations: 0.9891 MB / 0.5143 GB, free: 10.53 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002054/0.3014, allocations: 16.12 kB / 0.5143 GB, free: 10.52 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003986/0.3018, allocations: 120.7 kB / 0.5144 GB, free: 10.43 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000213/0.3021, allocations: 105.5 kB / 0.5145 GB, free: 10.34 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005559/0.3026, allocations: 278.6 kB / 0.5148 GB, free: 10.11 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006331/0.3032, allocations: 0.7252 MB / 0.5155 GB, free: 9.68 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001723/0.3034, allocations: 51.03 kB / 0.5155 GB, free: 9.645 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003513/0.3038, allocations: 311.1 kB / 0.5158 GB, free: 9.453 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003677/0.3041, allocations: 345.3 kB / 0.5162 GB, free: 9.207 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001064/0.3042, allocations: 58.91 kB / 0.5162 GB, free: 9.207 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.96e-05/0.3043, allocations: 61.22 kB / 0.5163 GB, free: 9.207 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001919/0.3045, allocations: 193.1 kB / 0.5164 GB, free: 9.059 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001734/0.3047, allocations: 243.3 kB / 0.5167 GB, free: 8.859 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005102/0.3052, allocations: 0.5566 MB / 0.5172 GB, free: 8.441 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.129e-06/0.3052, allocations: 4 kB / 0.5172 GB, free: 8.438 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.345e-06/0.3052, allocations: 4 kB / 0.5172 GB, free: 8.434 MB / 382.1 MB Notification: Performance of Transformations before backend: time 8.877e-06/0.3052, allocations: 5.312 kB / 0.5172 GB, free: 8.43 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.002105/0.3073, allocations: 0.9515 MB / 0.5182 GB, free: 7.508 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.307e-05/0.3074, allocations: 11.89 kB / 0.5182 GB, free: 7.496 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000102/0.3075, allocations: 86.72 kB / 0.5183 GB, free: 7.402 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001034/0.3076, allocations: 64.66 kB / 0.5183 GB, free: 7.34 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004904/0.3081, allocations: 391.3 kB / 0.5187 GB, free: 6.918 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002944/0.3084, allocations: 259.7 kB / 0.5189 GB, free: 6.629 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.728e-05/0.3085, allocations: 44.33 kB / 0.519 GB, free: 6.586 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001905/0.3104, allocations: 0.8085 MB / 0.5198 GB, free: 5.734 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.815e-05/0.3104, allocations: 0 / 0.5198 GB, free: 5.734 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.658e-05/0.3104, allocations: 20 kB / 0.5198 GB, free: 5.715 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.937e-06/0.3104, allocations: 8 kB / 0.5198 GB, free: 5.707 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003295/0.3137, allocations: 1.2 MB / 0.521 GB, free: 4.508 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002423/0.3162, allocations: 2.047 MB / 0.523 GB, free: 2.375 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002958/0.3191, allocations: 0.7704 MB / 0.5237 GB, free: 1.586 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001406/0.3205, allocations: 457.8 kB / 0.5242 GB, free: 1.133 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.852e-05/0.3206, allocations: 4 kB / 0.5242 GB, free: 1.129 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.651e-05/0.3206, allocations: 50.42 kB / 0.5242 GB, free: 1.07 MB / 382.1 MB Notification: Performance of pre-optimization done (n=64): time 2.956e-06/0.3206, allocations: 0 / 0.5242 GB, free: 1.07 MB / 382.1 MB Notification: Performance of matching and sorting (n=120): time 0.09544/0.4161, allocations: 15.77 MB / 0.5396 GB, free: 1.117 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001065/0.4162, allocations: 94.17 kB / 0.5397 GB, free: 1.008 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005964/0.4168, allocations: 397.4 kB / 0.5401 GB, free: 0.6094 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002403/0.417, allocations: 49.64 kB / 0.5401 GB, free: 0.5547 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002186/0.4172, allocations: 225.5 kB / 0.5403 GB, free: 336 kB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005229/0.4178, allocations: 416.4 kB / 0.5407 GB, free: 15.91 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006695/0.4184, allocations: 202.9 kB / 0.5409 GB, free: 15.71 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0002704/0.4187, allocations: 374.8 kB / 0.5413 GB, free: 15.33 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004165/0.4229, allocations: 1.338 MB / 0.5426 GB, free: 14 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00431/0.4272, allocations: 1.501 MB / 0.5441 GB, free: 12.45 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0078/0.435, allocations: 2.441 MB / 0.5465 GB, free: 9.961 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.355e-06/0.435, allocations: 0 / 0.5465 GB, free: 9.961 MB / 414.1 MB Notification: Performance of matching and sorting (n=148) (initialization): time 0.009338/0.4443, allocations: 2.834 MB / 0.5492 GB, free: 7.117 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.527e-05/0.4444, allocations: 8 kB / 0.5492 GB, free: 7.109 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.598e-05/0.4444, allocations: 4 kB / 0.5492 GB, free: 7.105 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.648e-05/0.4444, allocations: 8 kB / 0.5492 GB, free: 7.098 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002994/0.4474, allocations: 407.5 kB / 0.5496 GB, free: 6.699 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.751e-05/0.4474, allocations: 11.94 kB / 0.5496 GB, free: 6.688 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002361/0.4498, allocations: 215.7 kB / 0.5498 GB, free: 6.477 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001928/0.45, allocations: 47.92 kB / 0.5499 GB, free: 6.43 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.000626/0.4506, allocations: 233.8 kB / 0.5501 GB, free: 6.191 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002789/0.4509, allocations: 67.58 kB / 0.5502 GB, free: 6.125 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003365/0.4512, allocations: 108.7 kB / 0.5503 GB, free: 6.02 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.374e-05/0.4512, allocations: 16 kB / 0.5503 GB, free: 6.004 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.959e-05/0.4513, allocations: 3.938 kB / 0.5503 GB, free: 6 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.557e-05/0.4513, allocations: 7.969 kB / 0.5503 GB, free: 5.992 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01318/0.4644, allocations: 5.234 MB / 0.5554 GB, free: 432 kB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.723e-05/0.4645, allocations: 20 kB / 0.5554 GB, free: 412 kB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001619/0.4661, allocations: 359.8 kB / 0.5558 GB, free: 52 kB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.456e-05/0.4661, allocations: 28 kB / 0.5558 GB, free: 24 kB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001273/0.4663, allocations: 44.03 kB / 0.5559 GB, free: 15.98 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.244e-05/0.4663, allocations: 39.81 kB / 0.5559 GB, free: 15.94 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.726e-05/0.4663, allocations: 31.88 kB / 0.5559 GB, free: 15.91 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00826/0.4746, allocations: 3.095 MB / 0.5589 GB, free: 12.52 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005491/0.4751, allocations: 236.7 kB / 0.5592 GB, free: 12.27 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001383/0.4753, allocations: 55.97 kB / 0.5592 GB, free: 12.21 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001388/0.4767, allocations: 187.8 kB / 0.5594 GB, free: 12.03 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005223/0.4772, allocations: 219.3 kB / 0.5596 GB, free: 11.82 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001543/0.4773, allocations: 63.98 kB / 0.5597 GB, free: 11.75 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.0004356/0.4778, allocations: 263.1 kB / 0.5599 GB, free: 11.5 MB / 430.1 MB Notification: Performance of sort global known variables: time 1.01e-07/0.4778, allocations: 4 kB / 0.5599 GB, free: 11.49 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.00118/0.479, allocations: 228 kB / 0.5601 GB, free: 11.27 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.0088/0.4878, allocations: 3.691 MB / 0.5637 GB, free: 7.273 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.007096/0.4949, allocations: 2.164 MB / 0.5659 GB, free: 5.105 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 2.095e-05/0.4949, allocations: 4 kB / 0.5659 GB, free: 5.102 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003755/0.4986, allocations: 1.048 MB / 0.5669 GB, free: 4.059 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001505/0.5001, allocations: 159.5 kB / 0.567 GB, free: 3.906 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03063/0.5308, allocations: 12.38 MB / 0.5791 GB, free: 6.797 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000806/0.5316, allocations: 0.9282 MB / 0.58 GB, free: 5.84 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.0012/0.5328, allocations: 206.1 kB / 0.5802 GB, free: 5.637 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008349/0.5336, allocations: 219.4 kB / 0.5804 GB, free: 5.422 MB / 446.1 MB Notification: Performance of SimCode: time 2.214e-06/0.5336, allocations: 0 / 0.5804 GB, free: 5.422 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05865/0.5922, allocations: 21.81 MB / 0.6017 GB, free: 15.56 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.553/10.15, allocations: 0 / 0.6017 GB, free: 15.56 MB / 478.1 MB " [Timeout remaining time 650] (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 & python3 -m fmpy simulate --output-file ModelicaTest_3.2.3_ModelicaTest.Blocks.KinematicPTP_res.csv --start-time 0 --stop-time 3 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.000598444 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.csv","/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: 13.265808743002708]