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.001277/0.001277, 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 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.001483/0.001483, allocations: 199.3 kB / 20.74 MB, free: 2.32 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.409/1.409, allocations: 230.6 MB / 254.1 MB, free: 15.09 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.001505/0.001505, allocations: 47.92 kB / 373 MB, free: 10.23 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09517/0.09667, allocations: 53.33 MB / 426.3 MB, free: 4.805 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.CompareBrakingTorque): time 0.003694/0.1004, allocations: 2.297 MB / 428.6 MB, free: 2.496 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001561/0.1019, allocations: 0.7595 MB / 429.4 MB, free: 1.73 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002071/0.1021, allocations: 7.938 kB / 429.4 MB, free: 1.723 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001668/0.1023, allocations: 39.59 kB / 429.4 MB, free: 1.684 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003343/0.1026, allocations: 83.33 kB / 429.5 MB, free: 1.602 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003994/0.103, allocations: 119.7 kB / 429.6 MB, free: 1.484 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004382/0.1035, allocations: 302.6 kB / 429.9 MB, free: 1.188 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001636/0.1036, allocations: 44.38 kB / 429.9 MB, free: 1.141 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001858/0.1038, allocations: 107.6 kB / 430 MB, free: 1.035 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002138/0.104, allocations: 127.4 kB / 430.2 MB, free: 0.9102 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 4.335e-05/0.1041, allocations: 20 kB / 430.2 MB, free: 0.8906 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.957e-05/0.1041, allocations: 20 kB / 430.2 MB, free: 0.8711 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 5.985e-05/0.1042, allocations: 47.83 kB / 430.3 MB, free: 0.8242 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001276/0.1043, allocations: 127.3 kB / 430.4 MB, free: 0.6992 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003396/0.1047, allocations: 266.8 kB / 430.6 MB, free: 448 kB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.867e-06/0.1047, allocations: 0 / 430.6 MB, free: 448 kB / 350.1 MB Notification: Performance of FrontEnd: time 1.443e-06/0.1047, allocations: 0 / 430.6 MB, free: 448 kB / 350.1 MB Notification: Performance of Transformations before backend: time 9.999e-06/0.1047, allocations: 4 kB / 430.6 MB, free: 444 kB / 350.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.1759/0.2806, allocations: 0.5153 MB / 431.2 MB, free: 11.19 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.204e-05/0.2806, allocations: 7.875 kB / 431.2 MB, free: 11.19 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.275e-05/0.2807, allocations: 64.12 kB / 431.2 MB, free: 11.15 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.779e-05/0.2807, allocations: 29.81 kB / 431.3 MB, free: 11.14 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003291/0.2811, allocations: 258.7 kB / 431.5 MB, free: 10.93 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.283e-05/0.2811, allocations: 16.84 kB / 431.5 MB, free: 10.93 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.264e-05/0.2811, allocations: 21.73 kB / 431.5 MB, free: 10.93 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004105/0.2815, allocations: 235.9 kB / 431.8 MB, free: 10.86 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.153e-05/0.2816, allocations: 10.84 kB / 431.8 MB, free: 10.85 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.047e-05/0.2816, allocations: 7.312 kB / 431.8 MB, free: 10.85 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.897e-06/0.2816, allocations: 5.812 kB / 431.8 MB, free: 10.85 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000328/0.2819, allocations: 143.6 kB / 431.9 MB, free: 10.85 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001096/0.283, allocations: 1.057 MB / 433 MB, free: 10.14 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003906/0.2834, allocations: 205.8 kB / 433.2 MB, free: 10.04 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000116/0.2835, allocations: 62.78 kB / 433.3 MB, free: 10.01 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.056e-05/0.2835, allocations: 4.203 kB / 433.3 MB, free: 10.01 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.862e-05/0.2836, allocations: 43.69 kB / 433.3 MB, free: 9.973 MB / 350.1 MB Notification: Performance of pre-optimization done (n=16): time 1.243e-06/0.2836, allocations: 0 / 433.3 MB, free: 9.973 MB / 350.1 MB Notification: Performance of matching and sorting (n=16): time 0.0005167/0.2841, allocations: 196.5 kB / 433.5 MB, free: 9.93 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.459e-05/0.2841, allocations: 137.4 kB / 433.6 MB, free: 9.773 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001395/0.2842, allocations: 194.7 kB / 433.8 MB, free: 9.664 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.213e-05/0.2843, allocations: 31.92 kB / 433.9 MB, free: 9.633 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.023e-05/0.2843, allocations: 158.8 kB / 434 MB, free: 9.512 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.84e-05/0.2844, allocations: 70.94 kB / 434.1 MB, free: 9.469 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.433e-05/0.2844, allocations: 55.19 kB / 434.1 MB, free: 9.449 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 4.613e-05/0.2845, allocations: 327.7 kB / 434.5 MB, free: 9.137 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001364/0.2846, allocations: 61.2 kB / 434.5 MB, free: 9.133 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001677/0.2848, allocations: 168.7 kB / 434.7 MB, free: 9 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002814/0.2851, allocations: 234.1 kB / 434.9 MB, free: 8.875 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.326e-06/0.2851, allocations: 4.406 kB / 434.9 MB, free: 8.875 MB / 350.1 MB Notification: Performance of matching and sorting (n=32) (initialization): time 0.0004148/0.2855, allocations: 254.6 kB / 435.2 MB, free: 8.828 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.734e-05/0.2855, allocations: 7.531 kB / 435.2 MB, free: 8.828 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.345e-06/0.2855, allocations: 7.656 kB / 435.2 MB, free: 8.824 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.72e-05/0.2855, allocations: 9.719 kB / 435.2 MB, free: 8.82 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002497/0.2858, allocations: 69.89 kB / 435.3 MB, free: 8.816 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.477e-06/0.2858, allocations: 6.344 kB / 435.3 MB, free: 8.816 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001383/0.2859, allocations: 26.19 kB / 435.3 MB, free: 8.805 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.064e-05/0.2859, allocations: 20.19 kB / 435.3 MB, free: 8.805 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 8.661e-05/0.286, allocations: 136.3 kB / 435.4 MB, free: 8.684 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.611e-05/0.2861, allocations: 16.84 kB / 435.5 MB, free: 8.676 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.545e-05/0.2862, allocations: 32.72 kB / 435.5 MB, free: 8.664 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.627e-06/0.2862, allocations: 10.12 kB / 435.5 MB, free: 8.656 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.899e-06/0.2862, allocations: 2.906 kB / 435.5 MB, free: 8.656 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.226e-06/0.2862, allocations: 1.062 kB / 435.5 MB, free: 8.656 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003713/0.2865, allocations: 275 kB / 435.8 MB, free: 8.465 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.104e-06/0.2865, allocations: 1.062 kB / 435.8 MB, free: 8.465 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002638/0.2868, allocations: 47.28 kB / 435.8 MB, free: 8.465 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.148e-06/0.2868, allocations: 2.312 kB / 435.8 MB, free: 8.465 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.772e-05/0.2868, allocations: 10.59 kB / 435.8 MB, free: 8.461 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.865e-06/0.2868, allocations: 2.219 kB / 435.8 MB, free: 8.461 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.994e-06/0.2868, allocations: 3.453 kB / 435.8 MB, free: 8.461 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004569/0.2873, allocations: 0.5228 MB / 436.4 MB, free: 8.047 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.456e-05/0.2873, allocations: 97.55 kB / 436.5 MB, free: 7.941 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.761e-05/0.2873, allocations: 7.594 kB / 436.5 MB, free: 7.938 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002075/0.2876, allocations: 6.312 kB / 436.5 MB, free: 7.938 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.049e-05/0.2876, allocations: 18.42 kB / 436.5 MB, free: 7.93 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.017e-05/0.2876, allocations: 3.281 kB / 436.5 MB, free: 7.93 MB / 350.1 MB Notification: Performance of sorting global known variables: time 8.921e-05/0.2877, allocations: 146.5 kB / 436.6 MB, free: 7.832 MB / 350.1 MB Notification: Performance of sort global known variables: time 7e-08/0.2877, allocations: 0 / 436.6 MB, free: 7.832 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0004344/0.2881, allocations: 66.34 kB / 436.7 MB, free: 7.816 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.0005984/0.2887, allocations: 1.071 MB / 437.8 MB, free: 6.859 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0003441/0.2891, allocations: 152 kB / 437.9 MB, free: 6.809 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.974e-06/0.2891, allocations: 0 / 437.9 MB, free: 6.809 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000134/0.2892, allocations: 62.86 kB / 438 MB, free: 6.793 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006427/0.2899, allocations: 56.94 kB / 438 MB, free: 6.777 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003012/0.2929, allocations: 3.066 MB / 441.1 MB, free: 4.375 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001739/0.293, allocations: 0.7509 MB / 441.8 MB, free: 3.672 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 9.973e-05/0.2931, allocations: 22.69 kB / 441.9 MB, free: 3.672 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.29e-05/0.2932, allocations: 71.09 kB / 441.9 MB, free: 3.625 MB / 350.1 MB Notification: Performance of SimCode: time 6.21e-07/0.2932, allocations: 0 / 441.9 MB, free: 3.625 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04744/0.3407, allocations: 4.718 MB / 446.7 MB, free: 2.98 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.046/8.386, allocations: 7.906 kB / 446.7 MB, free: 2.977 MB / 350.1 MB " [Timeout remaining time 652] (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: 11.91185288480483]