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.001224/0.001224, allocations: 109.1 kB / 21.22 MB, free: 0.7344 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.001364/0.001364, allocations: 207.6 kB / 24.53 MB, free: 4.07 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.355/1.355, allocations: 230.5 MB / 258.2 MB, free: 8.031 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.2216/0.2216, allocations: 46.93 MB / 361.6 MB, free: 4.199 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="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Blocks.KinematicPTP,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Blocks_KinematicPTP",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002164/0.002164, allocations: 79.88 kB / 0.497 GB, free: 7.781 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2992/0.3014, allocations: 66.07 MB / 0.5615 GB, free: 4.34 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.KinematicPTP): time 0.003651/0.3051, allocations: 2.438 MB / 0.5639 GB, free: 1.891 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.001617/0.3067, allocations: 0.9835 MB / 0.5648 GB, free: 0.9023 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001307/0.3068, allocations: 19.81 kB / 0.5648 GB, free: 0.8828 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003271/0.3071, allocations: 119.2 kB / 0.565 GB, free: 0.7656 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002094/0.3073, allocations: 91.38 kB / 0.565 GB, free: 0.6758 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005847/0.3079, allocations: 295.5 kB / 0.5653 GB, free: 396 kB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007466/0.3087, allocations: 0.721 MB / 0.566 GB, free: 15.66 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001331/0.3088, allocations: 51.22 kB / 0.5661 GB, free: 15.61 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003364/0.3091, allocations: 311 kB / 0.5664 GB, free: 15.3 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004107/0.3096, allocations: 338.8 kB / 0.5667 GB, free: 14.97 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 8.94e-05/0.3096, allocations: 60 kB / 0.5668 GB, free: 14.91 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.932e-05/0.3097, allocations: 60 kB / 0.5668 GB, free: 14.86 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001874/0.3099, allocations: 195.4 kB / 0.567 GB, free: 14.66 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002202/0.3101, allocations: 246.7 kB / 0.5672 GB, free: 14.42 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005464/0.3107, allocations: 0.5525 MB / 0.5678 GB, free: 13.87 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.296e-06/0.3107, allocations: 0 / 0.5678 GB, free: 13.87 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.312e-06/0.3107, allocations: 4 kB / 0.5678 GB, free: 13.86 MB / 414.1 MB Notification: Performance of Transformations before backend: time 6.903e-06/0.3107, allocations: 0 / 0.5678 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.002229/0.3129, allocations: 0.8752 MB / 0.5686 GB, free: 12.96 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.817e-05/0.313, allocations: 8.031 kB / 0.5686 GB, free: 12.95 MB / 414.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.915e-05/0.313, allocations: 8.844 kB / 0.5687 GB, free: 12.94 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001067/0.3131, allocations: 94.7 kB / 0.5687 GB, free: 12.84 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001145/0.3132, allocations: 68.61 kB / 0.5688 GB, free: 12.77 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005548/0.3138, allocations: 313 kB / 0.5691 GB, free: 12.44 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006087/0.3144, allocations: 0.6669 MB / 0.5698 GB, free: 11.64 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.622e-05/0.3145, allocations: 52.12 kB / 0.5698 GB, free: 11.59 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002104/0.3166, allocations: 0.8047 MB / 0.5706 GB, free: 10.74 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.793e-05/0.3166, allocations: 0 / 0.5706 GB, free: 10.74 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.883e-05/0.3166, allocations: 16 kB / 0.5706 GB, free: 10.72 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.257e-05/0.3167, allocations: 16 kB / 0.5706 GB, free: 10.71 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003589/0.3202, allocations: 1.192 MB / 0.5718 GB, free: 9.516 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00283/0.3231, allocations: 1.999 MB / 0.5737 GB, free: 7.438 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003052/0.3261, allocations: 0.7804 MB / 0.5745 GB, free: 6.641 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001515/0.3276, allocations: 465.2 kB / 0.5749 GB, free: 6.18 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.93e-05/0.3277, allocations: 7.938 kB / 0.575 GB, free: 6.172 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.149e-05/0.3277, allocations: 42.5 kB / 0.575 GB, free: 6.121 MB / 414.1 MB Notification: Performance of pre-optimization done (n=64): time 1.694e-06/0.3277, allocations: 4 kB / 0.575 GB, free: 6.117 MB / 414.1 MB Notification: Performance of matching and sorting (n=120): time 0.08924/0.417, allocations: 15.47 MB / 0.5901 GB, free: 6.551 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.929e-05/0.4171, allocations: 94.05 kB / 0.5902 GB, free: 6.441 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005685/0.4176, allocations: 389.5 kB / 0.5906 GB, free: 6.051 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002222/0.4179, allocations: 45.7 kB / 0.5906 GB, free: 6 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001957/0.4181, allocations: 229.5 kB / 0.5908 GB, free: 5.77 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005167/0.4186, allocations: 420.5 kB / 0.5912 GB, free: 5.355 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006251/0.4192, allocations: 202.8 kB / 0.5914 GB, free: 5.148 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0001997/0.4194, allocations: 374.8 kB / 0.5918 GB, free: 4.773 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003859/0.4233, allocations: 1.342 MB / 0.5931 GB, free: 3.434 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003972/0.4272, allocations: 1.493 MB / 0.5946 GB, free: 1.891 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007115/0.4343, allocations: 2.436 MB / 0.5969 GB, free: 15.41 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5e-06/0.4343, allocations: 0 / 0.5969 GB, free: 15.41 MB / 446.1 MB Notification: Performance of matching and sorting (n=148) (initialization): time 0.008132/0.4425, allocations: 2.839 MB / 0.5997 GB, free: 12.56 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.186e-05/0.4425, allocations: 4 kB / 0.5997 GB, free: 12.56 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.163e-05/0.4425, allocations: 4 kB / 0.5997 GB, free: 12.55 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.652e-05/0.4425, allocations: 8 kB / 0.5997 GB, free: 12.55 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002685/0.4452, allocations: 415.5 kB / 0.6001 GB, free: 12.14 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.414e-05/0.4452, allocations: 8 kB / 0.6001 GB, free: 12.13 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001957/0.4472, allocations: 219.7 kB / 0.6003 GB, free: 11.92 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000166/0.4474, allocations: 36 kB / 0.6004 GB, free: 11.88 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.0005282/0.4479, allocations: 232.9 kB / 0.6006 GB, free: 11.65 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000257/0.4482, allocations: 67.62 kB / 0.6007 GB, free: 11.58 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002917/0.4484, allocations: 112.7 kB / 0.6008 GB, free: 11.47 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.594e-05/0.4485, allocations: 15.94 kB / 0.6008 GB, free: 11.46 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.342e-05/0.4485, allocations: 3.984 kB / 0.6008 GB, free: 11.45 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.112e-05/0.4485, allocations: 3.984 kB / 0.6008 GB, free: 11.45 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01236/0.4608, allocations: 5.201 MB / 0.6059 GB, free: 5.914 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.938e-05/0.4609, allocations: 20 kB / 0.6059 GB, free: 5.895 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001546/0.4624, allocations: 360 kB / 0.6062 GB, free: 5.543 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.769e-05/0.4625, allocations: 28 kB / 0.6062 GB, free: 5.516 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001023/0.4626, allocations: 48 kB / 0.6063 GB, free: 5.469 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.247e-05/0.4626, allocations: 39.86 kB / 0.6063 GB, free: 5.43 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.9e-05/0.4626, allocations: 27.88 kB / 0.6064 GB, free: 5.402 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007584/0.4702, allocations: 3.103 MB / 0.6094 GB, free: 1.992 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003846/0.4706, allocations: 167.5 kB / 0.6095 GB, free: 1.828 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001438/0.4707, allocations: 51.98 kB / 0.6096 GB, free: 1.777 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001309/0.472, allocations: 187.8 kB / 0.6098 GB, free: 1.594 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00044/0.4725, allocations: 223.1 kB / 0.61 GB, free: 1.375 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001059/0.4726, allocations: 63.94 kB / 0.6101 GB, free: 1.312 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.0003089/0.4729, allocations: 267.1 kB / 0.6103 GB, free: 1.051 MB / 446.1 MB Notification: Performance of sort global known variables: time 8e-08/0.4729, allocations: 0 / 0.6103 GB, free: 1.051 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.0009782/0.4739, allocations: 232 kB / 0.6105 GB, free: 0.8242 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.008027/0.4819, allocations: 3.675 MB / 0.6141 GB, free: 12.84 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.006681/0.4886, allocations: 2.158 MB / 0.6162 GB, free: 10.68 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 2.227e-05/0.4886, allocations: 4 kB / 0.6162 GB, free: 10.68 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003645/0.4923, allocations: 1.047 MB / 0.6173 GB, free: 9.637 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00158/0.4938, allocations: 151.3 kB / 0.6174 GB, free: 9.488 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02939/0.5232, allocations: 12.39 MB / 0.6295 GB, free: 12.37 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006891/0.5239, allocations: 0.932 MB / 0.6304 GB, free: 11.41 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.001022/0.5249, allocations: 206.2 kB / 0.6306 GB, free: 11.21 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007329/0.5257, allocations: 219.4 kB / 0.6308 GB, free: 10.99 MB / 478.1 MB Notification: Performance of SimCode: time 1.192e-06/0.5257, allocations: 0 / 0.6308 GB, free: 10.99 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05266/0.5783, allocations: 22.9 MB / 0.6532 GB, free: 4.199 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.71/12.28, allocations: 8.062 kB / 0.6532 GB, free: 4.191 MB / 494.1 MB " [Timeout remaining time 648] (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_trunk_ModelicaTest.Blocks.KinematicPTP_res.mat --tempDir=temp_ModelicaTest_trunk_ModelicaTest_Blocks_KinematicPTP_fmu --startTime=0 --stopTime=3 --stepSize=0.000598444 --timeout=50 --tolerance=1e-06 ModelicaTest_trunk_ModelicaTest_Blocks_KinematicPTP.fmu > ModelicaTest_trunk_ModelicaTest.Blocks.KinematicPTP.pipe 2>&1) [Timeout 52.5] diffSimulationResults("ModelicaTest_trunk_ModelicaTest.Blocks.KinematicPTP_res.mat","/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.167760357027873]