Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.0_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.001458/0.001458, 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 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.00163/0.00163, allocations: 210.4 kB / 23.73 MB, free: 4.41 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.475/1.475, allocations: 230.6 MB / 257.5 MB, free: 7.816 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo): time 0.2245/0.2245, allocations: 46.96 MB / 360.9 MB, free: 4.156 MB / 286.1 MB " [Timeout remaining time 180] Using package ModelicaTest with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+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_4_1_0_ModelicaTest_Blocks_KinematicPTP",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Blocks.KinematicPTP,fileNamePrefix="ModelicaTest_4_1_0_ModelicaTest_Blocks_KinematicPTP",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002309/0.002309, allocations: 67.91 kB / 0.4961 GB, free: 7.766 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3194/0.3217, allocations: 66.04 MB / 0.5606 GB, free: 4.262 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.KinematicPTP): time 0.004182/0.3259, allocations: 2.251 MB / 0.5628 GB, free: 1.996 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.001933/0.3278, allocations: 0.933 MB / 0.5637 GB, free: 1.059 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002845/0.3281, allocations: 11.88 kB / 0.5637 GB, free: 1.047 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004605/0.3285, allocations: 127.2 kB / 0.5638 GB, free: 0.9219 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003397/0.3289, allocations: 87.34 kB / 0.5639 GB, free: 0.8359 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007507/0.3296, allocations: 307.5 kB / 0.5642 GB, free: 0.5352 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008386/0.3305, allocations: 0.7211 MB / 0.5649 GB, free: 15.81 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001578/0.3306, allocations: 51.08 kB / 0.565 GB, free: 15.75 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003965/0.331, allocations: 291 kB / 0.5652 GB, free: 15.47 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004851/0.3315, allocations: 322.7 kB / 0.5655 GB, free: 15.16 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001302/0.3316, allocations: 60 kB / 0.5656 GB, free: 15.1 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001171/0.3317, allocations: 64 kB / 0.5657 GB, free: 15.04 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002203/0.332, allocations: 207.4 kB / 0.5659 GB, free: 14.83 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002203/0.3322, allocations: 211 kB / 0.5661 GB, free: 14.62 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006243/0.3328, allocations: 0.5681 MB / 0.5666 GB, free: 14.05 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.436e-06/0.3328, allocations: 0 / 0.5666 GB, free: 14.05 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.402e-06/0.3328, allocations: 0 / 0.5666 GB, free: 14.05 MB / 414.1 MB Notification: Performance of Transformations before backend: time 1.565e-05/0.3328, allocations: 4 kB / 0.5666 GB, free: 14.05 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.002588/0.3354, allocations: 0.8753 MB / 0.5675 GB, free: 13.14 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.991e-05/0.3355, allocations: 12.03 kB / 0.5675 GB, free: 13.13 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001344/0.3356, allocations: 90.7 kB / 0.5676 GB, free: 13.04 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001468/0.3358, allocations: 64.61 kB / 0.5676 GB, free: 12.97 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007498/0.3365, allocations: 325 kB / 0.5679 GB, free: 12.62 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006027/0.3371, allocations: 0.6669 MB / 0.5686 GB, free: 11.82 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.82e-05/0.3372, allocations: 44.38 kB / 0.5686 GB, free: 11.78 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002214/0.3394, allocations: 0.8202 MB / 0.5694 GB, free: 10.92 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.477e-05/0.3394, allocations: 3.938 kB / 0.5694 GB, free: 10.92 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.48e-05/0.3395, allocations: 20 kB / 0.5695 GB, free: 10.9 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.118e-05/0.3395, allocations: 15.94 kB / 0.5695 GB, free: 10.88 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003852/0.3434, allocations: 1.208 MB / 0.5707 GB, free: 9.676 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0032/0.3466, allocations: 1.891 MB / 0.5725 GB, free: 7.703 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003064/0.3496, allocations: 0.7559 MB / 0.5732 GB, free: 6.93 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001654/0.3513, allocations: 466.4 kB / 0.5737 GB, free: 6.469 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.41e-05/0.3514, allocations: 8.562 kB / 0.5737 GB, free: 6.461 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.252e-05/0.3514, allocations: 43.62 kB / 0.5737 GB, free: 6.41 MB / 414.1 MB Notification: Performance of pre-optimization done (n=66): time 3.246e-06/0.3514, allocations: 0 / 0.5737 GB, free: 6.41 MB / 414.1 MB Notification: Performance of matching and sorting (n=122): time 0.09068/0.4421, allocations: 15.54 MB / 0.5889 GB, free: 6.77 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.693e-05/0.4422, allocations: 97.98 kB / 0.589 GB, free: 6.656 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006509/0.4428, allocations: 417.5 kB / 0.5894 GB, free: 6.238 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001962/0.443, allocations: 45.7 kB / 0.5895 GB, free: 6.188 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001853/0.4432, allocations: 213.6 kB / 0.5897 GB, free: 5.973 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005319/0.4437, allocations: 432.3 kB / 0.5901 GB, free: 5.547 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005822/0.4443, allocations: 198.9 kB / 0.5903 GB, free: 5.344 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0002035/0.4445, allocations: 374.8 kB / 0.5906 GB, free: 4.969 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004042/0.4486, allocations: 1.353 MB / 0.5919 GB, free: 3.617 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00419/0.4527, allocations: 1.505 MB / 0.5934 GB, free: 2.062 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007627/0.4604, allocations: 2.459 MB / 0.5958 GB, free: 15.56 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.356e-06/0.4604, allocations: 0 / 0.5958 GB, free: 15.56 MB / 446.1 MB Notification: Performance of matching and sorting (n=150) (initialization): time 0.008587/0.469, allocations: 2.855 MB / 0.5986 GB, free: 12.7 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.293e-05/0.469, allocations: 8 kB / 0.5986 GB, free: 12.69 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.336e-05/0.469, allocations: 4 kB / 0.5986 GB, free: 12.68 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.302e-05/0.469, allocations: 8.25 kB / 0.5986 GB, free: 12.68 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00275/0.4718, allocations: 411.3 kB / 0.599 GB, free: 12.27 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.486e-05/0.4718, allocations: 15.94 kB / 0.599 GB, free: 12.26 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002166/0.474, allocations: 215.7 kB / 0.5992 GB, free: 12.05 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001928/0.4742, allocations: 47.98 kB / 0.5993 GB, free: 12 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.0005629/0.4748, allocations: 237.9 kB / 0.5995 GB, free: 11.76 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002541/0.475, allocations: 63.58 kB / 0.5996 GB, free: 11.7 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002434/0.4753, allocations: 112.7 kB / 0.5997 GB, free: 11.59 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.64e-05/0.4753, allocations: 12 kB / 0.5997 GB, free: 11.57 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.348e-05/0.4753, allocations: 7.875 kB / 0.5997 GB, free: 11.57 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.19e-05/0.4753, allocations: 7.969 kB / 0.5997 GB, free: 11.56 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01293/0.4882, allocations: 4.85 MB / 0.6044 GB, free: 6.375 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.228e-05/0.4883, allocations: 20 kB / 0.6045 GB, free: 6.355 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001632/0.49, allocations: 352.1 kB / 0.6048 GB, free: 6.012 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.019e-05/0.49, allocations: 28 kB / 0.6048 GB, free: 5.984 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001361/0.4901, allocations: 51.98 kB / 0.6049 GB, free: 5.934 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.488e-05/0.4902, allocations: 39.86 kB / 0.6049 GB, free: 5.895 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.06e-05/0.4902, allocations: 39.8 kB / 0.6049 GB, free: 5.855 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008375/0.4986, allocations: 3.139 MB / 0.608 GB, free: 2.414 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005538/0.4991, allocations: 171.5 kB / 0.6082 GB, free: 2.246 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001733/0.4993, allocations: 51.98 kB / 0.6082 GB, free: 2.195 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001438/0.5008, allocations: 195.7 kB / 0.6084 GB, free: 2.004 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004759/0.5012, allocations: 223.2 kB / 0.6086 GB, free: 1.785 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001111/0.5013, allocations: 60 kB / 0.6087 GB, free: 1.727 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.0003754/0.5017, allocations: 283.1 kB / 0.6089 GB, free: 1.445 MB / 446.1 MB Notification: Performance of sort global known variables: time 8e-08/0.5017, allocations: 0 / 0.6089 GB, free: 1.445 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.001071/0.5028, allocations: 232 kB / 0.6092 GB, free: 1.219 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.008663/0.5115, allocations: 3.733 MB / 0.6128 GB, free: 13.18 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.006891/0.5183, allocations: 2.179 MB / 0.6149 GB, free: 11 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 2.831e-05/0.5184, allocations: 7.938 kB / 0.6149 GB, free: 11 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003851/0.5222, allocations: 1.067 MB / 0.616 GB, free: 9.934 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001596/0.5238, allocations: 145.2 kB / 0.6161 GB, free: 9.793 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03083/0.5547, allocations: 12.49 MB / 0.6283 GB, free: 12.56 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000557/0.5552, allocations: 325.6 kB / 0.6286 GB, free: 12.21 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.001137/0.5563, allocations: 201.9 kB / 0.6288 GB, free: 12.02 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007665/0.5571, allocations: 227.4 kB / 0.629 GB, free: 11.8 MB / 478.1 MB Notification: Performance of SimCode: time 9.42e-07/0.5571, allocations: 0 / 0.629 GB, free: 11.8 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06077/0.6179, allocations: 23.91 MB / 0.6524 GB, free: 4.152 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.11/12.73, allocations: 3.438 kB / 0.6524 GB, free: 4.152 MB / 494.1 MB " [Timeout remaining time 647] (rm -f ModelicaTest_4.1.0_ModelicaTest.Blocks.KinematicPTP.pipe ; mkfifo ModelicaTest_4.1.0_ModelicaTest.Blocks.KinematicPTP.pipe ; head -c 1048576 < ModelicaTest_4.1.0_ModelicaTest.Blocks.KinematicPTP.pipe >> ../files/ModelicaTest_4.1.0_ModelicaTest.Blocks.KinematicPTP.sim & python3 -m fmpy simulate --output-file ModelicaTest_4.1.0_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_4_1_0_ModelicaTest_Blocks_KinematicPTP.fmu > ModelicaTest_4.1.0_ModelicaTest.Blocks.KinematicPTP.pipe 2>&1) [Timeout 52.5] diffSimulationResults("ModelicaTest_4.1.0_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_4.1.0_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.851941719185561]