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.001316/0.001316, allocations: 124.4 kB / 17.79 MB, free: 5.266 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.002416/0.002416, allocations: 206.6 kB / 20.75 MB, free: 2.312 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.523/1.523, allocations: 230.4 MB / 254 MB, free: 15.03 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.2307/0.2307, allocations: 46.92 MB / 357 MB, free: 10.19 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.002541/0.002541, allocations: 79.88 kB / 0.491 GB, free: 7.75 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1356/0.1382, allocations: 66.06 MB / 0.5555 GB, free: 5.57 MB / 414.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.KinematicPTP): time 0.003902/0.1421, allocations: 2.42 MB / 0.5578 GB, free: 3.125 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.00185/0.1439, allocations: 0.9864 MB / 0.5588 GB, free: 2.133 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002381/0.1442, allocations: 11.88 kB / 0.5588 GB, free: 2.121 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003926/0.1446, allocations: 119.2 kB / 0.5589 GB, free: 2.004 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002943/0.1449, allocations: 99.31 kB / 0.559 GB, free: 1.906 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007579/0.1456, allocations: 295.5 kB / 0.5593 GB, free: 1.617 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008845/0.1465, allocations: 0.7093 MB / 0.56 GB, free: 0.9062 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001675/0.1467, allocations: 53.06 kB / 0.56 GB, free: 0.8516 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004668/0.1471, allocations: 315 kB / 0.5603 GB, free: 0.543 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004909/0.1476, allocations: 338.7 kB / 0.5607 GB, free: 216 kB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001263/0.1478, allocations: 60 kB / 0.5607 GB, free: 156 kB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001015/0.1479, allocations: 60 kB / 0.5608 GB, free: 96 kB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002268/0.1481, allocations: 191.5 kB / 0.561 GB, free: 15.9 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002505/0.1483, allocations: 238.6 kB / 0.5612 GB, free: 15.67 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006364/0.149, allocations: 0.5564 MB / 0.5617 GB, free: 15.11 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.647e-06/0.149, allocations: 0 / 0.5617 GB, free: 15.11 MB / 430.1 MB Notification: Performance of FrontEnd: time 1.804e-06/0.149, allocations: 0 / 0.5617 GB, free: 15.11 MB / 430.1 MB Notification: Performance of Transformations before backend: time 1.376e-05/0.149, allocations: 0 / 0.5617 GB, free: 15.11 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.002484/0.1515, allocations: 0.9505 MB / 0.5627 GB, free: 14.11 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.349e-05/0.1515, allocations: 12.03 kB / 0.5627 GB, free: 14.1 MB / 430.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001229/0.1516, allocations: 86.72 kB / 0.5627 GB, free: 14.01 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001335/0.1518, allocations: 64.61 kB / 0.5628 GB, free: 13.95 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006187/0.1524, allocations: 395.2 kB / 0.5632 GB, free: 13.52 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003823/0.1528, allocations: 259.7 kB / 0.5634 GB, free: 13.23 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001019/0.1529, allocations: 44.38 kB / 0.5635 GB, free: 13.19 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002214/0.1551, allocations: 0.8085 MB / 0.5643 GB, free: 12.34 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.211e-05/0.1551, allocations: 7.938 kB / 0.5643 GB, free: 12.33 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.094e-05/0.1552, allocations: 16 kB / 0.5643 GB, free: 12.32 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.133e-05/0.1552, allocations: 8 kB / 0.5643 GB, free: 12.31 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003816/0.159, allocations: 1.201 MB / 0.5655 GB, free: 11.11 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003123/0.1621, allocations: 2.031 MB / 0.5675 GB, free: 8.992 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003335/0.1655, allocations: 0.7845 MB / 0.5682 GB, free: 8.191 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00172/0.1672, allocations: 450.4 kB / 0.5686 GB, free: 7.746 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.072e-05/0.1673, allocations: 11.98 kB / 0.5687 GB, free: 7.734 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.004e-05/0.1673, allocations: 42.5 kB / 0.5687 GB, free: 7.684 MB / 430.1 MB Notification: Performance of pre-optimization done (n=64): time 3.056e-06/0.1673, allocations: 0 / 0.5687 GB, free: 7.684 MB / 430.1 MB Notification: Performance of matching and sorting (n=120): time 0.09346/0.2608, allocations: 15.78 MB / 0.5841 GB, free: 7.73 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001003/0.2609, allocations: 94.17 kB / 0.5842 GB, free: 7.617 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006722/0.2616, allocations: 385.5 kB / 0.5846 GB, free: 7.23 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002651/0.2618, allocations: 49.64 kB / 0.5846 GB, free: 7.176 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002445/0.2621, allocations: 225.5 kB / 0.5848 GB, free: 6.949 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007117/0.2628, allocations: 416.4 kB / 0.5852 GB, free: 6.539 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0008535/0.2636, allocations: 206.8 kB / 0.5854 GB, free: 6.328 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 0.0002655/0.2639, allocations: 370.8 kB / 0.5858 GB, free: 5.957 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004197/0.2681, allocations: 1.342 MB / 0.5871 GB, free: 4.617 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004275/0.2724, allocations: 1.501 MB / 0.5886 GB, free: 3.07 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007517/0.2799, allocations: 2.445 MB / 0.5909 GB, free: 0.5781 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.454e-06/0.2799, allocations: 0 / 0.5909 GB, free: 0.5781 MB / 446.1 MB Notification: Performance of matching and sorting (n=148) (initialization): time 0.2437/0.5236, allocations: 2.817 MB / 0.5937 GB, free: 36.87 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.822e-05/0.5236, allocations: 7 kB / 0.5937 GB, free: 36.87 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.265e-05/0.5236, allocations: 3.438 kB / 0.5937 GB, free: 36.87 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.931e-05/0.5236, allocations: 8.719 kB / 0.5937 GB, free: 36.87 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002802/0.5264, allocations: 412.6 kB / 0.5941 GB, free: 36.87 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.537e-05/0.5265, allocations: 16.3 kB / 0.5941 GB, free: 36.87 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002026/0.5285, allocations: 215.2 kB / 0.5943 GB, free: 36.87 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001723/0.5287, allocations: 41 kB / 0.5944 GB, free: 36.87 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.0004372/0.5291, allocations: 236.9 kB / 0.5946 GB, free: 36.75 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002248/0.5293, allocations: 64.55 kB / 0.5947 GB, free: 36.75 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000282/0.5296, allocations: 110.3 kB / 0.5948 GB, free: 36.74 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.534e-05/0.5296, allocations: 15.78 kB / 0.5948 GB, free: 36.74 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.357e-05/0.5296, allocations: 1.375 kB / 0.5948 GB, free: 36.74 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.595e-05/0.5297, allocations: 7.609 kB / 0.5948 GB, free: 36.74 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01197/0.5416, allocations: 5.229 MB / 0.5999 GB, free: 34.75 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.387e-05/0.5417, allocations: 19.81 kB / 0.5999 GB, free: 34.75 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001647/0.5433, allocations: 357.7 kB / 0.6002 GB, free: 34.71 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.818e-05/0.5433, allocations: 27.22 kB / 0.6003 GB, free: 34.71 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001095/0.5435, allocations: 48.11 kB / 0.6003 GB, free: 34.7 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.844e-05/0.5435, allocations: 39.19 kB / 0.6004 GB, free: 34.69 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.955e-05/0.5435, allocations: 37.14 kB / 0.6004 GB, free: 34.68 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007351/0.5509, allocations: 3.092 MB / 0.6034 GB, free: 32.93 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005747/0.5515, allocations: 242.2 kB / 0.6036 GB, free: 32.76 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001779/0.5516, allocations: 51.78 kB / 0.6037 GB, free: 32.74 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001553/0.5532, allocations: 192.9 kB / 0.6039 GB, free: 32.72 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005556/0.5537, allocations: 213.9 kB / 0.6041 GB, free: 32.64 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001481/0.5539, allocations: 57.08 kB / 0.6041 GB, free: 32.63 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.0003978/0.5543, allocations: 268.2 kB / 0.6044 GB, free: 32.49 MB / 446.1 MB Notification: Performance of sort global known variables: time 8e-08/0.5543, allocations: 4 kB / 0.6044 GB, free: 32.49 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.001134/0.5554, allocations: 227.9 kB / 0.6046 GB, free: 32.46 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.00776/0.5632, allocations: 3.678 MB / 0.6082 GB, free: 30.16 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.006658/0.5698, allocations: 2.168 MB / 0.6103 GB, free: 29.45 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 2.312e-05/0.5699, allocations: 3.094 kB / 0.6103 GB, free: 29.45 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003678/0.5735, allocations: 1.048 MB / 0.6113 GB, free: 29.11 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001345/0.5749, allocations: 153.6 kB / 0.6115 GB, free: 29.06 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02557/0.6004, allocations: 12.39 MB / 0.6236 GB, free: 20.79 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004395/0.6009, allocations: 0.9237 MB / 0.6245 GB, free: 19.84 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.0009887/0.6019, allocations: 214 kB / 0.6247 GB, free: 19.66 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006987/0.6026, allocations: 219.4 kB / 0.6249 GB, free: 19.44 MB / 446.1 MB Notification: Performance of SimCode: time 8.41e-07/0.6026, allocations: 0 / 0.6249 GB, free: 19.44 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04708/0.6497, allocations: 21.67 MB / 0.6461 GB, free: 13.84 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.452/10.1, allocations: 12.88 kB / 0.6461 GB, free: 13.84 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 & 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: 13.280262259067968]