Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Rotational.TestBraking.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.001938/0.001938, allocations: 109.1 kB / 21.22 MB, free: 0.7539 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.002133/0.002133, allocations: 220.5 kB / 24.53 MB, free: 4.008 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.539/1.539, allocations: 230.5 MB / 258.2 MB, free: 8.008 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.2442/0.2442, allocations: 46.93 MB / 361.6 MB, free: 4.195 MB / 286.1 MB " [Timeout remaining time 179] 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.Rotational.TestBraking,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Rotational_TestBraking",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Rotational.TestBraking,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Rotational_TestBraking",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002316/0.002316, allocations: 83.86 kB / 0.497 GB, free: 7.789 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3886/0.3909, allocations: 66.07 MB / 0.5615 GB, free: 4.297 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.TestBraking): time 0.006885/0.3978, allocations: 3.062 MB / 0.5645 GB, free: 1.219 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.00308/0.4008, allocations: 1.087 MB / 0.5655 GB, free: 132 kB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000312/0.4011, allocations: 15.88 kB / 0.5655 GB, free: 116 kB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002921/0.4014, allocations: 67.38 kB / 0.5656 GB, free: 48 kB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004174/0.4019, allocations: 119 kB / 0.5657 GB, free: 15.93 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008248/0.4027, allocations: 167.6 kB / 0.5659 GB, free: 15.76 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.000855/0.4035, allocations: 461.7 kB / 0.5663 GB, free: 15.31 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002943/0.4038, allocations: 85.77 kB / 0.5664 GB, free: 15.22 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003362/0.4042, allocations: 171.4 kB / 0.5666 GB, free: 15.05 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003837/0.4045, allocations: 175.2 kB / 0.5667 GB, free: 14.88 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 8.792e-05/0.4046, allocations: 28 kB / 0.5668 GB, free: 14.86 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000177/0.4048, allocations: 51.98 kB / 0.5668 GB, free: 14.8 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 8.781e-05/0.4049, allocations: 75.75 kB / 0.5669 GB, free: 14.73 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002271/0.4051, allocations: 199 kB / 0.5671 GB, free: 14.54 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006204/0.4057, allocations: 442.2 kB / 0.5675 GB, free: 14.1 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.389e-06/0.4058, allocations: 0 / 0.5675 GB, free: 14.1 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.202e-06/0.4058, allocations: 0 / 0.5675 GB, free: 14.1 MB / 414.1 MB Notification: Performance of Transformations before backend: time 1.516e-05/0.4058, allocations: 0 / 0.5675 GB, free: 14.1 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: 88 * Number of variables: 88 Notification: Performance of Generate backend data structure: time 0.001144/0.4069, allocations: 0.5949 MB / 0.5681 GB, free: 13.48 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.047e-05/0.407, allocations: 11.97 kB / 0.5681 GB, free: 13.46 MB / 414.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 2.178e-05/0.407, allocations: 9.188 kB / 0.5681 GB, free: 13.45 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.01e-05/0.4071, allocations: 70.72 kB / 0.5682 GB, free: 13.38 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003261/0.4074, allocations: 76.62 kB / 0.5682 GB, free: 13.3 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004836/0.4079, allocations: 229.7 kB / 0.5685 GB, free: 13.05 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.007e-05/0.4079, allocations: 29.38 kB / 0.5685 GB, free: 13.02 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.466e-05/0.408, allocations: 43.89 kB / 0.5685 GB, free: 12.98 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006884/0.4087, allocations: 363.6 kB / 0.5689 GB, free: 12.6 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.005e-05/0.4087, allocations: 0 / 0.5689 GB, free: 12.6 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.499e-05/0.4088, allocations: 16 kB / 0.5689 GB, free: 12.58 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.336e-05/0.4088, allocations: 12 kB / 0.5689 GB, free: 12.57 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004996/0.4093, allocations: 223.7 kB / 0.5691 GB, free: 12.35 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002689/0.412, allocations: 1.522 MB / 0.5706 GB, free: 10.73 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006515/0.4126, allocations: 299.6 kB / 0.5709 GB, free: 10.38 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001815/0.4128, allocations: 93.12 kB / 0.571 GB, free: 10.27 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.959e-05/0.4128, allocations: 7.938 kB / 0.571 GB, free: 10.26 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.404e-05/0.4129, allocations: 42.56 kB / 0.571 GB, free: 10.21 MB / 414.1 MB Notification: Performance of pre-optimization done (n=26): time 1.844e-06/0.4129, allocations: 0 / 0.571 GB, free: 10.21 MB / 414.1 MB Notification: Performance of matching and sorting (n=26): time 0.0007701/0.4136, allocations: 274 kB / 0.5713 GB, free: 9.938 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001255/0.4138, allocations: 183.9 kB / 0.5715 GB, free: 9.715 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002861/0.414, allocations: 242 kB / 0.5717 GB, free: 9.473 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 3.042e-05/0.4141, allocations: 29.7 kB / 0.5717 GB, free: 9.438 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001877/0.4143, allocations: 220.2 kB / 0.5719 GB, free: 9.219 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000107/0.4144, allocations: 115 kB / 0.572 GB, free: 9.105 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000134/0.4145, allocations: 74.09 kB / 0.5721 GB, free: 9.023 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.00018/0.4147, allocations: 346.7 kB / 0.5724 GB, free: 8.676 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001972/0.4149, allocations: 76.84 kB / 0.5725 GB, free: 8.602 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003456/0.4152, allocations: 255 kB / 0.5728 GB, free: 8.281 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006107/0.4158, allocations: 357.1 kB / 0.5731 GB, free: 7.855 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.187e-05/0.4158, allocations: 4 kB / 0.5731 GB, free: 7.852 MB / 414.1 MB Notification: Performance of matching and sorting (n=52) (initialization): time 0.0007536/0.4166, allocations: 389.4 kB / 0.5735 GB, free: 7.465 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.479e-05/0.4166, allocations: 8 kB / 0.5735 GB, free: 7.457 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.186e-05/0.4166, allocations: 4 kB / 0.5735 GB, free: 7.453 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.303e-05/0.4167, allocations: 15.97 kB / 0.5735 GB, free: 7.438 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003933/0.4171, allocations: 103.9 kB / 0.5736 GB, free: 7.336 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.986e-05/0.4171, allocations: 11.94 kB / 0.5736 GB, free: 7.324 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002563/0.4173, allocations: 39.73 kB / 0.5736 GB, free: 7.285 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.956e-05/0.4174, allocations: 23.98 kB / 0.5737 GB, free: 7.262 MB / 414.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 25 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (52): * Single equations (assignments): 52 * 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.0002146/0.4176, allocations: 165.8 kB / 0.5738 GB, free: 7.09 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000156/0.4178, allocations: 27.81 kB / 0.5739 GB, free: 7.062 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002336/0.418, allocations: 91.39 kB / 0.5739 GB, free: 6.965 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.795e-06/0.418, allocations: 4 kB / 0.5739 GB, free: 6.961 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.234e-06/0.418, allocations: 3.938 kB / 0.5739 GB, free: 6.957 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.045e-05/0.418, allocations: 7.984 kB / 0.574 GB, free: 6.949 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007851/0.4188, allocations: 320.4 kB / 0.5743 GB, free: 6.594 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.268e-06/0.4188, allocations: 0 / 0.5743 GB, free: 6.594 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004235/0.4192, allocations: 79.95 kB / 0.5743 GB, free: 6.516 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.496e-05/0.4192, allocations: 8 kB / 0.5743 GB, free: 6.508 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.897e-05/0.4193, allocations: 8.312 kB / 0.5744 GB, free: 6.5 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.678e-06/0.4193, allocations: 15.86 kB / 0.5744 GB, free: 6.484 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.577e-06/0.4193, allocations: 4 kB / 0.5744 GB, free: 6.48 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009583/0.4203, allocations: 0.7664 MB / 0.5751 GB, free: 5.691 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.376e-05/0.4203, allocations: 31.72 kB / 0.5751 GB, free: 5.66 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.782e-05/0.4204, allocations: 8 kB / 0.5752 GB, free: 5.652 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003278/0.4207, allocations: 8 kB / 0.5752 GB, free: 5.645 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.612e-05/0.4208, allocations: 23.89 kB / 0.5752 GB, free: 5.621 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.819e-05/0.4208, allocations: 12 kB / 0.5752 GB, free: 5.609 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0001992/0.421, allocations: 173.2 kB / 0.5754 GB, free: 5.438 MB / 414.1 MB Notification: Performance of sort global known variables: time 1e-07/0.421, allocations: 0 / 0.5754 GB, free: 5.438 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0006665/0.4216, allocations: 95.78 kB / 0.5755 GB, free: 5.344 MB / 414.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 6 * Number of states: 13 (inertia1.w,linearSpeedDependentTorque.phi,inertia2.w,quadraticSpeedDependentTorque.phi,inertia3.w,constantTorque.phi,inertia4.w,signTorque.phi,inertia6.w,inverseSpeedDependentTorque.phi,eddyCurrentTorque.phi,inertia5.w,heatCapacitor.T) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (27): * Single equations (assignments): 27 * 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.001227/0.4229, allocations: 1.311 MB / 0.5767 GB, free: 4.008 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0005429/0.4234, allocations: 216.8 kB / 0.5769 GB, free: 3.797 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 3.316e-06/0.4234, allocations: 4.344 kB / 0.5769 GB, free: 3.793 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002187/0.4236, allocations: 99.77 kB / 0.577 GB, free: 3.695 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009745/0.4246, allocations: 79.3 kB / 0.5771 GB, free: 3.621 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006508/0.4311, allocations: 4.089 MB / 0.5811 GB, free: 15.28 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005352/0.4317, allocations: 0.7912 MB / 0.5819 GB, free: 14.46 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.0001679/0.4318, allocations: 30.97 kB / 0.5819 GB, free: 14.43 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001732/0.432, allocations: 115.4 kB / 0.582 GB, free: 14.32 MB / 430.1 MB Notification: Performance of SimCode: time 6.91e-07/0.432, allocations: 0 / 0.582 GB, free: 14.32 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03131/0.4633, allocations: 6.824 MB / 0.5887 GB, free: 7.648 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.71/12.17, allocations: 10.66 kB / 0.5887 GB, free: 7.641 MB / 430.1 MB " [Timeout remaining time 648] (rm -f ModelicaTest_trunk_ModelicaTest.Rotational.TestBraking.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Rotational.TestBraking.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Rotational.TestBraking.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Rotational.TestBraking.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_trunk_ModelicaTest.Rotational.TestBraking_res.mat --tempDir=temp_ModelicaTest_trunk_ModelicaTest_Rotational_TestBraking_fmu --startTime=0 --stopTime=2 --stepSize=0.000399521 --timeout=50 --tolerance=1e-06 ModelicaTest_trunk_ModelicaTest_Rotational_TestBraking.fmu > ModelicaTest_trunk_ModelicaTest.Rotational.TestBraking.pipe 2>&1) [Timeout 52.5] diffSimulationResults("ModelicaTest_trunk_ModelicaTest.Rotational.TestBraking_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/ModelicaTest/Rotational/TestBraking/TestBraking.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_trunk_ModelicaTest.Rotational.TestBraking.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.543243660009466]