Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.CompareBrakingTorque.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001561/0.001561, allocations: 107.1 kB / 20.44 MB, free: 1.344 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.002048/0.002048, allocations: 208.5 kB / 23.73 MB, free: 4.523 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.385/1.385, allocations: 230.6 MB / 257.5 MB, free: 7.797 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Mechanics.Rotational.Examples.CompareBrakingTorque,fileNamePrefix="Modelica_4_1_0_Modelica_Mechanics_Rotational_Examples_CompareBrakingTorque",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.Rotational.Examples.CompareBrakingTorque,fileNamePrefix="Modelica_4_1_0_Modelica_Mechanics_Rotational_Examples_CompareBrakingTorque",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001484/0.001484, allocations: 43.92 kB / 377.7 MB, free: 2.965 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2334/0.2348, allocations: 53.37 MB / 431.1 MB, free: 6.633 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.CompareBrakingTorque): time 0.003486/0.2383, allocations: 2.145 MB / 433.2 MB, free: 4.48 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001293/0.2396, allocations: 0.7206 MB / 433.9 MB, free: 3.754 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001039/0.2397, allocations: 7.938 kB / 433.9 MB, free: 3.746 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001278/0.2399, allocations: 43.58 kB / 434 MB, free: 3.703 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002441/0.2401, allocations: 87.33 kB / 434.1 MB, free: 3.617 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003148/0.2404, allocations: 111.7 kB / 434.2 MB, free: 3.508 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003249/0.2407, allocations: 290.7 kB / 434.5 MB, free: 3.223 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001465/0.2409, allocations: 56.48 kB / 434.5 MB, free: 3.164 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001307/0.241, allocations: 115.5 kB / 434.6 MB, free: 3.051 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001687/0.2412, allocations: 119.5 kB / 434.8 MB, free: 2.934 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 3.486e-05/0.2412, allocations: 20 kB / 434.8 MB, free: 2.914 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.513e-05/0.2413, allocations: 20 kB / 434.8 MB, free: 2.895 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 4.824e-05/0.2413, allocations: 47.78 kB / 434.8 MB, free: 2.848 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001178/0.2414, allocations: 115.4 kB / 434.9 MB, free: 2.734 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002921/0.2417, allocations: 260.6 kB / 435.2 MB, free: 2.48 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.22e-06/0.2417, allocations: 4 kB / 435.2 MB, free: 2.477 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.192e-06/0.2417, allocations: 0 / 435.2 MB, free: 2.477 MB / 334.1 MB Notification: Performance of Transformations before backend: time 5.801e-06/0.2417, allocations: 4 kB / 435.2 MB, free: 2.473 MB / 334.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 52 * Number of variables: 52 Notification: Performance of Generate backend data structure: time 0.0007658/0.2425, allocations: 453.5 kB / 435.7 MB, free: 2 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.183e-05/0.2425, allocations: 19.95 kB / 435.7 MB, free: 1.98 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.723e-05/0.2426, allocations: 54.73 kB / 435.7 MB, free: 1.918 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.4e-05/0.2426, allocations: 36.75 kB / 435.8 MB, free: 1.883 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003342/0.243, allocations: 194.8 kB / 436 MB, free: 1.668 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.509e-05/0.243, allocations: 20.81 kB / 436 MB, free: 1.648 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.663e-05/0.2431, allocations: 24.38 kB / 436 MB, free: 1.625 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004404/0.2435, allocations: 238.8 kB / 436.2 MB, free: 1.375 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.09e-05/0.2435, allocations: 7.953 kB / 436.2 MB, free: 1.367 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.08e-05/0.2435, allocations: 4 kB / 436.2 MB, free: 1.363 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.207e-06/0.2435, allocations: 8 kB / 436.3 MB, free: 1.355 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003355/0.2439, allocations: 143.8 kB / 436.4 MB, free: 1.215 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001368/0.2453, allocations: 0.9464 MB / 437.3 MB, free: 196 kB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000475/0.2457, allocations: 206.3 kB / 437.5 MB, free: 15.95 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001392/0.2459, allocations: 63.48 kB / 437.6 MB, free: 15.88 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.878e-05/0.2459, allocations: 4 kB / 437.6 MB, free: 15.88 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.011e-05/0.2459, allocations: 38.5 kB / 437.6 MB, free: 15.83 MB / 350.1 MB Notification: Performance of pre-optimization done (n=16): time 1.353e-06/0.2459, allocations: 0 / 437.6 MB, free: 15.83 MB / 350.1 MB Notification: Performance of matching and sorting (n=16): time 0.0005607/0.2465, allocations: 197.4 kB / 437.8 MB, free: 15.63 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.673e-05/0.2466, allocations: 136.5 kB / 438 MB, free: 15.46 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001959/0.2467, allocations: 207.6 kB / 438.2 MB, free: 15.25 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.343e-05/0.2468, allocations: 29.7 kB / 438.2 MB, free: 15.21 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000107/0.2469, allocations: 164.2 kB / 438.4 MB, free: 15.05 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.329e-05/0.2469, allocations: 71.42 kB / 438.4 MB, free: 14.98 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.48e-05/0.247, allocations: 49.7 kB / 438.5 MB, free: 14.92 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001404/0.2472, allocations: 326.8 kB / 438.8 MB, free: 14.59 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001528/0.2473, allocations: 59.95 kB / 438.9 MB, free: 14.54 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000211/0.2475, allocations: 157.7 kB / 439 MB, free: 14.33 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003749/0.2479, allocations: 241.5 kB / 439.2 MB, free: 14.05 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.478e-06/0.2479, allocations: 4 kB / 439.3 MB, free: 14.04 MB / 350.1 MB Notification: Performance of matching and sorting (n=32) (initialization): time 0.0004764/0.2484, allocations: 253.9 kB / 439.5 MB, free: 13.79 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.532e-05/0.2484, allocations: 11.88 kB / 439.5 MB, free: 13.78 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.46e-06/0.2484, allocations: 4.375 kB / 439.5 MB, free: 13.77 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.78e-05/0.2484, allocations: 12 kB / 439.5 MB, free: 13.76 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002655/0.2487, allocations: 71.89 kB / 439.6 MB, free: 13.69 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.226e-05/0.2487, allocations: 7.938 kB / 439.6 MB, free: 13.68 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001463/0.2488, allocations: 23.89 kB / 439.6 MB, free: 13.66 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.902e-05/0.2489, allocations: 8 kB / 439.6 MB, free: 13.65 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 16 * 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 (32): * Single equations (assignments): 32 * 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.0001213/0.249, allocations: 141.7 kB / 439.8 MB, free: 13.5 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.269e-05/0.2491, allocations: 27.78 kB / 439.8 MB, free: 13.48 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.922e-05/0.2491, allocations: 21.03 kB / 439.8 MB, free: 13.46 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.077e-06/0.2491, allocations: 3.984 kB / 439.8 MB, free: 13.45 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.68e-06/0.2491, allocations: 8 kB / 439.8 MB, free: 13.45 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.049e-06/0.2491, allocations: 3.984 kB / 439.8 MB, free: 13.44 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004202/0.2496, allocations: 220.7 kB / 440.1 MB, free: 13.18 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.503e-06/0.2496, allocations: 0 / 440.1 MB, free: 13.18 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002894/0.2499, allocations: 56.16 kB / 440.1 MB, free: 13.13 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.358e-06/0.2499, allocations: 3.938 kB / 440.1 MB, free: 13.12 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.124e-05/0.2499, allocations: 12 kB / 440.1 MB, free: 13.11 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.713e-06/0.2499, allocations: 0 / 440.1 MB, free: 13.11 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.082e-06/0.2499, allocations: 0 / 440.1 MB, free: 13.11 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005967/0.2505, allocations: 0.5287 MB / 440.7 MB, free: 12.57 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.806e-05/0.2505, allocations: 27.73 kB / 440.7 MB, free: 12.54 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.263e-05/0.2506, allocations: 11.92 kB / 440.7 MB, free: 12.53 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002199/0.2508, allocations: 4 kB / 440.7 MB, free: 12.53 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.343e-05/0.2508, allocations: 23.91 kB / 440.7 MB, free: 12.5 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.123e-05/0.2508, allocations: 4 kB / 440.7 MB, free: 12.5 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001213/0.251, allocations: 136.5 kB / 440.9 MB, free: 12.37 MB / 350.1 MB Notification: Performance of sort global known variables: time 8e-08/0.251, allocations: 0 / 440.9 MB, free: 12.37 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0004289/0.2514, allocations: 63.89 kB / 440.9 MB, free: 12.3 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 8 (inertia1.w,signTorque.phi,inertia2.w,linearSpeedDependentTorque.phi,inertia3.w,quadraticSpeedDependentTorque.phi,inertia4.w,inverseSpeedDependentTorque.phi) * 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 (16): * Single equations (assignments): 16 * 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.0009656/0.2524, allocations: 1.064 MB / 442 MB, free: 11.21 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0003646/0.2527, allocations: 151.8 kB / 442.1 MB, free: 11.07 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.753e-06/0.2527, allocations: 0 / 442.1 MB, free: 11.07 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001864/0.2529, allocations: 68.64 kB / 442.2 MB, free: 11 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006655/0.2536, allocations: 56.16 kB / 442.3 MB, free: 10.95 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003828/0.2574, allocations: 3.071 MB / 445.3 MB, free: 7.688 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000151/0.2576, allocations: 138.2 kB / 445.5 MB, free: 7.535 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 9.354e-05/0.2576, allocations: 18.3 kB / 445.5 MB, free: 7.516 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001116/0.2578, allocations: 71.41 kB / 445.5 MB, free: 7.449 MB / 350.1 MB Notification: Performance of SimCode: time 6.72e-07/0.2578, allocations: 0 / 445.5 MB, free: 7.449 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03397/0.2917, allocations: 5.488 MB / 451 MB, free: 2.121 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.55/10.84, allocations: 9.906 kB / 451 MB, free: 2.117 MB / 350.1 MB " [Timeout remaining time 649] (rm -f Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.CompareBrakingTorque.pipe ; mkfifo Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.CompareBrakingTorque.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.CompareBrakingTorque.pipe >> ../files/Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.CompareBrakingTorque.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.CompareBrakingTorque_res.mat --tempDir=temp_Modelica_4_1_0_Modelica_Mechanics_Rotational_Examples_CompareBrakingTorque_fmu --startTime=0 --stopTime=5 --stepSize=0.0001 --timeout=50 --tolerance=1e-06 Modelica_4_1_0_Modelica_Mechanics_Rotational_Examples_CompareBrakingTorque.fmu > Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.CompareBrakingTorque.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.CompareBrakingTorque_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Mechanics/Rotational/Examples/CompareBrakingTorque/CompareBrakingTorque.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.CompareBrakingTorque.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: 14.375539119006135]