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.0008473/0.0008472, allocations: 96.94 kB / 16.02 MB, free: 84 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0009897/0.0009898, allocations: 185.3 kB / 16.92 MB, free: 6.934 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.409/1.409, allocations: 205.4 MB / 223.1 MB, free: 5.48 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.321/0.321, allocations: 43.57 MB / 315 MB, free: 9.098 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.0004788/0.0004788, allocations: 16 kB / 384.7 MB, free: 7.801 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1032/0.1037, allocations: 58.86 MB / 443.5 MB, free: 12.84 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.ForUsersGuide.SupportTorque1): time 0.00258/0.1063, allocations: 1.94 MB / 445.5 MB, free: 10.89 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.001262/0.1076, allocations: 0.7645 MB / 446.2 MB, free: 10.11 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.876e-05/0.1077, allocations: 8 kB / 446.3 MB, free: 10.11 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001733/0.1079, allocations: 23.78 kB / 446.3 MB, free: 10.08 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000125/0.108, allocations: 55.55 kB / 446.3 MB, free: 10.03 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003418/0.1084, allocations: 115.8 kB / 446.4 MB, free: 9.914 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003207/0.1087, allocations: 311.3 kB / 446.7 MB, free: 9.605 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002489/0.109, allocations: 77 kB / 446.8 MB, free: 9.531 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000191/0.1092, allocations: 127.5 kB / 446.9 MB, free: 9.406 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002741/0.1094, allocations: 143.4 kB / 447.1 MB, free: 9.266 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 3.617e-05/0.1095, allocations: 16 kB / 447.1 MB, free: 9.25 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001325/0.1096, allocations: 55.95 kB / 447.2 MB, free: 9.195 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 8.312e-05/0.1097, allocations: 51.81 kB / 447.2 MB, free: 9.145 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001252/0.1099, allocations: 141.1 kB / 447.3 MB, free: 9 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003116/0.1102, allocations: 327 kB / 447.7 MB, free: 8.68 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.146e-06/0.1102, allocations: 3.938 kB / 447.7 MB, free: 8.676 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.475e-06/0.1102, allocations: 0 / 447.7 MB, free: 8.676 MB / 382.1 MB Notification: Performance of Transformations before backend: time 4.879e-06/0.1102, allocations: 0 / 447.7 MB, free: 8.676 MB / 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.0008067/0.111, allocations: 0.5109 MB / 448.2 MB, free: 8.117 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.077e-05/0.1111, allocations: 16.03 kB / 448.2 MB, free: 8.102 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.47e-05/0.1111, allocations: 54.73 kB / 448.2 MB, free: 8.039 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.206e-05/0.1112, allocations: 24.66 kB / 448.3 MB, free: 8.016 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002585/0.1115, allocations: 243.9 kB / 448.5 MB, free: 7.738 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.812e-05/0.1115, allocations: 16.81 kB / 448.5 MB, free: 7.723 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.571e-05/0.1116, allocations: 20.38 kB / 448.5 MB, free: 7.703 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004979/0.1121, allocations: 271.2 kB / 448.8 MB, free: 7.434 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.886e-05/0.1121, allocations: 7.906 kB / 448.8 MB, free: 7.426 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.981e-05/0.1121, allocations: 8 kB / 448.8 MB, free: 7.418 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.296e-06/0.1121, allocations: 12 kB / 448.8 MB, free: 7.406 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005099/0.1127, allocations: 237.6 kB / 449.1 MB, free: 7.176 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001266/0.1139, allocations: 0.744 MB / 449.8 MB, free: 6.379 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004993/0.1144, allocations: 254.5 kB / 450.1 MB, free: 6.121 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000251/0.1147, allocations: 144.8 kB / 450.2 MB, free: 5.977 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.41e-05/0.1147, allocations: 4 kB / 450.2 MB, free: 5.973 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.462e-05/0.1148, allocations: 42.48 kB / 450.2 MB, free: 5.922 MB / 382.1 MB Notification: Performance of pre-optimization done (n=25): time 1.303e-06/0.1148, allocations: 0 / 450.2 MB, free: 5.922 MB / 382.1 MB Notification: Performance of matching and sorting (n=33): time 0.003074/0.1179, allocations: 1.508 MB / 451.8 MB, free: 4.305 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.864e-05/0.1179, allocations: 55.41 kB / 451.8 MB, free: 4.238 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001798/0.1181, allocations: 194.6 kB / 452 MB, free: 4.035 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 3.368e-05/0.1182, allocations: 33.7 kB / 452 MB, free: 3.996 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.105e-05/0.1182, allocations: 140.6 kB / 452.2 MB, free: 3.855 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.772e-05/0.1183, allocations: 114.4 kB / 452.3 MB, free: 3.742 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.437e-05/0.1184, allocations: 33.7 kB / 452.3 MB, free: 3.703 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001378/0.1185, allocations: 338.7 kB / 452.6 MB, free: 3.363 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002445/0.1188, allocations: 127.9 kB / 452.8 MB, free: 3.238 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002701/0.1191, allocations: 179 kB / 452.9 MB, free: 3.051 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004279/0.1195, allocations: 247.2 kB / 453.2 MB, free: 2.797 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.543e-06/0.1195, allocations: 0 / 453.2 MB, free: 2.797 MB / 382.1 MB Notification: Performance of matching and sorting (n=42) (initialization): time 0.0007889/0.1203, allocations: 433.9 kB / 453.6 MB, free: 2.363 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.678e-05/0.1203, allocations: 8 kB / 453.6 MB, free: 2.355 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.532e-06/0.1204, allocations: 3.984 kB / 453.6 MB, free: 2.352 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004895/0.1209, allocations: 228.7 kB / 453.8 MB, free: 2.125 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002154/0.1211, allocations: 59.89 kB / 453.9 MB, free: 2.066 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007129/0.1218, allocations: 0.7552 MB / 454.7 MB, free: 1.285 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000294/0.1221, allocations: 47.98 kB / 454.7 MB, free: 1.238 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.772e-05/0.1221, allocations: 12 kB / 454.7 MB, free: 1.227 MB / 382.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.0001561/0.1223, allocations: 162.1 kB / 454.9 MB, free: 1.059 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.394e-05/0.1224, allocations: 27.59 kB / 454.9 MB, free: 1.031 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.342e-05/0.1225, allocations: 34.64 kB / 454.9 MB, free: 0.9961 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.292e-06/0.1225, allocations: 4 kB / 454.9 MB, free: 0.9922 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.821e-06/0.1225, allocations: 3.938 kB / 454.9 MB, free: 0.9883 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.72e-06/0.1225, allocations: 3.984 kB / 454.9 MB, free: 0.9844 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.1741/0.2966, allocations: 0.9564 MB / 455.9 MB, free: 45.84 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.072e-05/0.2966, allocations: 1.719 kB / 455.9 MB, free: 45.84 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002615/0.2969, allocations: 48.92 kB / 456 MB, free: 45.84 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004274/0.2973, allocations: 215.9 kB / 456.2 MB, free: 45.83 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.168e-05/0.2974, allocations: 12.02 kB / 456.2 MB, free: 45.83 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.000506/0.2979, allocations: 0.7096 MB / 456.9 MB, free: 45.31 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.096e-06/0.2979, allocations: 5.531 kB / 456.9 MB, free: 45.31 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009685/0.2989, allocations: 0.649 MB / 457.5 MB, free: 45.17 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001096/0.299, allocations: 121.9 kB / 457.7 MB, free: 45.07 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.938e-05/0.2991, allocations: 10.69 kB / 457.7 MB, free: 45.07 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002601/0.2993, allocations: 50.78 kB / 457.7 MB, free: 45.07 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000104/0.2994, allocations: 51.31 kB / 457.8 MB, free: 45.07 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.139e-05/0.2995, allocations: 10.91 kB / 457.8 MB, free: 45.07 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.000101/0.2996, allocations: 145.2 kB / 457.9 MB, free: 45 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.31e-07/0.2996, allocations: 2.781 kB / 457.9 MB, free: 45 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0003592/0.2999, allocations: 77.97 kB / 458 MB, free: 45 MB / 382.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.001172/0.3011, allocations: 1.207 MB / 459.2 MB, free: 44.32 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.000619/0.3017, allocations: 326.8 kB / 459.5 MB, free: 44.32 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 1.964e-06/0.3018, allocations: 2.969 kB / 459.5 MB, free: 44.32 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002747/0.302, allocations: 163.4 kB / 459.7 MB, free: 44.32 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003815/0.3024, allocations: 37.84 kB / 459.7 MB, free: 44.31 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004004/0.3064, allocations: 3.316 MB / 463 MB, free: 42.75 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001548/0.3066, allocations: 0.7525 MB / 463.8 MB, free: 42.05 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 8.124e-05/0.3067, allocations: 20.31 kB / 463.8 MB, free: 42.05 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.506e-05/0.3068, allocations: 65.41 kB / 463.9 MB, free: 42.04 MB / 382.1 MB Notification: Performance of SimCode: time 3.61e-07/0.3068, allocations: 0 / 463.9 MB, free: 42.04 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01672/0.3235, allocations: 6.928 MB / 470.8 MB, free: 41.43 MB / 382.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001537/0.3237, allocations: 239.7 kB / 471 MB, free: 41.18 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.793/2.116, allocations: 0 / 471 MB, free: 41.18 MB / 382.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","../files/ModelicaTest_3.2.3_ModelicaTest.Rotational.ForUsersGuide.SupportTorque1.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches