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.00174/0.00174, allocations: 113.1 kB / 20.43 MB, free: 1.457 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.00208/0.00208, allocations: 213.2 kB / 23.74 MB, free: 4.672 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.411/1.411, allocations: 230.6 MB / 257.5 MB, free: 8.012 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.001712/0.001712, allocations: 47.92 kB / 377.8 MB, free: 3.121 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2166/0.2183, allocations: 53.37 MB / 431.1 MB, free: 6.836 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.CompareBrakingTorque): time 0.003843/0.2221, allocations: 2.289 MB / 433.4 MB, free: 4.539 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.00149/0.2236, allocations: 0.7751 MB / 434.2 MB, free: 3.758 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00013/0.2238, allocations: 7.938 kB / 434.2 MB, free: 3.75 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001418/0.2239, allocations: 39.53 kB / 434.2 MB, free: 3.711 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002788/0.2242, allocations: 95.31 kB / 434.3 MB, free: 3.617 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003204/0.2245, allocations: 107.8 kB / 434.4 MB, free: 3.512 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003578/0.2249, allocations: 294.6 kB / 434.7 MB, free: 3.223 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001425/0.225, allocations: 48.56 kB / 434.8 MB, free: 3.172 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001331/0.2251, allocations: 107.6 kB / 434.9 MB, free: 3.066 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001785/0.2253, allocations: 123.4 kB / 435 MB, free: 2.945 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 3.618e-05/0.2254, allocations: 20 kB / 435 MB, free: 2.926 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.631e-05/0.2254, allocations: 20 kB / 435 MB, free: 2.906 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 4.997e-05/0.2254, allocations: 51.78 kB / 435.1 MB, free: 2.855 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001289/0.2256, allocations: 135.3 kB / 435.2 MB, free: 2.723 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003015/0.2259, allocations: 263.3 kB / 435.5 MB, free: 2.469 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.488e-06/0.2259, allocations: 0 / 435.5 MB, free: 2.469 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.203e-06/0.2259, allocations: 0 / 435.5 MB, free: 2.469 MB / 334.1 MB Notification: Performance of Transformations before backend: time 5.972e-06/0.2259, allocations: 0 / 435.5 MB, free: 2.469 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.0007803/0.2267, allocations: 453.5 kB / 435.9 MB, free: 1.996 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.27e-05/0.2267, allocations: 12.03 kB / 435.9 MB, free: 1.984 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.801e-05/0.2268, allocations: 54.73 kB / 436 MB, free: 1.922 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.558e-05/0.2268, allocations: 36.75 kB / 436 MB, free: 1.887 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003736/0.2272, allocations: 202.8 kB / 436.2 MB, free: 1.664 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.299e-05/0.2272, allocations: 12.81 kB / 436.2 MB, free: 1.652 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.744e-05/0.2273, allocations: 28.36 kB / 436.3 MB, free: 1.625 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004496/0.2277, allocations: 234.8 kB / 436.5 MB, free: 1.379 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.387e-05/0.2277, allocations: 11.89 kB / 436.5 MB, free: 1.367 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.095e-05/0.2278, allocations: 12 kB / 436.5 MB, free: 1.355 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.772e-05/0.2278, allocations: 4 kB / 436.5 MB, free: 1.352 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003355/0.2281, allocations: 135.9 kB / 436.7 MB, free: 1.219 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001402/0.2295, allocations: 0.9931 MB / 437.7 MB, free: 152 kB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004541/0.23, allocations: 202.4 kB / 437.8 MB, free: 15.91 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001397/0.2301, allocations: 71.42 kB / 437.9 MB, free: 15.83 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.093e-05/0.2301, allocations: 4 kB / 437.9 MB, free: 15.83 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.302e-05/0.2302, allocations: 34.5 kB / 438 MB, free: 15.79 MB / 350.1 MB Notification: Performance of pre-optimization done (n=16): time 1.473e-06/0.2302, allocations: 4 kB / 438 MB, free: 15.78 MB / 350.1 MB Notification: Performance of matching and sorting (n=16): time 0.0005481/0.2307, allocations: 193.4 kB / 438.1 MB, free: 15.59 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.444e-05/0.2308, allocations: 136.5 kB / 438.3 MB, free: 15.42 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001913/0.231, allocations: 195.7 kB / 438.5 MB, free: 15.22 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.092e-05/0.231, allocations: 29.7 kB / 438.5 MB, free: 15.18 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001121/0.2311, allocations: 164.2 kB / 438.7 MB, free: 15.02 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.565e-05/0.2312, allocations: 67.44 kB / 438.7 MB, free: 14.95 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.475e-05/0.2313, allocations: 57.66 kB / 438.8 MB, free: 14.89 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001505/0.2314, allocations: 330.8 kB / 439.1 MB, free: 14.55 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001432/0.2316, allocations: 63.83 kB / 439.2 MB, free: 14.49 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000218/0.2318, allocations: 161.7 kB / 439.3 MB, free: 14.29 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003815/0.2322, allocations: 233.5 kB / 439.6 MB, free: 14.01 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.615e-06/0.2322, allocations: 0 / 439.6 MB, free: 14.01 MB / 350.1 MB Notification: Performance of matching and sorting (n=32) (initialization): time 0.0004657/0.2326, allocations: 257.5 kB / 439.8 MB, free: 13.75 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.874e-05/0.2326, allocations: 18.66 kB / 439.8 MB, free: 13.73 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.614e-06/0.2326, allocations: 4 kB / 439.8 MB, free: 13.73 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.825e-05/0.2327, allocations: 4 kB / 439.8 MB, free: 13.73 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002607/0.2329, allocations: 63.91 kB / 439.9 MB, free: 13.66 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.167e-06/0.2329, allocations: 4 kB / 439.9 MB, free: 13.66 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001575/0.2331, allocations: 35.77 kB / 439.9 MB, free: 13.62 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.016e-05/0.2331, allocations: 15.94 kB / 440 MB, free: 13.61 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.000127/0.2332, allocations: 137.8 kB / 440.1 MB, free: 13.46 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.622e-05/0.2333, allocations: 24.59 kB / 440.1 MB, free: 13.44 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.95e-05/0.2334, allocations: 25.02 kB / 440.1 MB, free: 13.42 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.056e-06/0.2334, allocations: 0 / 440.1 MB, free: 13.42 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.327e-05/0.2334, allocations: 4.25 kB / 440.1 MB, free: 13.41 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.607e-06/0.2334, allocations: 0 / 440.1 MB, free: 13.41 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000451/0.2339, allocations: 248.5 kB / 440.4 MB, free: 13.13 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.417e-06/0.2339, allocations: 4 kB / 440.4 MB, free: 13.12 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002692/0.2341, allocations: 51.95 kB / 440.4 MB, free: 13.07 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.823e-06/0.2341, allocations: 7.922 kB / 440.4 MB, free: 13.07 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.755e-05/0.2342, allocations: 8 kB / 440.5 MB, free: 13.06 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.586e-06/0.2342, allocations: 7.938 kB / 440.5 MB, free: 13.05 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.005e-06/0.2342, allocations: 4 kB / 440.5 MB, free: 13.05 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006024/0.2348, allocations: 0.5222 MB / 441 MB, free: 12.51 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.329e-05/0.2348, allocations: 15.97 kB / 441 MB, free: 12.49 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.045e-05/0.2348, allocations: 11.94 kB / 441 MB, free: 12.48 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002243/0.235, allocations: 8 kB / 441 MB, free: 12.47 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.478e-05/0.2351, allocations: 15.91 kB / 441 MB, free: 12.46 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.17e-05/0.2351, allocations: 8 kB / 441 MB, free: 12.45 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001225/0.2352, allocations: 140.5 kB / 441.2 MB, free: 12.31 MB / 350.1 MB Notification: Performance of sort global known variables: time 8e-08/0.2352, allocations: 0 / 441.2 MB, free: 12.31 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0004386/0.2357, allocations: 59.84 kB / 441.2 MB, free: 12.25 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.0008983/0.2366, allocations: 1.066 MB / 442.3 MB, free: 11.16 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.000364/0.2369, allocations: 155.7 kB / 442.5 MB, free: 11.01 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.225e-06/0.2369, allocations: 0 / 442.5 MB, free: 11.01 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001407/0.2371, allocations: 59.91 kB / 442.5 MB, free: 10.95 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000663/0.2377, allocations: 65.84 kB / 442.6 MB, free: 10.89 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003882/0.2416, allocations: 3.068 MB / 445.6 MB, free: 7.633 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003795/0.242, allocations: 0.748 MB / 446.4 MB, free: 6.859 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 9.28e-05/0.2421, allocations: 22.28 kB / 446.4 MB, free: 6.84 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001084/0.2422, allocations: 71.41 kB / 446.5 MB, free: 6.773 MB / 350.1 MB Notification: Performance of SimCode: time 4.6e-07/0.2422, allocations: 0 / 446.5 MB, free: 6.773 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04096/0.2832, allocations: 4.96 MB / 451.4 MB, free: 1.965 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.12/11.41, allocations: 18.2 kB / 451.5 MB, free: 1.953 MB / 350.1 MB " [Timeout remaining time 648] (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: 15.072523679817095]