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.001307/0.001307, 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.00145/0.00145, allocations: 208.3 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.459/1.459, allocations: 230.6 MB / 257.5 MB, free: 7.781 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.00157/0.00157, allocations: 47.92 kB / 377.7 MB, free: 3.047 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2373/0.2388, allocations: 53.37 MB / 431.1 MB, free: 6.777 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.CompareBrakingTorque): time 0.003938/0.2428, allocations: 2.145 MB / 433.2 MB, free: 4.625 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001574/0.2443, allocations: 0.7284 MB / 433.9 MB, free: 3.891 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000121/0.2445, allocations: 7.938 kB / 434 MB, free: 3.883 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001413/0.2446, allocations: 35.59 kB / 434 MB, free: 3.848 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002803/0.2449, allocations: 87.33 kB / 434.1 MB, free: 3.762 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000343/0.2452, allocations: 119.7 kB / 434.2 MB, free: 3.645 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003521/0.2456, allocations: 290.6 kB / 434.5 MB, free: 3.359 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001358/0.2457, allocations: 48.56 kB / 434.5 MB, free: 3.309 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001392/0.2459, allocations: 111.6 kB / 434.6 MB, free: 3.199 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001901/0.246, allocations: 123.4 kB / 434.8 MB, free: 3.078 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 4.159e-05/0.2461, allocations: 20 kB / 434.8 MB, free: 3.059 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.396e-05/0.2461, allocations: 20 kB / 434.8 MB, free: 3.039 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 5.149e-05/0.2462, allocations: 51.84 kB / 434.8 MB, free: 2.988 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001279/0.2463, allocations: 111.5 kB / 435 MB, free: 2.879 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003538/0.2467, allocations: 255.3 kB / 435.2 MB, free: 2.633 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.901e-06/0.2467, allocations: 4 kB / 435.2 MB, free: 2.629 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.084e-06/0.2467, allocations: 4 kB / 435.2 MB, free: 2.625 MB / 334.1 MB Notification: Performance of Transformations before backend: time 7.283e-06/0.2467, allocations: 0 / 435.2 MB, free: 2.625 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.000844/0.2475, allocations: 457.5 kB / 435.7 MB, free: 2.148 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.346e-05/0.2476, allocations: 8.031 kB / 435.7 MB, free: 2.141 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.311e-05/0.2476, allocations: 66.66 kB / 435.7 MB, free: 2.066 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.092e-05/0.2477, allocations: 32.75 kB / 435.8 MB, free: 2.035 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003976/0.2481, allocations: 194.8 kB / 436 MB, free: 1.82 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.896e-05/0.2481, allocations: 20.81 kB / 436 MB, free: 1.801 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.057e-05/0.2482, allocations: 20.38 kB / 436 MB, free: 1.781 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00043/0.2486, allocations: 246.7 kB / 436.2 MB, free: 1.523 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.077e-05/0.2486, allocations: 3.953 kB / 436.2 MB, free: 1.52 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.279e-05/0.2486, allocations: 8 kB / 436.2 MB, free: 1.512 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.817e-06/0.2487, allocations: 4 kB / 436.2 MB, free: 1.508 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003288/0.249, allocations: 147.8 kB / 436.4 MB, free: 1.363 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001422/0.2504, allocations: 0.9425 MB / 437.3 MB, free: 352 kB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000448/0.2509, allocations: 206.3 kB / 437.5 MB, free: 108 kB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000135/0.251, allocations: 63.5 kB / 437.6 MB, free: 32 kB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.493e-05/0.251, allocations: 11.97 kB / 437.6 MB, free: 20 kB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.494e-05/0.2511, allocations: 42.5 kB / 437.7 MB, free: 15.97 MB / 350.1 MB Notification: Performance of pre-optimization done (n=16): time 1.302e-06/0.2511, allocations: 0 / 437.7 MB, free: 15.97 MB / 350.1 MB Notification: Performance of matching and sorting (n=16): time 0.0005568/0.2516, allocations: 193.4 kB / 437.8 MB, free: 15.77 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.07e-05/0.2517, allocations: 136.5 kB / 438 MB, free: 15.61 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001994/0.2519, allocations: 199.7 kB / 438.2 MB, free: 15.4 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.357e-05/0.2519, allocations: 29.7 kB / 438.2 MB, free: 15.37 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001239/0.2521, allocations: 168.2 kB / 438.4 MB, free: 15.2 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.024e-05/0.2521, allocations: 67.44 kB / 438.4 MB, free: 15.13 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.519e-05/0.2522, allocations: 49.64 kB / 438.5 MB, free: 15.07 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.000161/0.2523, allocations: 338.8 kB / 438.8 MB, free: 14.73 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001443/0.2525, allocations: 55.95 kB / 438.9 MB, free: 14.68 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000229/0.2527, allocations: 157.7 kB / 439 MB, free: 14.48 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003779/0.2531, allocations: 237.5 kB / 439.2 MB, free: 14.2 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.484e-06/0.2531, allocations: 0 / 439.2 MB, free: 14.2 MB / 350.1 MB Notification: Performance of matching and sorting (n=32) (initialization): time 0.0004925/0.2536, allocations: 257.3 kB / 439.5 MB, free: 13.94 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.279e-05/0.2536, allocations: 15.92 kB / 439.5 MB, free: 13.92 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.536e-06/0.2536, allocations: 4.25 kB / 439.5 MB, free: 13.92 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.607e-05/0.2536, allocations: 4 kB / 439.5 MB, free: 13.91 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002659/0.2539, allocations: 71.91 kB / 439.6 MB, free: 13.84 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.992e-05/0.2539, allocations: 11.94 kB / 439.6 MB, free: 13.83 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001368/0.2541, allocations: 19.89 kB / 439.6 MB, free: 13.81 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.439e-05/0.2541, allocations: 15.98 kB / 439.6 MB, free: 13.8 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.0001451/0.2542, allocations: 146 kB / 439.8 MB, free: 13.64 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.299e-05/0.2543, allocations: 23.8 kB / 439.8 MB, free: 13.62 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.873e-05/0.2544, allocations: 21.02 kB / 439.8 MB, free: 13.6 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.029e-06/0.2544, allocations: 4 kB / 439.8 MB, free: 13.6 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.539e-06/0.2544, allocations: 0 / 439.8 MB, free: 13.6 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.316e-06/0.2544, allocations: 0 / 439.8 MB, free: 13.6 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004396/0.2548, allocations: 224.7 kB / 440 MB, free: 13.34 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.713e-06/0.2548, allocations: 3.938 kB / 440.1 MB, free: 13.33 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002658/0.2551, allocations: 47.97 kB / 440.1 MB, free: 13.29 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.556e-06/0.2551, allocations: 7.938 kB / 440.1 MB, free: 13.28 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.962e-05/0.2551, allocations: 11.98 kB / 440.1 MB, free: 13.27 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.148e-06/0.2551, allocations: 7.938 kB / 440.1 MB, free: 13.26 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.163e-06/0.2551, allocations: 0 / 440.1 MB, free: 13.26 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006048/0.2557, allocations: 0.5167 MB / 440.6 MB, free: 12.72 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.015e-05/0.2558, allocations: 27.84 kB / 440.7 MB, free: 12.7 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.213e-05/0.2558, allocations: 8 kB / 440.7 MB, free: 12.69 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002094/0.256, allocations: 4.75 kB / 440.7 MB, free: 12.68 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.846e-05/0.2561, allocations: 19.91 kB / 440.7 MB, free: 12.66 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.061e-05/0.2561, allocations: 4 kB / 440.7 MB, free: 12.66 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001261/0.2562, allocations: 144.5 kB / 440.8 MB, free: 12.52 MB / 350.1 MB Notification: Performance of sort global known variables: time 6e-08/0.2562, allocations: 0 / 440.8 MB, free: 12.52 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0004362/0.2567, allocations: 63.89 kB / 440.9 MB, free: 12.46 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.0009166/0.2576, allocations: 1.074 MB / 442 MB, free: 11.36 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0003767/0.258, allocations: 156.3 kB / 442.1 MB, free: 11.21 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.793e-06/0.258, allocations: 0 / 442.1 MB, free: 11.21 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001624/0.2581, allocations: 63.91 kB / 442.2 MB, free: 11.14 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006965/0.2588, allocations: 51.77 kB / 442.3 MB, free: 11.1 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003961/0.2628, allocations: 3.06 MB / 445.3 MB, free: 7.848 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001594/0.2629, allocations: 138.2 kB / 445.4 MB, free: 7.695 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001001/0.263, allocations: 30.27 kB / 445.5 MB, free: 7.664 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001072/0.2631, allocations: 67.41 kB / 445.5 MB, free: 7.602 MB / 350.1 MB Notification: Performance of SimCode: time 8.52e-07/0.2631, allocations: 3.938 kB / 445.5 MB, free: 7.598 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03504/0.2982, allocations: 5.503 MB / 451 MB, free: 2.262 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.12/11.42, allocations: 2.578 kB / 451 MB, free: 2.262 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 & python3 -m fmpy simulate --output-file Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.CompareBrakingTorque_res.csv --start-time 0 --stop-time 5 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0001 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.csv","/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] "Error: Could not read variable Time in file Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.CompareBrakingTorque_res.csv. Warning: Get data of variable Time from file Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.CompareBrakingTorque_res.csv failed! " [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 15.13737951501389]