Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Mechanics.Rotational.Examples.CompareBrakingTorque.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.001657/0.001657, allocations: 112.5 kB / 20.43 MB, free: 1.453 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.001961/0.001961, allocations: 212.3 kB / 23.74 MB, free: 4.66 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.384/1.384, allocations: 230.5 MB / 257.4 MB, free: 8.02 MB / 206.1 MB " [Timeout remaining time 178] 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(Modelica.Mechanics.Rotational.Examples.CompareBrakingTorque,fileNamePrefix="Modelica_trunk_Modelica_Mechanics_Rotational_Examples_CompareBrakingTorque",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.Rotational.Examples.CompareBrakingTorque,fileNamePrefix="Modelica_trunk_Modelica_Mechanics_Rotational_Examples_CompareBrakingTorque",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001959/0.001959, allocations: 71.89 kB / 377.8 MB, free: 3.031 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2337/0.2357, allocations: 53.41 MB / 431.2 MB, free: 6.699 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.CompareBrakingTorque): time 0.003459/0.2392, allocations: 2.289 MB / 433.5 MB, free: 4.402 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001441/0.2406, allocations: 0.779 MB / 434.2 MB, free: 3.617 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001194/0.2407, allocations: 7.938 kB / 434.3 MB, free: 3.609 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001413/0.2409, allocations: 39.59 kB / 434.3 MB, free: 3.57 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002592/0.2411, allocations: 91.31 kB / 434.4 MB, free: 3.48 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002951/0.2414, allocations: 99.81 kB / 434.5 MB, free: 3.383 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003333/0.2417, allocations: 298.6 kB / 434.8 MB, free: 3.09 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001359/0.2419, allocations: 48.58 kB / 434.8 MB, free: 3.039 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001345/0.242, allocations: 111.6 kB / 434.9 MB, free: 2.93 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001773/0.2422, allocations: 131.4 kB / 435.1 MB, free: 2.801 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 3.48e-05/0.2422, allocations: 20 kB / 435.1 MB, free: 2.781 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.513e-05/0.2423, allocations: 20 kB / 435.1 MB, free: 2.762 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 4.458e-05/0.2423, allocations: 43.78 kB / 435.1 MB, free: 2.719 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001236/0.2424, allocations: 135.3 kB / 435.3 MB, free: 2.586 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003057/0.2427, allocations: 259.3 kB / 435.5 MB, free: 2.336 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.138e-06/0.2427, allocations: 0 / 435.5 MB, free: 2.336 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.192e-06/0.2427, allocations: 0 / 435.5 MB, free: 2.336 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.231e-05/0.2428, allocations: 3.984 kB / 435.5 MB, free: 2.332 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.000751/0.2435, allocations: 465.5 kB / 436 MB, free: 1.848 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.699e-05/0.2435, allocations: 8.031 kB / 436 MB, free: 1.84 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.83e-05/0.2436, allocations: 54.73 kB / 436 MB, free: 1.777 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.112e-05/0.2437, allocations: 28.75 kB / 436.1 MB, free: 1.75 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003514/0.244, allocations: 198.8 kB / 436.3 MB, free: 1.531 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.742e-05/0.244, allocations: 20.81 kB / 436.3 MB, free: 1.512 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.721e-05/0.2441, allocations: 28.36 kB / 436.3 MB, free: 1.484 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004366/0.2445, allocations: 230.8 kB / 436.5 MB, free: 1.242 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.383e-05/0.2445, allocations: 15.89 kB / 436.6 MB, free: 1.227 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.061e-05/0.2446, allocations: 8 kB / 436.6 MB, free: 1.219 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.245e-05/0.2446, allocations: 8 kB / 436.6 MB, free: 1.211 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003292/0.2449, allocations: 139.8 kB / 436.7 MB, free: 1.074 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001436/0.2463, allocations: 0.9815 MB / 437.7 MB, free: 16 kB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004646/0.2468, allocations: 206.4 kB / 437.9 MB, free: 15.78 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001318/0.2469, allocations: 63.41 kB / 438 MB, free: 15.7 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.335e-05/0.247, allocations: 11.98 kB / 438 MB, free: 15.69 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.297e-05/0.247, allocations: 38.5 kB / 438 MB, free: 15.64 MB / 350.1 MB Notification: Performance of pre-optimization done (n=16): time 1.463e-06/0.247, allocations: 0 / 438 MB, free: 15.64 MB / 350.1 MB Notification: Performance of matching and sorting (n=16): time 0.0005412/0.2475, allocations: 193.4 kB / 438.2 MB, free: 15.45 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.294e-05/0.2476, allocations: 132.5 kB / 438.3 MB, free: 15.29 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001988/0.2478, allocations: 199.1 kB / 438.5 MB, free: 15.08 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.911e-05/0.2478, allocations: 25.7 kB / 438.5 MB, free: 15.05 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001262/0.248, allocations: 176.2 kB / 438.7 MB, free: 14.87 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.517e-05/0.248, allocations: 63.44 kB / 438.8 MB, free: 14.81 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.247e-05/0.2481, allocations: 49.66 kB / 438.8 MB, free: 14.75 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.000151/0.2482, allocations: 338.8 kB / 439.2 MB, free: 14.41 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001466/0.2484, allocations: 59.89 kB / 439.2 MB, free: 14.36 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002088/0.2486, allocations: 157.7 kB / 439.4 MB, free: 14.15 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003661/0.249, allocations: 229.5 kB / 439.6 MB, free: 13.88 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.61e-06/0.249, allocations: 4 kB / 439.6 MB, free: 13.88 MB / 350.1 MB Notification: Performance of matching and sorting (n=32) (initialization): time 0.0004567/0.2494, allocations: 257.2 kB / 439.8 MB, free: 13.62 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.005e-05/0.2494, allocations: 14.44 kB / 439.9 MB, free: 13.61 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.092e-05/0.2495, allocations: 7.984 kB / 439.9 MB, free: 13.6 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.762e-05/0.2495, allocations: 4 kB / 439.9 MB, free: 13.59 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002587/0.2497, allocations: 68.28 kB / 439.9 MB, free: 13.53 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.08e-05/0.2497, allocations: 12 kB / 439.9 MB, free: 13.52 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001501/0.2499, allocations: 35.66 kB / 440 MB, free: 13.48 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.222e-05/0.2499, allocations: 15.98 kB / 440 MB, free: 13.46 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.0001361/0.25, allocations: 133.8 kB / 440.1 MB, free: 13.32 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.089e-05/0.2501, allocations: 23.84 kB / 440.2 MB, free: 13.3 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.702e-05/0.2502, allocations: 21.02 kB / 440.2 MB, free: 13.28 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.09e-06/0.2502, allocations: 4 kB / 440.2 MB, free: 13.28 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.43e-06/0.2502, allocations: 0 / 440.2 MB, free: 13.28 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.096e-06/0.2502, allocations: 0 / 440.2 MB, free: 13.28 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004694/0.2507, allocations: 252.5 kB / 440.4 MB, free: 12.99 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.623e-06/0.2507, allocations: 0 / 440.4 MB, free: 12.99 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002681/0.2509, allocations: 47.97 kB / 440.5 MB, free: 12.94 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.099e-06/0.2509, allocations: 3.938 kB / 440.5 MB, free: 12.94 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.055e-05/0.251, allocations: 11.98 kB / 440.5 MB, free: 12.93 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.521e-06/0.251, allocations: 7.938 kB / 440.5 MB, free: 12.92 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.583e-06/0.251, allocations: 256 / 440.5 MB, free: 12.92 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000608/0.2516, allocations: 0.5204 MB / 441 MB, free: 12.38 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.027e-05/0.2516, allocations: 19.95 kB / 441 MB, free: 12.36 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.247e-05/0.2517, allocations: 12 kB / 441 MB, free: 12.35 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002091/0.2519, allocations: 4 kB / 441.1 MB, free: 12.35 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.611e-05/0.2519, allocations: 23.89 kB / 441.1 MB, free: 12.32 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.033e-05/0.2519, allocations: 8 kB / 441.1 MB, free: 12.32 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001224/0.2521, allocations: 140.5 kB / 441.2 MB, free: 12.18 MB / 350.1 MB Notification: Performance of sort global known variables: time 9e-08/0.2521, allocations: 3.938 kB / 441.2 MB, free: 12.18 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0004414/0.2525, allocations: 67.84 kB / 441.3 MB, free: 12.11 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.0009114/0.2534, allocations: 1.063 MB / 442.4 MB, free: 11.02 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.000379/0.2538, allocations: 151.7 kB / 442.5 MB, free: 10.88 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.214e-06/0.2538, allocations: 0.75 kB / 442.5 MB, free: 10.88 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001421/0.2539, allocations: 67.91 kB / 442.6 MB, free: 10.81 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006647/0.2546, allocations: 51.53 kB / 442.6 MB, free: 10.76 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003847/0.2584, allocations: 3.072 MB / 445.7 MB, free: 7.5 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004146/0.2589, allocations: 0.744 MB / 446.4 MB, free: 6.73 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001023/0.259, allocations: 30.27 kB / 446.5 MB, free: 6.703 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000114/0.2591, allocations: 67.41 kB / 446.5 MB, free: 6.641 MB / 350.1 MB Notification: Performance of SimCode: time 4.01e-07/0.2591, allocations: 0 / 446.5 MB, free: 6.641 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03355/0.2926, allocations: 4.966 MB / 451.5 MB, free: 1.801 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.07/11.36, allocations: 8 kB / 451.5 MB, free: 1.793 MB / 350.1 MB " [Timeout remaining time 649] (rm -f Modelica_trunk_Modelica.Mechanics.Rotational.Examples.CompareBrakingTorque.pipe ; mkfifo Modelica_trunk_Modelica.Mechanics.Rotational.Examples.CompareBrakingTorque.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Mechanics.Rotational.Examples.CompareBrakingTorque.pipe >> ../files/Modelica_trunk_Modelica.Mechanics.Rotational.Examples.CompareBrakingTorque.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_trunk_Modelica.Mechanics.Rotational.Examples.CompareBrakingTorque_res.mat --tempDir=temp_Modelica_trunk_Modelica_Mechanics_Rotational_Examples_CompareBrakingTorque_fmu --startTime=0 --stopTime=5 --stepSize=0.0001 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Mechanics_Rotational_Examples_CompareBrakingTorque.fmu > Modelica_trunk_Modelica.Mechanics.Rotational.Examples.CompareBrakingTorque.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_trunk_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_trunk_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.915485507110134]