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.00191/0.00191, allocations: 107.2 kB / 20.44 MB, free: 1.207 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.002592/0.002592, allocations: 210.2 kB / 23.73 MB, free: 4.406 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.429/1.429, allocations: 230.5 MB / 257.4 MB, free: 7.77 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.2241/0.2241, allocations: 46.95 MB / 360.8 MB, free: 3.957 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.00256/0.00256, allocations: 84.2 kB / 0.4962 GB, free: 7.578 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2999/0.3025, allocations: 66.08 MB / 0.5607 GB, free: 4.074 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.KinematicPTP): time 0.003649/0.3061, allocations: 2.259 MB / 0.5629 GB, free: 1.805 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.001678/0.3078, allocations: 0.9369 MB / 0.5638 GB, free: 0.8633 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001449/0.308, allocations: 15.88 kB / 0.5638 GB, free: 0.8477 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003573/0.3083, allocations: 119.2 kB / 0.5639 GB, free: 0.7305 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002456/0.3086, allocations: 99.27 kB / 0.564 GB, free: 0.6328 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006138/0.3092, allocations: 291.6 kB / 0.5643 GB, free: 356 kB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007167/0.3099, allocations: 0.7171 MB / 0.565 GB, free: 15.63 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001514/0.31, allocations: 55.06 kB / 0.5651 GB, free: 15.57 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000318/0.3104, allocations: 287.1 kB / 0.5653 GB, free: 15.29 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004122/0.3108, allocations: 326.7 kB / 0.5656 GB, free: 14.97 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001027/0.3109, allocations: 64 kB / 0.5657 GB, free: 14.91 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000101/0.311, allocations: 64 kB / 0.5658 GB, free: 14.84 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002043/0.3112, allocations: 207.3 kB / 0.566 GB, free: 14.64 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001982/0.3114, allocations: 211 kB / 0.5662 GB, free: 14.43 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00061/0.312, allocations: 0.5681 MB / 0.5667 GB, free: 13.86 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.272e-06/0.312, allocations: 3.984 kB / 0.5667 GB, free: 13.86 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.372e-06/0.312, allocations: 0 / 0.5667 GB, free: 13.86 MB / 414.1 MB Notification: Performance of Transformations before backend: time 6.993e-06/0.312, allocations: 0 / 0.5667 GB, free: 13.86 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.002296/0.3143, allocations: 0.8792 MB / 0.5676 GB, free: 12.95 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.887e-05/0.3143, allocations: 8.031 kB / 0.5676 GB, free: 12.94 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001133/0.3144, allocations: 90.7 kB / 0.5677 GB, free: 12.84 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001169/0.3146, allocations: 68.61 kB / 0.5677 GB, free: 12.78 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000649/0.3152, allocations: 321 kB / 0.568 GB, free: 12.43 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005835/0.3158, allocations: 0.6708 MB / 0.5687 GB, free: 11.63 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.54e-05/0.3159, allocations: 44.38 kB / 0.5687 GB, free: 11.59 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002187/0.3181, allocations: 0.8202 MB / 0.5695 GB, free: 10.72 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.091e-05/0.3181, allocations: 3.938 kB / 0.5695 GB, free: 10.72 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.606e-05/0.3182, allocations: 16 kB / 0.5696 GB, free: 10.7 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.206e-05/0.3182, allocations: 12 kB / 0.5696 GB, free: 10.69 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003768/0.3219, allocations: 1.208 MB / 0.5708 GB, free: 9.484 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003065/0.325, allocations: 1.895 MB / 0.5726 GB, free: 7.508 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002878/0.3279, allocations: 0.752 MB / 0.5733 GB, free: 6.738 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001626/0.3295, allocations: 466.4 kB / 0.5738 GB, free: 6.277 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.136e-05/0.3296, allocations: 12.55 kB / 0.5738 GB, free: 6.266 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.159e-05/0.3296, allocations: 51.61 kB / 0.5738 GB, free: 6.207 MB / 414.1 MB Notification: Performance of pre-optimization done (n=66): time 2.685e-06/0.3296, allocations: 0 / 0.5738 GB, free: 6.207 MB / 414.1 MB Notification: Performance of matching and sorting (n=122): time 0.08761/0.4172, allocations: 15.53 MB / 0.589 GB, free: 6.578 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.206e-05/0.4173, allocations: 94.05 kB / 0.5891 GB, free: 6.469 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005399/0.4179, allocations: 413.5 kB / 0.5895 GB, free: 6.055 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001553/0.418, allocations: 45.7 kB / 0.5895 GB, free: 6.004 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001744/0.4182, allocations: 229.5 kB / 0.5898 GB, free: 5.773 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004444/0.4186, allocations: 428.3 kB / 0.5902 GB, free: 5.352 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005415/0.4192, allocations: 202.9 kB / 0.5904 GB, free: 5.145 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0002087/0.4194, allocations: 370.8 kB / 0.5907 GB, free: 4.773 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00389/0.4233, allocations: 1.353 MB / 0.592 GB, free: 3.422 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004106/0.4274, allocations: 1.501 MB / 0.5935 GB, free: 1.871 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007078/0.4345, allocations: 2.455 MB / 0.5959 GB, free: 15.37 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.53e-06/0.4345, allocations: 0 / 0.5959 GB, free: 15.37 MB / 446.1 MB Notification: Performance of matching and sorting (n=150) (initialization): time 0.008229/0.4427, allocations: 2.859 MB / 0.5987 GB, free: 12.5 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.563e-05/0.4427, allocations: 10.34 kB / 0.5987 GB, free: 12.49 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.24e-05/0.4427, allocations: 4 kB / 0.5987 GB, free: 12.49 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.358e-05/0.4427, allocations: 8 kB / 0.5987 GB, free: 12.48 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002764/0.4455, allocations: 411.6 kB / 0.5991 GB, free: 12.08 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.118e-05/0.4455, allocations: 15.88 kB / 0.5991 GB, free: 12.06 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002008/0.4475, allocations: 219.7 kB / 0.5993 GB, free: 11.85 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001517/0.4477, allocations: 43.98 kB / 0.5994 GB, free: 11.8 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: 12 (kinematicPTP2a.noWphase,kinematicPTP2b.noWphase,kinematicPTP2b.motion_ref,kinematicPTP2b.moving[1],kinematicPTP1a.noWphase,kinematicPTP1b.noWphase,kinematicPTP1b.motion_ref,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 (150): * Single equations (assignments): 150 * 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.0005126/0.4482, allocations: 237.9 kB / 0.5996 GB, free: 11.56 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002217/0.4484, allocations: 63.58 kB / 0.5997 GB, free: 11.5 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002732/0.4487, allocations: 116.7 kB / 0.5998 GB, free: 11.39 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.161e-05/0.4487, allocations: 12 kB / 0.5998 GB, free: 11.38 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.106e-05/0.4487, allocations: 7.875 kB / 0.5998 GB, free: 11.37 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.561e-05/0.4487, allocations: 7.969 kB / 0.5998 GB, free: 11.36 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01202/0.4608, allocations: 4.854 MB / 0.6045 GB, free: 6.176 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.369e-05/0.4608, allocations: 20 kB / 0.6046 GB, free: 6.156 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001537/0.4623, allocations: 351.5 kB / 0.6049 GB, free: 5.812 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.254e-05/0.4624, allocations: 31.98 kB / 0.6049 GB, free: 5.781 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001014/0.4625, allocations: 51.98 kB / 0.605 GB, free: 5.73 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.237e-05/0.4625, allocations: 35.86 kB / 0.605 GB, free: 5.695 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.032e-05/0.4625, allocations: 35.81 kB / 0.605 GB, free: 5.66 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007713/0.4702, allocations: 3.143 MB / 0.6081 GB, free: 2.215 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004733/0.4707, allocations: 167.5 kB / 0.6083 GB, free: 2.051 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001328/0.4708, allocations: 47.98 kB / 0.6083 GB, free: 2.004 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001335/0.4722, allocations: 199.7 kB / 0.6085 GB, free: 1.809 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004264/0.4726, allocations: 223.2 kB / 0.6087 GB, free: 1.59 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.202e-05/0.4727, allocations: 56 kB / 0.6088 GB, free: 1.535 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.0003299/0.473, allocations: 287.1 kB / 0.609 GB, free: 1.254 MB / 446.1 MB Notification: Performance of sort global known variables: time 7e-08/0.473, allocations: 0 / 0.609 GB, free: 1.254 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.0009728/0.474, allocations: 228 kB / 0.6093 GB, free: 1.031 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: 8 (kinematicPTP2b.moving[1],kinematicPTP2b.motion_ref,kinematicPTP1b.moving[1],kinematicPTP1b.motion_ref,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 (122): * Single equations (assignments): 122 * 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.00833/0.4823, allocations: 3.735 MB / 0.6129 GB, free: 12.99 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.006685/0.489, allocations: 2.179 MB / 0.615 GB, free: 10.8 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 1.959e-05/0.489, allocations: 3.938 kB / 0.615 GB, free: 10.8 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003659/0.4927, allocations: 1.073 MB / 0.6161 GB, free: 9.73 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001368/0.4941, allocations: 143.4 kB / 0.6162 GB, free: 9.594 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0289/0.523, allocations: 12.49 MB / 0.6284 GB, free: 12.36 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000454/0.5234, allocations: 325.6 kB / 0.6287 GB, free: 12.01 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.001118/0.5245, allocations: 210.1 kB / 0.6289 GB, free: 11.8 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007083/0.5252, allocations: 227.3 kB / 0.6292 GB, free: 11.59 MB / 478.1 MB Notification: Performance of SimCode: time 1.192e-06/0.5252, allocations: 0 / 0.6292 GB, free: 11.59 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05612/0.5814, allocations: 23.9 MB / 0.6525 GB, free: 3.852 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.13/12.71, allocations: 7.547 kB / 0.6525 GB, free: 3.848 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 & python3 -m fmpy simulate --output-file ModelicaTest_trunk_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_trunk_ModelicaTest_Blocks_KinematicPTP.fmu > ModelicaTest_trunk_ModelicaTest.Blocks.KinematicPTP.pipe 2>&1) [Timeout 52.5] diffSimulationResults("ModelicaTest_trunk_ModelicaTest.Blocks.KinematicPTP_res.csv","/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: 15.80578901199624]