Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Blocks.KinematicPTP.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Blocks.KinematicPTP,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Blocks_KinematicPTP",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Blocks.KinematicPTP,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Blocks_KinematicPTP",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001395/0.001396, allocations: 107 kB / 17.33 MB, free: 6.023 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001708/0.001708, allocations: 193.3 kB / 18.25 MB, free: 5.117 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.419/1.419, allocations: 222.9 MB / 241.9 MB, free: 15.43 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2048/0.2048, allocations: 44.17 MB / 336.2 MB, free: 2.949 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00229/0.00229, allocations: 64.14 kB / 408 MB, free: 27.51 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1528/0.1551, allocations: 60.84 MB / 468.8 MB, free: 14.63 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.KinematicPTP): time 0.003355/0.1585, allocations: 2.422 MB / 471.3 MB, free: 12.19 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001471/0.16, allocations: 0.9359 MB / 472.2 MB, free: 11.25 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001402/0.1602, allocations: 11.88 kB / 472.2 MB, free: 11.23 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003524/0.1606, allocations: 95.52 kB / 472.3 MB, free: 11.14 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002093/0.1608, allocations: 83.58 kB / 472.4 MB, free: 11.06 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005352/0.1613, allocations: 263.6 kB / 472.6 MB, free: 10.8 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006262/0.1619, allocations: 0.7173 MB / 473.3 MB, free: 10.08 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001662/0.1621, allocations: 69.31 kB / 473.4 MB, free: 10.01 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002808/0.1624, allocations: 307 kB / 473.7 MB, free: 9.711 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003446/0.1628, allocations: 342.6 kB / 474 MB, free: 9.375 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 7.849e-05/0.1629, allocations: 60 kB / 474.1 MB, free: 9.316 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.721e-05/0.1629, allocations: 67.94 kB / 474.2 MB, free: 9.25 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001737/0.1631, allocations: 187.6 kB / 474.4 MB, free: 9.066 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002071/0.1633, allocations: 254.7 kB / 474.6 MB, free: 8.816 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004603/0.1638, allocations: 0.5373 MB / 475.1 MB, free: 8.277 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.494e-06/0.1638, allocations: 4 kB / 475.1 MB, free: 8.273 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.653e-06/0.1638, allocations: 0 / 475.1 MB, free: 8.273 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.129e-05/0.1638, allocations: 4 kB / 475.2 MB, free: 8.27 MB / 350.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.002056/0.1659, allocations: 0.947 MB / 476.1 MB, free: 7.273 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.274e-05/0.166, allocations: 8.031 kB / 476.1 MB, free: 7.266 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.611e-05/0.1661, allocations: 94.64 kB / 476.2 MB, free: 7.164 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001079/0.1662, allocations: 60.38 kB / 476.3 MB, free: 7.105 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004445/0.1666, allocations: 371.2 kB / 476.6 MB, free: 6.703 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000325/0.167, allocations: 259.7 kB / 476.9 MB, free: 6.414 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.656e-05/0.1671, allocations: 48.28 kB / 476.9 MB, free: 6.367 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001842/0.1689, allocations: 0.8163 MB / 477.7 MB, free: 5.508 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.886e-05/0.1689, allocations: 0 / 477.7 MB, free: 5.508 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.495e-05/0.169, allocations: 16 kB / 477.8 MB, free: 5.492 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.317e-05/0.169, allocations: 12 kB / 477.8 MB, free: 5.48 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003226/0.1722, allocations: 1.2 MB / 479 MB, free: 4.281 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002601/0.1749, allocations: 2.046 MB / 481 MB, free: 2.148 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002761/0.1776, allocations: 0.8251 MB / 481.8 MB, free: 1.305 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001309/0.1789, allocations: 497.3 kB / 482.3 MB, free: 0.8125 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.171e-05/0.179, allocations: 9.062 kB / 482.3 MB, free: 0.8047 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.178e-05/0.1791, allocations: 38.5 kB / 482.4 MB, free: 0.7578 MB / 350.1 MB Notification: Performance of pre-optimization done (n=64): time 2.044e-06/0.1791, allocations: 4 kB / 482.4 MB, free: 0.7539 MB / 350.1 MB Notification: Performance of matching and sorting (n=120): time 0.1018/0.2809, allocations: 15.76 MB / 498.1 MB, free: 0.8203 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.693e-05/0.281, allocations: 94.17 kB / 498.2 MB, free: 0.7109 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004768/0.2815, allocations: 385.4 kB / 498.6 MB, free: 336 kB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001589/0.2817, allocations: 45.7 kB / 498.6 MB, free: 284 kB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001623/0.2818, allocations: 225.1 kB / 498.9 MB, free: 52 kB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004287/0.2823, allocations: 394.3 kB / 499.2 MB, free: 15.66 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000587/0.2829, allocations: 198.8 kB / 499.4 MB, free: 15.46 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001575/0.283, allocations: 378.8 kB / 499.8 MB, free: 15.08 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003345/0.2864, allocations: 1.342 MB / 0.4894 GB, free: 13.73 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003467/0.2899, allocations: 1.493 MB / 0.4909 GB, free: 12.2 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006118/0.296, allocations: 2.441 MB / 0.4933 GB, free: 9.715 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.622e-06/0.296, allocations: 4 kB / 0.4933 GB, free: 9.711 MB / 382.1 MB Notification: Performance of matching and sorting (n=148) (initialization): time 0.00707/0.3031, allocations: 2.83 MB / 0.496 GB, free: 6.871 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.981e-05/0.3031, allocations: 8 kB / 0.496 GB, free: 6.863 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.252e-05/0.3032, allocations: 0 / 0.496 GB, free: 6.863 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.362e-05/0.3032, allocations: 12 kB / 0.496 GB, free: 6.852 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00263/0.3058, allocations: 403.5 kB / 0.4964 GB, free: 6.457 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.178e-05/0.3059, allocations: 19.86 kB / 0.4964 GB, free: 6.438 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001915/0.3078, allocations: 219.7 kB / 0.4967 GB, free: 6.223 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001771/0.308, allocations: 43.98 kB / 0.4967 GB, free: 6.18 MB / 382.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.0005116/0.3085, allocations: 229.5 kB / 0.4969 GB, free: 5.945 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002523/0.3088, allocations: 59.25 kB / 0.497 GB, free: 5.887 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002618/0.309, allocations: 112.7 kB / 0.4971 GB, free: 5.773 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.119e-05/0.309, allocations: 16 kB / 0.4971 GB, free: 5.758 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.572e-05/0.3091, allocations: 3.938 kB / 0.4971 GB, free: 5.754 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.189e-05/0.3091, allocations: 3.984 kB / 0.4971 GB, free: 5.75 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01087/0.32, allocations: 5.227 MB / 0.5022 GB, free: 184 kB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.985e-05/0.32, allocations: 24 kB / 0.5022 GB, free: 160 kB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.1669/0.4869, allocations: 351.7 kB / 0.5026 GB, free: 50.63 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.103e-05/0.487, allocations: 27.81 kB / 0.5026 GB, free: 50.63 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002639/0.4873, allocations: 48.98 kB / 0.5026 GB, free: 50.63 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.012e-05/0.4874, allocations: 38.08 kB / 0.5027 GB, free: 50.63 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.784e-05/0.4874, allocations: 38.86 kB / 0.5027 GB, free: 50.63 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0084/0.4958, allocations: 3.095 MB / 0.5057 GB, free: 49.62 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004699/0.4963, allocations: 240 kB / 0.506 GB, free: 49.53 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001807/0.4965, allocations: 49.53 kB / 0.506 GB, free: 49.53 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001342/0.4979, allocations: 193.5 kB / 0.5062 GB, free: 49.53 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004981/0.4984, allocations: 215.6 kB / 0.5064 GB, free: 49.52 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001336/0.4985, allocations: 57.44 kB / 0.5065 GB, free: 49.52 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0003435/0.4989, allocations: 265 kB / 0.5067 GB, free: 49.43 MB / 382.1 MB Notification: Performance of sort global known variables: time 8.72e-07/0.4989, allocations: 0 / 0.5067 GB, free: 49.43 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.001178/0.5001, allocations: 231.4 kB / 0.5069 GB, free: 49.43 MB / 382.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.006972/0.507, allocations: 3.679 MB / 0.5105 GB, free: 47.18 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.005949/0.513, allocations: 2.407 MB / 0.5129 GB, free: 46.32 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.018e-05/0.513, allocations: 7.562 kB / 0.5129 GB, free: 46.32 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003259/0.5163, allocations: 1.064 MB / 0.5139 GB, free: 45.98 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001289/0.5176, allocations: 150.5 kB / 0.5141 GB, free: 45.93 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02372/0.5413, allocations: 12.7 MB / 0.5265 GB, free: 38.38 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005316/0.5419, allocations: 0.9218 MB / 0.5274 GB, free: 37.59 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.001221/0.5431, allocations: 193.6 kB / 0.5275 GB, free: 37.47 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006819/0.5438, allocations: 226.4 kB / 0.5278 GB, free: 37.29 MB / 382.1 MB Notification: Performance of SimCode: time 8.42e-07/0.5438, allocations: 0 / 0.5278 GB, free: 37.29 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 2.562/3.105, allocations: 20.93 MB / 0.5482 GB, free: 16.52 MB / 382.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001757/3.106, allocations: 197.1 kB / 0.5484 GB, free: 16.26 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.97/6.076, allocations: 3.938 kB / 0.5484 GB, free: 16.25 MB / 382.1 MB (rm -f ModelicaTest_4.0.0_ModelicaTest.Blocks.KinematicPTP.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Blocks.KinematicPTP.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Blocks.KinematicPTP.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Blocks.KinematicPTP.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_4.0.0_ModelicaTest.Blocks.KinematicPTP_res.mat --tempDir=temp_ModelicaTest_4_0_0_ModelicaTest_Blocks_KinematicPTP_fmu --startTime=0 --stopTime=3 --timeout=50 --tolerance=1e-06 ModelicaTest_4_0_0_ModelicaTest_Blocks_KinematicPTP.fmu > ModelicaTest_4.0.0_ModelicaTest.Blocks.KinematicPTP.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.Blocks.KinematicPTP_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Blocks/KinematicPTP/KinematicPTP.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.0_ModelicaTest.Blocks.KinematicPTP.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches