Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.0_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 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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_4_0_0_ModelicaTest_Rotational_ForUsersGuide_SupportTorque1",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Rotational.ForUsersGuide.SupportTorque1,fileNamePrefix="ModelicaTest_4_0_0_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.001137/0.001137, allocations: 114.4 kB / 17.78 MB, free: 5.266 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.001205/0.001205, allocations: 187.8 kB / 18.71 MB, free: 4.344 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.419/1.419, allocations: 222.9 MB / 242.4 MB, free: 15.17 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2248/0.2248, allocations: 44.18 MB / 336.7 MB, free: 2.691 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001311/0.001311, allocations: 75.88 kB / 470 MB, free: 13.68 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3322/0.3335, allocations: 60.8 MB / 0.5184 GB, free: 3.289 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.ForUsersGuide.SupportTorque1): time 0.003205/0.3367, allocations: 2.25 MB / 0.5206 GB, free: 1.723 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.001336/0.3381, allocations: 0.7201 MB / 0.5213 GB, free: 1.215 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001657/0.3383, allocations: 8.406 kB / 0.5213 GB, free: 1.211 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002166/0.3386, allocations: 37.72 kB / 0.5213 GB, free: 1.188 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001586/0.3387, allocations: 67.36 kB / 0.5214 GB, free: 1.141 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005125/0.3393, allocations: 138.5 kB / 0.5215 GB, free: 1.07 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004107/0.3397, allocations: 337.1 kB / 0.5219 GB, free: 0.9102 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002033/0.3399, allocations: 80.34 kB / 0.5219 GB, free: 0.8672 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002695/0.3402, allocations: 141.3 kB / 0.5221 GB, free: 0.8086 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000272/0.3404, allocations: 162.5 kB / 0.5222 GB, free: 0.7344 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 5.265e-05/0.3405, allocations: 25.97 kB / 0.5223 GB, free: 0.7344 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001786/0.3407, allocations: 77.69 kB / 0.5223 GB, free: 0.7188 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 9.378e-05/0.3408, allocations: 59.34 kB / 0.5224 GB, free: 0.6836 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001362/0.3409, allocations: 139.1 kB / 0.5225 GB, free: 0.5977 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004565/0.3414, allocations: 337.8 kB / 0.5228 GB, free: 484 kB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.731e-06/0.3414, allocations: 1.156 kB / 0.5228 GB, free: 484 kB / 382.1 MB Notification: Performance of FrontEnd: time 2.295e-06/0.3414, allocations: 0 / 0.5228 GB, free: 484 kB / 382.1 MB Notification: Performance of Transformations before backend: time 9.417e-06/0.3414, allocations: 0 / 0.5228 GB, free: 484 kB / 382.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.0008918/0.3423, allocations: 0.5538 MB / 0.5234 GB, free: 8 kB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.812e-05/0.3424, allocations: 9.625 kB / 0.5234 GB, free: 8 kB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.996e-05/0.3425, allocations: 59.55 kB / 0.5234 GB, free: 15.95 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.388e-05/0.3426, allocations: 29.38 kB / 0.5235 GB, free: 15.94 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003723/0.3429, allocations: 255.1 kB / 0.5237 GB, free: 15.69 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.72e-05/0.343, allocations: 22.09 kB / 0.5237 GB, free: 15.68 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.426e-05/0.3431, allocations: 23.95 kB / 0.5238 GB, free: 15.67 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005467/0.3436, allocations: 266 kB / 0.524 GB, free: 15.56 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.692e-05/0.3436, allocations: 2.156 kB / 0.524 GB, free: 15.56 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.039e-05/0.3437, allocations: 6.375 kB / 0.524 GB, free: 15.55 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.085e-06/0.3437, allocations: 5.375 kB / 0.524 GB, free: 15.55 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004758/0.3442, allocations: 237.5 kB / 0.5243 GB, free: 15.48 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001439/0.3456, allocations: 0.7225 MB / 0.525 GB, free: 15.02 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005396/0.3462, allocations: 240.1 kB / 0.5252 GB, free: 14.92 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002475/0.3464, allocations: 143.2 kB / 0.5253 GB, free: 14.86 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.96e-05/0.3465, allocations: 2.781 kB / 0.5253 GB, free: 14.86 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.374e-05/0.3465, allocations: 34.06 kB / 0.5254 GB, free: 14.82 MB / 398.1 MB Notification: Performance of pre-optimization done (n=25): time 2.995e-06/0.3465, allocations: 3.984 kB / 0.5254 GB, free: 14.82 MB / 398.1 MB Notification: Performance of matching and sorting (n=33): time 0.003133/0.3497, allocations: 1.457 MB / 0.5268 GB, free: 13.92 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.608e-05/0.3497, allocations: 62.03 kB / 0.5268 GB, free: 13.85 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002112/0.3499, allocations: 202.2 kB / 0.527 GB, free: 13.7 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 4.215e-05/0.35, allocations: 36.45 kB / 0.5271 GB, free: 13.66 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.794e-05/0.3501, allocations: 134 kB / 0.5272 GB, free: 13.54 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.805e-05/0.3502, allocations: 111.8 kB / 0.5273 GB, free: 13.44 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001227/0.3503, allocations: 74.62 kB / 0.5274 GB, free: 13.38 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001404/0.3504, allocations: 336.3 kB / 0.5277 GB, free: 13.05 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002562/0.3507, allocations: 125.2 kB / 0.5278 GB, free: 12.99 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002944/0.351, allocations: 167.9 kB / 0.528 GB, free: 12.89 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000469/0.3515, allocations: 257.1 kB / 0.5282 GB, free: 12.75 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.545e-06/0.3515, allocations: 1.312 kB / 0.5282 GB, free: 12.75 MB / 398.1 MB Notification: Performance of matching and sorting (n=42) (initialization): time 0.0008039/0.3523, allocations: 436.2 kB / 0.5286 GB, free: 12.52 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.883e-05/0.3523, allocations: 5.312 kB / 0.5286 GB, free: 12.52 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.792e-06/0.3524, allocations: 1.031 kB / 0.5286 GB, free: 12.52 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005107/0.3529, allocations: 241.3 kB / 0.5289 GB, free: 12.41 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002369/0.3531, allocations: 55.53 kB / 0.5289 GB, free: 12.39 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.000733/0.3539, allocations: 0.7523 MB / 0.5297 GB, free: 11.76 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002626/0.3541, allocations: 35.02 kB / 0.5297 GB, free: 11.74 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.354e-05/0.3542, allocations: 12.03 kB / 0.5297 GB, free: 11.74 MB / 398.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.0001731/0.3544, allocations: 143.8 kB / 0.5298 GB, free: 11.6 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.395e-05/0.3544, allocations: 22.66 kB / 0.5299 GB, free: 11.59 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.734e-05/0.3545, allocations: 38.64 kB / 0.5299 GB, free: 11.56 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.919e-06/0.3545, allocations: 3.75 kB / 0.5299 GB, free: 11.56 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.454e-06/0.3546, allocations: 1.062 kB / 0.5299 GB, free: 11.56 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.299e-06/0.3546, allocations: 0 / 0.5299 GB, free: 11.56 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001639/0.3562, allocations: 0.9408 MB / 0.5308 GB, free: 10.84 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.436e-06/0.3562, allocations: 0 / 0.5308 GB, free: 10.84 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002327/0.3565, allocations: 53.06 kB / 0.5309 GB, free: 10.83 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004178/0.3569, allocations: 214.2 kB / 0.5311 GB, free: 10.73 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.074e-05/0.3569, allocations: 6.875 kB / 0.5311 GB, free: 10.73 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006557/0.3576, allocations: 0.7222 MB / 0.5318 GB, free: 10.09 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.264e-06/0.3576, allocations: 1.531 kB / 0.5318 GB, free: 10.09 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00117/0.3588, allocations: 0.6405 MB / 0.5324 GB, free: 9.695 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001682/0.359, allocations: 133.2 kB / 0.5326 GB, free: 9.559 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.99e-05/0.3591, allocations: 24.16 kB / 0.5326 GB, free: 9.539 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000266/0.3593, allocations: 29.31 kB / 0.5326 GB, free: 9.527 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000117/0.3595, allocations: 46.7 kB / 0.5326 GB, free: 9.5 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.764e-05/0.3595, allocations: 18.97 kB / 0.5327 GB, free: 9.488 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0001263/0.3596, allocations: 145.8 kB / 0.5328 GB, free: 9.383 MB / 398.1 MB Notification: Performance of sort global known variables: time 2.21e-07/0.3596, allocations: 0 / 0.5328 GB, free: 9.383 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0004387/0.3601, allocations: 81.06 kB / 0.5329 GB, free: 9.367 MB / 398.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.001501/0.3616, allocations: 1.195 MB / 0.534 GB, free: 8.434 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0007505/0.3623, allocations: 325.3 kB / 0.5344 GB, free: 8.297 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.976e-06/0.3624, allocations: 0 / 0.5344 GB, free: 8.297 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003472/0.3627, allocations: 173.2 kB / 0.5345 GB, free: 8.219 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004586/0.3632, allocations: 34.61 kB / 0.5346 GB, free: 8.199 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005134/0.3683, allocations: 3.094 MB / 0.5376 GB, free: 5.953 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000349/0.3687, allocations: 0.7481 MB / 0.5383 GB, free: 5.227 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0001138/0.3688, allocations: 26.19 kB / 0.5383 GB, free: 5.211 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001226/0.369, allocations: 72.03 kB / 0.5384 GB, free: 5.152 MB / 398.1 MB Notification: Performance of SimCode: time 7.52e-07/0.369, allocations: 1.312 kB / 0.5384 GB, free: 5.152 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0375/0.4065, allocations: 7.757 MB / 0.546 GB, free: 15.36 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.66/12.07, allocations: 12.14 kB / 0.546 GB, free: 15.34 MB / 414.1 MB (rm -f ModelicaTest_4.0.0_ModelicaTest.Rotational.ForUsersGuide.SupportTorque1.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Rotational.ForUsersGuide.SupportTorque1.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Rotational.ForUsersGuide.SupportTorque1.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Rotational.ForUsersGuide.SupportTorque1.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_4.0.0_ModelicaTest.Rotational.ForUsersGuide.SupportTorque1_res.mat --tempDir=temp_ModelicaTest_4_0_0_ModelicaTest_Rotational_ForUsersGuide_SupportTorque1_fmu --startTime=0 --stopTime=1.1 --timeout=50 --tolerance=1e-06 ModelicaTest_4_0_0_ModelicaTest_Rotational_ForUsersGuide_SupportTorque1.fmu > ModelicaTest_4.0.0_ModelicaTest.Rotational.ForUsersGuide.SupportTorque1.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.Rotational.ForUsersGuide.SupportTorque1_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Rotational/ForUsersGuide/SupportTorque1/SupportTorque1.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.0_ModelicaTest.Rotational.ForUsersGuide.SupportTorque1.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches