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.001354/0.001354, allocations: 116.4 kB / 20.43 MB, free: 1.449 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.001548/0.001548, allocations: 218.9 kB / 23.75 MB, free: 4.668 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.5/1.5, allocations: 230.5 MB / 257.4 MB, free: 8.008 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.2335/0.2335, allocations: 46.92 MB / 360.8 MB, free: 4.262 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.002364/0.002364, allocations: 80.16 kB / 0.4962 GB, free: 7.766 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3493/0.3516, allocations: 66.08 MB / 0.5607 GB, free: 4.273 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.KinematicPTP): time 0.003823/0.3555, allocations: 2.432 MB / 0.5631 GB, free: 1.828 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.001831/0.3573, allocations: 0.9913 MB / 0.5641 GB, free: 0.832 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002252/0.3575, allocations: 15.81 kB / 0.5641 GB, free: 0.8164 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003905/0.3579, allocations: 119.2 kB / 0.5642 GB, free: 0.6992 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002393/0.3582, allocations: 99.34 kB / 0.5643 GB, free: 0.6016 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007273/0.3589, allocations: 287.5 kB / 0.5646 GB, free: 328 kB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008638/0.3597, allocations: 0.7249 MB / 0.5653 GB, free: 15.59 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001567/0.3599, allocations: 47.08 kB / 0.5653 GB, free: 15.54 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003864/0.3603, allocations: 311 kB / 0.5656 GB, free: 15.24 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004739/0.3608, allocations: 338.8 kB / 0.5659 GB, free: 14.91 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001004/0.3609, allocations: 60 kB / 0.566 GB, free: 14.85 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.502e-05/0.361, allocations: 60 kB / 0.566 GB, free: 14.79 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002262/0.3612, allocations: 199.4 kB / 0.5662 GB, free: 14.59 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002516/0.3614, allocations: 246.7 kB / 0.5665 GB, free: 14.35 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006243/0.3621, allocations: 0.5525 MB / 0.567 GB, free: 13.8 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.24e-06/0.3621, allocations: 0 / 0.567 GB, free: 13.8 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.333e-06/0.3621, allocations: 0 / 0.567 GB, free: 13.8 MB / 414.1 MB Notification: Performance of Transformations before backend: time 9.548e-06/0.3621, allocations: 3.938 kB / 0.567 GB, free: 13.79 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.002303/0.3644, allocations: 0.8753 MB / 0.5679 GB, free: 12.89 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.086e-05/0.3644, allocations: 8.031 kB / 0.5679 GB, free: 12.88 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001115/0.3645, allocations: 90.7 kB / 0.568 GB, free: 12.78 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001147/0.3646, allocations: 68.61 kB / 0.568 GB, free: 12.71 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006394/0.3653, allocations: 305.1 kB / 0.5683 GB, free: 12.39 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006153/0.3659, allocations: 0.6786 MB / 0.569 GB, free: 11.57 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.177e-05/0.366, allocations: 40.38 kB / 0.569 GB, free: 11.54 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002056/0.3681, allocations: 0.8085 MB / 0.5698 GB, free: 10.68 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.961e-05/0.3681, allocations: 4 kB / 0.5698 GB, free: 10.68 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.829e-05/0.3681, allocations: 16 kB / 0.5698 GB, free: 10.66 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.341e-05/0.3681, allocations: 12 kB / 0.5698 GB, free: 10.65 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003557/0.3717, allocations: 1.2 MB / 0.571 GB, free: 9.453 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003079/0.3748, allocations: 2.003 MB / 0.573 GB, free: 7.371 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00307/0.3778, allocations: 0.7726 MB / 0.5737 GB, free: 6.582 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001501/0.3793, allocations: 457.3 kB / 0.5742 GB, free: 6.129 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.507e-05/0.3794, allocations: 11.97 kB / 0.5742 GB, free: 6.117 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.327e-05/0.3795, allocations: 54.44 kB / 0.5742 GB, free: 6.055 MB / 414.1 MB Notification: Performance of pre-optimization done (n=64): time 2.795e-06/0.3795, allocations: 0 / 0.5742 GB, free: 6.055 MB / 414.1 MB Notification: Performance of matching and sorting (n=120): time 0.08822/0.4677, allocations: 15.46 MB / 0.5893 GB, free: 6.492 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.776e-05/0.4678, allocations: 94.05 kB / 0.5894 GB, free: 6.383 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005035/0.4683, allocations: 397.4 kB / 0.5898 GB, free: 5.984 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001543/0.4684, allocations: 45.7 kB / 0.5898 GB, free: 5.934 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001838/0.4686, allocations: 225.5 kB / 0.5901 GB, free: 5.707 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004405/0.4691, allocations: 416.5 kB / 0.5905 GB, free: 5.297 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005466/0.4696, allocations: 194.9 kB / 0.5906 GB, free: 5.098 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0001933/0.4698, allocations: 378.7 kB / 0.591 GB, free: 4.719 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003769/0.4736, allocations: 1.342 MB / 0.5923 GB, free: 3.379 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003864/0.4774, allocations: 1.493 MB / 0.5938 GB, free: 1.836 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00688/0.4843, allocations: 2.443 MB / 0.5962 GB, free: 15.35 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.735e-06/0.4843, allocations: 4 kB / 0.5962 GB, free: 15.35 MB / 446.1 MB Notification: Performance of matching and sorting (n=148) (initialization): time 0.007923/0.4922, allocations: 2.831 MB / 0.5989 GB, free: 12.5 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.381e-05/0.4923, allocations: 4 kB / 0.5989 GB, free: 12.5 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.168e-05/0.4923, allocations: 4 kB / 0.5989 GB, free: 12.5 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.548e-05/0.4923, allocations: 8 kB / 0.5989 GB, free: 12.49 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002817/0.4951, allocations: 411.6 kB / 0.5993 GB, free: 12.09 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.01e-05/0.4951, allocations: 11.94 kB / 0.5993 GB, free: 12.07 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002012/0.4972, allocations: 215.7 kB / 0.5995 GB, free: 11.86 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00015/0.4973, allocations: 43.98 kB / 0.5996 GB, free: 11.82 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.0005036/0.4978, allocations: 236.9 kB / 0.5998 GB, free: 11.58 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002278/0.498, allocations: 59.62 kB / 0.5999 GB, free: 11.52 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002836/0.4983, allocations: 112.7 kB / 0.6 GB, free: 11.41 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.341e-05/0.4983, allocations: 12 kB / 0.6 GB, free: 11.4 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.264e-05/0.4984, allocations: 3.938 kB / 0.6 GB, free: 11.4 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.254e-05/0.4984, allocations: 7.969 kB / 0.6 GB, free: 11.39 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01214/0.5105, allocations: 5.2 MB / 0.6051 GB, free: 5.859 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.678e-05/0.5105, allocations: 24.91 kB / 0.6051 GB, free: 5.836 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001513/0.512, allocations: 359.3 kB / 0.6054 GB, free: 5.484 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.164e-05/0.5121, allocations: 28 kB / 0.6055 GB, free: 5.457 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001049/0.5122, allocations: 48 kB / 0.6055 GB, free: 5.41 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.246e-05/0.5122, allocations: 43.86 kB / 0.6056 GB, free: 5.367 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.348e-05/0.5122, allocations: 31.88 kB / 0.6056 GB, free: 5.336 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007398/0.5196, allocations: 3.095 MB / 0.6086 GB, free: 1.934 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004577/0.5201, allocations: 163.5 kB / 0.6088 GB, free: 1.773 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000139/0.5202, allocations: 55.97 kB / 0.6088 GB, free: 1.719 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001305/0.5215, allocations: 195.7 kB / 0.609 GB, free: 1.527 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004281/0.522, allocations: 223.1 kB / 0.6092 GB, free: 1.309 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.405e-05/0.5221, allocations: 60 kB / 0.6093 GB, free: 1.25 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.0003242/0.5224, allocations: 259.2 kB / 0.6095 GB, free: 0.9961 MB / 446.1 MB Notification: Performance of sort global known variables: time 1e-07/0.5224, allocations: 0 / 0.6095 GB, free: 0.9961 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.001012/0.5234, allocations: 232 kB / 0.6097 GB, free: 0.7695 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.007905/0.5313, allocations: 3.683 MB / 0.6133 GB, free: 12.78 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.006424/0.5377, allocations: 2.152 MB / 0.6154 GB, free: 10.62 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 1.807e-05/0.5377, allocations: 4 kB / 0.6155 GB, free: 10.62 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003508/0.5412, allocations: 1.047 MB / 0.6165 GB, free: 9.578 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001375/0.5426, allocations: 156.3 kB / 0.6166 GB, free: 9.426 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0286/0.5712, allocations: 12.38 MB / 0.6287 GB, free: 12.31 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000685/0.5719, allocations: 0.9281 MB / 0.6296 GB, free: 11.36 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.001047/0.5729, allocations: 206.2 kB / 0.6298 GB, free: 11.15 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007336/0.5737, allocations: 219.4 kB / 0.63 GB, free: 10.94 MB / 478.1 MB Notification: Performance of SimCode: time 1.232e-06/0.5737, allocations: 0 / 0.63 GB, free: 10.94 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06061/0.6343, allocations: 22.86 MB / 0.6523 GB, free: 4.18 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.17/12.8, allocations: 12.05 kB / 0.6524 GB, free: 4.168 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.960769073994015]