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.001645/0.001645, allocations: 117 kB / 18.49 MB, free: 4.566 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.001787/0.001787, allocations: 216.7 kB / 21.46 MB, free: 1.613 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.414/1.414, allocations: 230.5 MB / 254.7 MB, free: 15.02 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.2221/0.2221, allocations: 46.92 MB / 357.7 MB, free: 10.18 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.002178/0.002178, allocations: 79.88 kB / 0.4916 GB, free: 7.707 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1222/0.1243, allocations: 66.05 MB / 0.5561 GB, free: 5.531 MB / 414.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.KinematicPTP): time 0.003616/0.128, allocations: 2.424 MB / 0.5585 GB, free: 3.082 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.001631/0.1296, allocations: 0.9786 MB / 0.5595 GB, free: 2.098 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001329/0.1297, allocations: 15.88 kB / 0.5595 GB, free: 2.082 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003562/0.1301, allocations: 123.2 kB / 0.5596 GB, free: 1.961 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000231/0.1303, allocations: 103.3 kB / 0.5597 GB, free: 1.859 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005838/0.1309, allocations: 287.5 kB / 0.56 GB, free: 1.578 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007338/0.1316, allocations: 0.7171 MB / 0.5607 GB, free: 0.8594 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001424/0.1318, allocations: 49.06 kB / 0.5607 GB, free: 0.8086 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000331/0.1321, allocations: 303 kB / 0.561 GB, free: 0.5117 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000405/0.1325, allocations: 346.7 kB / 0.5613 GB, free: 176 kB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 8.867e-05/0.1326, allocations: 56 kB / 0.5614 GB, free: 120 kB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.034e-05/0.1327, allocations: 60 kB / 0.5615 GB, free: 60 kB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002149/0.1329, allocations: 199.5 kB / 0.5616 GB, free: 15.86 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002197/0.1331, allocations: 242.7 kB / 0.5619 GB, free: 15.62 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005798/0.1337, allocations: 0.5525 MB / 0.5624 GB, free: 15.07 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.747e-06/0.1337, allocations: 0 / 0.5624 GB, free: 15.07 MB / 430.1 MB Notification: Performance of FrontEnd: time 1.453e-06/0.1337, allocations: 0 / 0.5624 GB, free: 15.07 MB / 430.1 MB Notification: Performance of Transformations before backend: time 7.294e-06/0.1337, allocations: 0 / 0.5624 GB, free: 15.07 MB / 430.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.002353/0.1361, allocations: 0.9466 MB / 0.5633 GB, free: 14.07 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.412e-05/0.1361, allocations: 8.031 kB / 0.5633 GB, free: 14.06 MB / 430.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 3.052e-05/0.1361, allocations: 8.75 kB / 0.5634 GB, free: 14.05 MB / 430.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001232/0.1363, allocations: 94.64 kB / 0.5634 GB, free: 13.95 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001357/0.1364, allocations: 68.61 kB / 0.5635 GB, free: 13.89 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006632/0.1371, allocations: 387.3 kB / 0.5639 GB, free: 13.46 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003994/0.1375, allocations: 263.7 kB / 0.5641 GB, free: 13.17 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001017/0.1376, allocations: 48.12 kB / 0.5642 GB, free: 13.12 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00222/0.1398, allocations: 0.8047 MB / 0.565 GB, free: 12.28 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.289e-05/0.1398, allocations: 3.938 kB / 0.565 GB, free: 12.28 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.508e-05/0.1399, allocations: 20 kB / 0.565 GB, free: 12.26 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.421e-05/0.1399, allocations: 12 kB / 0.565 GB, free: 12.25 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003721/0.1436, allocations: 1.197 MB / 0.5662 GB, free: 11.05 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003248/0.1468, allocations: 2.027 MB / 0.5681 GB, free: 8.941 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003194/0.15, allocations: 0.7765 MB / 0.5689 GB, free: 8.148 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001552/0.1516, allocations: 454.4 kB / 0.5693 GB, free: 7.699 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.522e-05/0.1517, allocations: 15.92 kB / 0.5694 GB, free: 7.684 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.866e-05/0.1517, allocations: 46.5 kB / 0.5694 GB, free: 7.629 MB / 430.1 MB Notification: Performance of pre-optimization done (n=64): time 2.605e-06/0.1517, allocations: 0 / 0.5694 GB, free: 7.629 MB / 430.1 MB Notification: Performance of matching and sorting (n=120): time 0.09013/0.2418, allocations: 15.77 MB / 0.5848 GB, free: 7.68 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.512e-05/0.2419, allocations: 94.17 kB / 0.5849 GB, free: 7.57 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004889/0.2424, allocations: 393.5 kB / 0.5853 GB, free: 7.176 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001581/0.2426, allocations: 49.64 kB / 0.5853 GB, free: 7.121 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001753/0.2428, allocations: 217.6 kB / 0.5855 GB, free: 6.902 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004471/0.2432, allocations: 424.4 kB / 0.5859 GB, free: 6.484 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005844/0.2438, allocations: 198.8 kB / 0.5861 GB, free: 6.281 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 0.0001939/0.244, allocations: 378.8 kB / 0.5865 GB, free: 5.902 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003814/0.2478, allocations: 1.338 MB / 0.5878 GB, free: 4.566 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003989/0.2518, allocations: 1.505 MB / 0.5893 GB, free: 3.016 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007092/0.2589, allocations: 2.434 MB / 0.5916 GB, free: 0.5352 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.314e-06/0.2589, allocations: 4 kB / 0.5916 GB, free: 0.5312 MB / 446.1 MB Notification: Performance of matching and sorting (n=148) (initialization): time 0.2219/0.4808, allocations: 2.825 MB / 0.5944 GB, free: 36.95 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.391e-05/0.4808, allocations: 6.625 kB / 0.5944 GB, free: 36.95 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.183e-05/0.4808, allocations: 4.297 kB / 0.5944 GB, free: 36.95 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.588e-05/0.4808, allocations: 11.72 kB / 0.5944 GB, free: 36.95 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002679/0.4835, allocations: 407.8 kB / 0.5948 GB, free: 36.95 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.835e-05/0.4835, allocations: 14.83 kB / 0.5948 GB, free: 36.95 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001937/0.4855, allocations: 216.3 kB / 0.595 GB, free: 36.95 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001465/0.4856, allocations: 41.17 kB / 0.5951 GB, free: 36.95 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.0004298/0.4861, allocations: 234.2 kB / 0.5953 GB, free: 36.83 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002138/0.4863, allocations: 67.91 kB / 0.5954 GB, free: 36.83 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002637/0.4865, allocations: 107.3 kB / 0.5955 GB, free: 36.82 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.215e-05/0.4865, allocations: 13.62 kB / 0.5955 GB, free: 36.82 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.277e-06/0.4866, allocations: 1.453 kB / 0.5955 GB, free: 36.82 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.217e-05/0.4866, allocations: 8.672 kB / 0.5955 GB, free: 36.82 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01114/0.4977, allocations: 5.238 MB / 0.6006 GB, free: 34.78 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.725e-05/0.4977, allocations: 20.25 kB / 0.6006 GB, free: 34.78 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001551/0.4993, allocations: 355 kB / 0.6009 GB, free: 34.75 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.649e-05/0.4993, allocations: 27.66 kB / 0.601 GB, free: 34.75 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000106/0.4994, allocations: 47.44 kB / 0.601 GB, free: 34.73 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.414e-05/0.4995, allocations: 43.59 kB / 0.6011 GB, free: 34.72 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.945e-05/0.4995, allocations: 32.06 kB / 0.6011 GB, free: 34.71 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00699/0.5065, allocations: 3.088 MB / 0.6041 GB, free: 32.97 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004548/0.5069, allocations: 246.1 kB / 0.6043 GB, free: 32.79 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001568/0.5071, allocations: 51.77 kB / 0.6044 GB, free: 32.78 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001356/0.5085, allocations: 190.4 kB / 0.6046 GB, free: 32.76 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004004/0.5089, allocations: 214.3 kB / 0.6048 GB, free: 32.67 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.088e-05/0.509, allocations: 56.47 kB / 0.6048 GB, free: 32.66 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.0002867/0.5092, allocations: 267.9 kB / 0.6051 GB, free: 32.53 MB / 446.1 MB Notification: Performance of sort global known variables: time 8e-08/0.5092, allocations: 1.688 kB / 0.6051 GB, free: 32.53 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.001014/0.5103, allocations: 231.7 kB / 0.6053 GB, free: 32.49 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.007242/0.5175, allocations: 3.683 MB / 0.6089 GB, free: 30.19 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.007051/0.5245, allocations: 2.161 MB / 0.611 GB, free: 29.48 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 2.117e-05/0.5246, allocations: 6.938 kB / 0.611 GB, free: 29.48 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.005245/0.5298, allocations: 1.049 MB / 0.612 GB, free: 29.14 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002204/0.532, allocations: 156.6 kB / 0.6122 GB, free: 29.1 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03716/0.5692, allocations: 12.38 MB / 0.6243 GB, free: 20.86 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006388/0.5698, allocations: 0.9315 MB / 0.6252 GB, free: 19.9 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.001554/0.5714, allocations: 209.1 kB / 0.6254 GB, free: 19.71 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009574/0.5723, allocations: 219.4 kB / 0.6256 GB, free: 19.5 MB / 446.1 MB Notification: Performance of SimCode: time 1.503e-06/0.5723, allocations: 1.406 kB / 0.6256 GB, free: 19.5 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04008/0.6124, allocations: 21.71 MB / 0.6468 GB, free: 13.86 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.197/9.809, allocations: 8.047 kB / 0.6468 GB, free: 13.85 MB / 462.1 MB " [Timeout remaining time 650] (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: 12.81554253603099]