Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_3.2.3_ModelicaTest.Rotational.ForUsersGuide.SupportTorque1.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Rotational.ForUsersGuide.SupportTorque1,fileNamePrefix="ModelicaTest_3_2_3_ModelicaTest_Rotational_ForUsersGuide_SupportTorque1",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Rotational.ForUsersGuide.SupportTorque1,fileNamePrefix="ModelicaTest_3_2_3_ModelicaTest_Rotational_ForUsersGuide_SupportTorque1",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001759/0.001759, allocations: 105.9 kB / 16.27 MB, free: 5.93 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001189/0.001189, allocations: 187.9 kB / 17.2 MB, free: 5.574 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.387/1.387, allocations: 205.1 MB / 223.1 MB, free: 12.3 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.1925/0.1925, allocations: 43.53 MB / 313.9 MB, free: 0.5234 MB / 254.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001344/0.001344, allocations: 70.5 kB / 382.8 MB, free: 56.66 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07613/0.07748, allocations: 57.78 MB / 440.6 MB, free: 6.805 MB / 318.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.ForUsersGuide.SupportTorque1): time 0.002382/0.07989, allocations: 2.238 MB / 442.9 MB, free: 4.547 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.0008001/0.0807, allocations: 0.7683 MB / 443.6 MB, free: 3.77 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.139e-05/0.0808, allocations: 7.938 kB / 443.6 MB, free: 3.762 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001365/0.08094, allocations: 31.66 kB / 443.7 MB, free: 3.73 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 9.491e-05/0.08105, allocations: 75.41 kB / 443.7 MB, free: 3.656 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000285/0.08134, allocations: 135.7 kB / 443.9 MB, free: 3.523 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001944/0.08154, allocations: 327.3 kB / 444.2 MB, free: 3.203 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001327/0.08168, allocations: 88.78 kB / 444.3 MB, free: 3.113 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001312/0.08182, allocations: 143.5 kB / 444.4 MB, free: 2.973 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001385/0.08197, allocations: 159.5 kB / 444.6 MB, free: 2.816 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 3.634e-05/0.08201, allocations: 27.94 kB / 444.6 MB, free: 2.789 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001066/0.08212, allocations: 67.97 kB / 444.7 MB, free: 2.723 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 6.319e-05/0.08219, allocations: 71.73 kB / 444.7 MB, free: 2.652 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 8.59e-05/0.08228, allocations: 131.3 kB / 444.9 MB, free: 2.523 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000222/0.08251, allocations: 335 kB / 445.2 MB, free: 2.195 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.766e-06/0.08252, allocations: 3.938 kB / 445.2 MB, free: 2.191 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.153e-06/0.08252, allocations: 0 / 445.2 MB, free: 2.191 MB / 318.1 MB Notification: Performance of Transformations before backend: time 4.488e-06/0.08253, allocations: 0 / 445.2 MB, free: 2.191 MB / 318.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 54 * Number of variables: 54 Notification: Performance of Generate backend data structure: time 0.0006396/0.08318, allocations: 0.5459 MB / 445.7 MB, free: 1.598 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 2.825e-05/0.08321, allocations: 19.88 kB / 445.8 MB, free: 1.578 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.546e-05/0.08326, allocations: 62.73 kB / 445.8 MB, free: 1.508 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.562e-05/0.08331, allocations: 24.66 kB / 445.8 MB, free: 1.484 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001694/0.08349, allocations: 245 kB / 446.1 MB, free: 1.207 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.752e-05/0.08351, allocations: 20.81 kB / 446.1 MB, free: 1.188 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.988e-05/0.08356, allocations: 24.28 kB / 446.1 MB, free: 1.164 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003652/0.08393, allocations: 271.3 kB / 446.4 MB, free: 0.8945 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.252e-05/0.08395, allocations: 0 / 446.4 MB, free: 0.8945 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.501e-05/0.08398, allocations: 12 kB / 446.4 MB, free: 0.8828 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.009e-06/0.08399, allocations: 4 kB / 446.4 MB, free: 0.8789 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003584/0.08435, allocations: 233.6 kB / 446.6 MB, free: 0.6523 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009663/0.08532, allocations: 0.7284 MB / 447.4 MB, free: 15.87 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004656/0.0858, allocations: 250.4 kB / 447.6 MB, free: 15.62 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002326/0.08604, allocations: 136.8 kB / 447.7 MB, free: 15.48 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.216e-05/0.08607, allocations: 4 kB / 447.7 MB, free: 15.48 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.726e-05/0.0861, allocations: 34.56 kB / 447.8 MB, free: 15.43 MB / 334.1 MB Notification: Performance of pre-optimization done (n=25): time 3.817e-06/0.08611, allocations: 3.984 kB / 447.8 MB, free: 15.43 MB / 334.1 MB Notification: Performance of matching and sorting (n=33): time 0.00264/0.08875, allocations: 1.452 MB / 449.2 MB, free: 13.87 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.73e-05/0.08879, allocations: 59.34 kB / 449.3 MB, free: 13.8 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001553/0.08895, allocations: 202.3 kB / 449.5 MB, free: 13.59 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.976e-05/0.08899, allocations: 37.7 kB / 449.5 MB, free: 13.54 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.673e-05/0.08906, allocations: 140.6 kB / 449.7 MB, free: 13.4 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.375e-05/0.08914, allocations: 106.5 kB / 449.8 MB, free: 13.3 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.538e-05/0.08924, allocations: 61.69 kB / 449.8 MB, free: 13.23 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 9.91e-05/0.08934, allocations: 334.8 kB / 450.2 MB, free: 12.89 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002235/0.08957, allocations: 127.7 kB / 450.3 MB, free: 12.77 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002447/0.08983, allocations: 167.4 kB / 450.4 MB, free: 12.59 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003717/0.09021, allocations: 247.3 kB / 450.7 MB, free: 12.34 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.372e-06/0.09022, allocations: 0 / 450.7 MB, free: 12.34 MB / 334.1 MB Notification: Performance of matching and sorting (n=42) (initialization): time 0.0006836/0.09091, allocations: 437.7 kB / 451.1 MB, free: 11.9 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.304e-05/0.09093, allocations: 11.94 kB / 451.1 MB, free: 11.89 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.498e-06/0.09094, allocations: 0 / 451.1 MB, free: 11.89 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004239/0.09137, allocations: 240.7 kB / 451.4 MB, free: 11.65 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001977/0.09158, allocations: 51.91 kB / 451.4 MB, free: 11.6 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006068/0.09219, allocations: 0.7553 MB / 452.2 MB, free: 10.82 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002299/0.09243, allocations: 43.98 kB / 452.2 MB, free: 10.78 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.515e-05/0.09247, allocations: 11.98 kB / 452.2 MB, free: 10.77 MB / 334.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 8 (bearingFriction1.free,bearingFriction1.mode,$PRE.bearingFriction1.mode,bearingFriction1.locked,bearingFriction1.startBackward,$PRE.bearingFriction1.startBackward,bearingFriction1.startForward,$PRE.bearingFriction1.startForward) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (30): * Single equations (assignments): 29 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,12)} Notification: Performance of prepare postOptimizeDAE: time 0.0001419/0.09261, allocations: 147.8 kB / 452.4 MB, free: 10.61 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.99e-05/0.09268, allocations: 27.66 kB / 452.4 MB, free: 10.59 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.903e-05/0.09276, allocations: 38.64 kB / 452.4 MB, free: 10.55 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.547e-06/0.09277, allocations: 4.062 kB / 452.4 MB, free: 10.55 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.558e-06/0.09278, allocations: 4 kB / 452.4 MB, free: 10.54 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.858e-06/0.09279, allocations: 0 / 452.4 MB, free: 10.54 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001434/0.09423, allocations: 0.9518 MB / 453.4 MB, free: 9.523 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.094e-06/0.09425, allocations: 4 kB / 453.4 MB, free: 9.52 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002073/0.09446, allocations: 47.91 kB / 453.4 MB, free: 9.473 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003704/0.09484, allocations: 216.7 kB / 453.7 MB, free: 9.258 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.622e-05/0.09488, allocations: 11.98 kB / 453.7 MB, free: 9.246 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006536/0.09554, allocations: 0.7201 MB / 454.4 MB, free: 8.5 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.233e-06/0.09555, allocations: 0 / 454.4 MB, free: 8.5 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001055/0.09661, allocations: 0.6333 MB / 455 MB, free: 7.844 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001202/0.09674, allocations: 124.9 kB / 455.1 MB, free: 7.703 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.453e-05/0.0968, allocations: 15.94 kB / 455.2 MB, free: 7.688 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002453/0.09705, allocations: 35.95 kB / 455.2 MB, free: 7.652 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001057/0.09716, allocations: 51.91 kB / 455.2 MB, free: 7.602 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.29e-05/0.09719, allocations: 11.98 kB / 455.3 MB, free: 7.59 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0001182/0.09732, allocations: 152.3 kB / 455.4 MB, free: 7.441 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.09732, allocations: 0 / 455.4 MB, free: 7.441 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0003253/0.09765, allocations: 76 kB / 455.5 MB, free: 7.367 MB / 334.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 2 (inertia3.phi,inertia3.w) * Number of discrete variables: 4 (bearingFriction1.startForward,bearingFriction1.startBackward,bearingFriction1.locked,bearingFriction1.mode) * Number of discrete states: 3 (bearingFriction1.mode,bearingFriction1.startBackward,bearingFriction1.startForward) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (24): * Single equations (assignments): 23 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,9)} Notification: Performance of Backend phase and start with SimCode phase: time 0.001418/0.09908, allocations: 1.199 MB / 456.7 MB, free: 6.137 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0007308/0.09982, allocations: 335.6 kB / 457 MB, free: 5.809 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.555e-06/0.09984, allocations: 0 / 457 MB, free: 5.809 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000311/0.1002, allocations: 160 kB / 457.2 MB, free: 5.652 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003622/0.1005, allocations: 40.02 kB / 457.2 MB, free: 5.613 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0046/0.1051, allocations: 3.114 MB / 460.3 MB, free: 2.395 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004443/0.1056, allocations: 0.7525 MB / 461.1 MB, free: 1.617 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 9.566e-05/0.1057, allocations: 18.3 kB / 461.1 MB, free: 1.602 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001353/0.1059, allocations: 67.41 kB / 461.2 MB, free: 1.535 MB / 334.1 MB Notification: Performance of SimCode: time 8.21e-07/0.1059, allocations: 0 / 461.2 MB, free: 1.535 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 1.428/1.534, allocations: 7.437 MB / 468.6 MB, free: 10.12 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 16.77/18.3, allocations: 7.875 kB / 468.6 MB, free: 10.11 MB / 350.1 MB (rm -f ModelicaTest_3.2.3_ModelicaTest.Rotational.ForUsersGuide.SupportTorque1.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.Rotational.ForUsersGuide.SupportTorque1.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.Rotational.ForUsersGuide.SupportTorque1.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.Rotational.ForUsersGuide.SupportTorque1.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_3.2.3_ModelicaTest.Rotational.ForUsersGuide.SupportTorque1_res.mat --tempDir=temp_ModelicaTest_3_2_3_ModelicaTest_Rotational_ForUsersGuide_SupportTorque1_fmu --startTime=0 --stopTime=1.1 --timeout=50 --tolerance=1e-06 ModelicaTest_3_2_3_ModelicaTest_Rotational_ForUsersGuide_SupportTorque1.fmu > ModelicaTest_3.2.3_ModelicaTest.Rotational.ForUsersGuide.SupportTorque1.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_ModelicaTest.Rotational.ForUsersGuide.SupportTorque1_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/Rotational/ForUsersGuide/SupportTorque1/SupportTorque1.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_3.2.3_ModelicaTest.Rotational.ForUsersGuide.SupportTorque1.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches