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.001595/0.001595, allocations: 117.3 kB / 18.5 MB, free: 4.434 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.001742/0.001742, allocations: 218.6 kB / 21.47 MB, free: 1.473 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.466/1.466, allocations: 230.2 MB / 254.5 MB, free: 15.25 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.2327/0.2327, allocations: 46.91 MB / 357.4 MB, free: 10.47 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.002235/0.002235, allocations: 79.88 kB / 0.4912 GB, free: 8.332 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1353/0.1375, allocations: 65.99 MB / 0.5557 GB, free: 6.207 MB / 414.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.KinematicPTP): time 0.003709/0.1412, allocations: 2.42 MB / 0.5581 GB, free: 3.762 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.001725/0.143, allocations: 0.9786 MB / 0.559 GB, free: 2.777 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001518/0.1431, allocations: 11.88 kB / 0.559 GB, free: 2.766 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003765/0.1435, allocations: 127.2 kB / 0.5591 GB, free: 2.641 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002165/0.1437, allocations: 95.39 kB / 0.5592 GB, free: 2.547 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000639/0.1444, allocations: 289.5 kB / 0.5595 GB, free: 2.266 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.000786/0.1451, allocations: 0.7171 MB / 0.5602 GB, free: 1.547 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001586/0.1453, allocations: 53.05 kB / 0.5603 GB, free: 1.492 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003623/0.1457, allocations: 299 kB / 0.5605 GB, free: 1.199 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000418/0.1461, allocations: 342.7 kB / 0.5609 GB, free: 0.8633 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 9.306e-05/0.1462, allocations: 60 kB / 0.5609 GB, free: 0.8047 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.04e-05/0.1463, allocations: 60 kB / 0.561 GB, free: 0.7461 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002064/0.1465, allocations: 187.4 kB / 0.5612 GB, free: 0.5625 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000223/0.1467, allocations: 246.7 kB / 0.5614 GB, free: 328 kB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00063/0.1473, allocations: 0.5525 MB / 0.5619 GB, free: 15.77 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.058e-06/0.1473, allocations: 4 kB / 0.5619 GB, free: 15.76 MB / 430.1 MB Notification: Performance of FrontEnd: time 1.683e-06/0.1473, allocations: 0 / 0.5619 GB, free: 15.76 MB / 430.1 MB Notification: Performance of Transformations before backend: time 7.394e-06/0.1473, allocations: 0 / 0.5619 GB, free: 15.76 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.002299/0.1496, allocations: 0.9582 MB / 0.5629 GB, free: 14.75 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.635e-05/0.1497, allocations: 8.031 kB / 0.5629 GB, free: 14.75 MB / 430.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001074/0.1498, allocations: 86.72 kB / 0.563 GB, free: 14.65 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000111/0.1499, allocations: 64.61 kB / 0.563 GB, free: 14.59 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006348/0.1505, allocations: 387.3 kB / 0.5634 GB, free: 14.18 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003593/0.1509, allocations: 263.7 kB / 0.5636 GB, free: 13.88 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.844e-05/0.151, allocations: 44.38 kB / 0.5637 GB, free: 13.84 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002033/0.153, allocations: 0.8085 MB / 0.5645 GB, free: 12.99 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.916e-05/0.153, allocations: 4 kB / 0.5645 GB, free: 12.98 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.338e-05/0.1531, allocations: 16 kB / 0.5645 GB, free: 12.97 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.441e-05/0.1531, allocations: 15.94 kB / 0.5645 GB, free: 12.95 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003419/0.1565, allocations: 1.197 MB / 0.5657 GB, free: 11.76 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003227/0.1597, allocations: 2.031 MB / 0.5677 GB, free: 9.641 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00304/0.1628, allocations: 0.7699 MB / 0.5684 GB, free: 8.852 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001418/0.1642, allocations: 450.4 kB / 0.5688 GB, free: 8.406 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.497e-05/0.1643, allocations: 11.98 kB / 0.5689 GB, free: 8.395 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.995e-05/0.1643, allocations: 50.5 kB / 0.5689 GB, free: 8.336 MB / 430.1 MB Notification: Performance of pre-optimization done (n=64): time 6.422e-06/0.1643, allocations: 7.984 kB / 0.5689 GB, free: 8.328 MB / 430.1 MB Notification: Performance of matching and sorting (n=120): time 0.08771/0.2521, allocations: 15.77 MB / 0.5843 GB, free: 8.383 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.593e-05/0.2522, allocations: 98.17 kB / 0.5844 GB, free: 8.266 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005564/0.2527, allocations: 385.5 kB / 0.5848 GB, free: 7.879 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001727/0.2529, allocations: 49.64 kB / 0.5848 GB, free: 7.824 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001855/0.2531, allocations: 233.5 kB / 0.585 GB, free: 7.59 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004286/0.2535, allocations: 412.4 kB / 0.5854 GB, free: 7.184 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005414/0.254, allocations: 202.8 kB / 0.5856 GB, free: 6.977 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 0.000198/0.2542, allocations: 370.8 kB / 0.586 GB, free: 6.605 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003588/0.2578, allocations: 1.342 MB / 0.5873 GB, free: 5.266 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003687/0.2615, allocations: 1.501 MB / 0.5888 GB, free: 3.719 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006757/0.2683, allocations: 2.441 MB / 0.5911 GB, free: 1.234 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.699e-06/0.2683, allocations: 0 / 0.5911 GB, free: 1.234 MB / 446.1 MB Notification: Performance of matching and sorting (n=148) (initialization): time 0.2663/0.5345, allocations: 2.825 MB / 0.5939 GB, free: 37.47 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.828e-05/0.5346, allocations: 9.062 kB / 0.5939 GB, free: 37.47 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.49e-05/0.5346, allocations: 2.906 kB / 0.5939 GB, free: 37.47 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.68e-05/0.5346, allocations: 10.36 kB / 0.5939 GB, free: 37.47 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002784/0.5374, allocations: 411.6 kB / 0.5943 GB, free: 37.47 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.206e-05/0.5374, allocations: 13.69 kB / 0.5943 GB, free: 37.47 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002031/0.5395, allocations: 217.8 kB / 0.5945 GB, free: 37.47 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001677/0.5396, allocations: 39.61 kB / 0.5946 GB, free: 37.47 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.0005458/0.5402, allocations: 236.3 kB / 0.5948 GB, free: 37.35 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002336/0.5404, allocations: 62.8 kB / 0.5949 GB, free: 37.35 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002515/0.5407, allocations: 109.1 kB / 0.595 GB, free: 37.34 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.588e-05/0.5407, allocations: 18.66 kB / 0.595 GB, free: 37.34 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.442e-05/0.5407, allocations: 0.5156 kB / 0.595 GB, free: 37.34 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.528e-05/0.5407, allocations: 7.406 kB / 0.595 GB, free: 37.34 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01319/0.5539, allocations: 5.233 MB / 0.6001 GB, free: 35.43 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.443e-05/0.5539, allocations: 21.25 kB / 0.6001 GB, free: 35.43 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001644/0.5556, allocations: 358.2 kB / 0.6005 GB, free: 35.4 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.382e-05/0.5556, allocations: 31.38 kB / 0.6005 GB, free: 35.4 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001098/0.5557, allocations: 47.09 kB / 0.6005 GB, free: 35.38 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.361e-05/0.5558, allocations: 40.11 kB / 0.6006 GB, free: 35.38 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.171e-05/0.5558, allocations: 31.44 kB / 0.6006 GB, free: 35.37 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006805/0.5626, allocations: 3.093 MB / 0.6036 GB, free: 33.62 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005861/0.5632, allocations: 243.5 kB / 0.6039 GB, free: 33.45 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001521/0.5634, allocations: 52.19 kB / 0.6039 GB, free: 33.43 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001387/0.5648, allocations: 191.2 kB / 0.6041 GB, free: 33.41 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005196/0.5653, allocations: 216.6 kB / 0.6043 GB, free: 33.32 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000148/0.5654, allocations: 60.83 kB / 0.6044 GB, free: 33.31 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.000433/0.5659, allocations: 263.7 kB / 0.6046 GB, free: 33.18 MB / 446.1 MB Notification: Performance of sort global known variables: time 7.1e-08/0.5659, allocations: 0.6562 kB / 0.6046 GB, free: 33.18 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.001336/0.5672, allocations: 231.7 kB / 0.6048 GB, free: 33.15 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.007274/0.5745, allocations: 3.686 MB / 0.6084 GB, free: 30.85 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.006039/0.5805, allocations: 2.159 MB / 0.6105 GB, free: 30.14 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 2.085e-05/0.5805, allocations: 3.875 kB / 0.6105 GB, free: 30.14 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003283/0.5838, allocations: 1.047 MB / 0.6116 GB, free: 29.8 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001342/0.5852, allocations: 161 kB / 0.6117 GB, free: 29.75 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02341/0.6086, allocations: 12.38 MB / 0.6238 GB, free: 21.89 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003796/0.6089, allocations: 0.9315 MB / 0.6247 GB, free: 20.94 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.001037/0.61, allocations: 210.6 kB / 0.6249 GB, free: 20.75 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006237/0.6106, allocations: 211.4 kB / 0.6251 GB, free: 20.54 MB / 446.1 MB Notification: Performance of SimCode: time 1.493e-06/0.6106, allocations: 4 kB / 0.6251 GB, free: 20.54 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04604/0.6567, allocations: 21.69 MB / 0.6463 GB, free: 14.92 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.72/10.38, allocations: 6.109 kB / 0.6463 GB, free: 14.92 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_2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Blocks/KinematicPTP/KinematicPTP.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/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.438222354277968]