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.007785/0.007785, allocations: 100 kB / 15.87 MB, free: 6.316 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.001534/0.001534, allocations: 192.8 kB / 16.79 MB, free: 6.242 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.285/1.285, allocations: 205.1 MB / 222.6 MB, free: 4.746 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.2666/0.2666, allocations: 43.5 MB / 313.5 MB, free: 8.273 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.001239/0.001239, allocations: 63.91 kB / 382.1 MB, free: 8.398 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08399/0.08524, allocations: 57.78 MB / 439.9 MB, free: 14.51 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.ForUsersGuide.SupportTorque1): time 0.002906/0.08818, allocations: 2.287 MB / 442.2 MB, free: 12.21 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.001119/0.08932, allocations: 0.7801 MB / 443 MB, free: 11.42 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.18e-05/0.08943, allocations: 4 kB / 443 MB, free: 11.41 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001724/0.08963, allocations: 27.78 kB / 443 MB, free: 11.39 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001086/0.08975, allocations: 59.52 kB / 443.1 MB, free: 11.33 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002795/0.09003, allocations: 111.8 kB / 443.2 MB, free: 11.22 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002478/0.09029, allocations: 331.2 kB / 443.5 MB, free: 10.89 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001397/0.09044, allocations: 69.03 kB / 443.6 MB, free: 10.83 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001546/0.0906, allocations: 123.6 kB / 443.7 MB, free: 10.71 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000162/0.09077, allocations: 155.3 kB / 443.8 MB, free: 10.55 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 3.376e-05/0.09081, allocations: 16 kB / 443.9 MB, free: 10.54 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001189/0.09094, allocations: 63.95 kB / 443.9 MB, free: 10.48 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 6.906e-05/0.09101, allocations: 51.81 kB / 444 MB, free: 10.43 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001021/0.09112, allocations: 123.4 kB / 444.1 MB, free: 10.3 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002777/0.0914, allocations: 331.2 kB / 444.4 MB, free: 9.98 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.899e-06/0.09142, allocations: 0 / 444.4 MB, free: 9.98 MB / 382.1 MB Notification: Performance of FrontEnd: time 8.02e-07/0.09142, allocations: 3.938 kB / 444.4 MB, free: 9.977 MB / 382.1 MB Notification: Performance of Transformations before backend: time 5.12e-06/0.09143, allocations: 0 / 444.4 MB, free: 9.977 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.0007883/0.09223, allocations: 0.5498 MB / 445 MB, free: 9.379 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.808e-05/0.09227, allocations: 12.03 kB / 445 MB, free: 9.367 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.176e-05/0.09234, allocations: 62.72 kB / 445 MB, free: 9.297 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.314e-05/0.0924, allocations: 24.66 kB / 445.1 MB, free: 9.273 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002276/0.09263, allocations: 236 kB / 445.3 MB, free: 9.004 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.447e-05/0.09267, allocations: 16.81 kB / 445.3 MB, free: 8.988 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.767e-05/0.09273, allocations: 28.28 kB / 445.3 MB, free: 8.961 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004471/0.09318, allocations: 271.2 kB / 445.6 MB, free: 8.691 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.308e-05/0.0932, allocations: 0 / 445.6 MB, free: 8.691 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.576e-05/0.09323, allocations: 8 kB / 445.6 MB, free: 8.684 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.067e-06/0.09325, allocations: 8 kB / 445.6 MB, free: 8.676 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004216/0.09367, allocations: 237.6 kB / 445.8 MB, free: 8.445 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001081/0.09476, allocations: 0.74 MB / 446.6 MB, free: 7.652 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000452/0.09523, allocations: 238.5 kB / 446.8 MB, free: 7.41 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002271/0.09546, allocations: 136.8 kB / 447 MB, free: 7.273 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.514e-05/0.0955, allocations: 4 kB / 447 MB, free: 7.27 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.125e-05/0.09552, allocations: 42.5 kB / 447 MB, free: 7.219 MB / 382.1 MB Notification: Performance of pre-optimization done (n=25): time 1.133e-06/0.09553, allocations: 0 / 447 MB, free: 7.219 MB / 382.1 MB Notification: Performance of matching and sorting (n=33): time 0.002651/0.09818, allocations: 1.461 MB / 448.5 MB, free: 5.648 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.541e-05/0.09822, allocations: 51.41 kB / 448.5 MB, free: 5.586 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001501/0.09838, allocations: 198.6 kB / 448.7 MB, free: 5.379 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 3.092e-05/0.09842, allocations: 37.7 kB / 448.7 MB, free: 5.336 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.579e-05/0.09849, allocations: 136.6 kB / 448.9 MB, free: 5.199 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.273e-05/0.09857, allocations: 110.5 kB / 449 MB, free: 5.09 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.943e-05/0.09867, allocations: 65.69 kB / 449 MB, free: 5.02 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 8.88e-05/0.09877, allocations: 334.8 kB / 449.4 MB, free: 4.684 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002193/0.09899, allocations: 135.7 kB / 449.5 MB, free: 4.551 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002395/0.09924, allocations: 167.2 kB / 449.7 MB, free: 4.375 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000371/0.09962, allocations: 243.2 kB / 449.9 MB, free: 4.125 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.423e-06/0.09963, allocations: 7.938 kB / 449.9 MB, free: 4.117 MB / 382.1 MB Notification: Performance of matching and sorting (n=42) (initialization): time 0.0006869/0.1003, allocations: 433.8 kB / 450.3 MB, free: 3.684 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.237e-05/0.1003, allocations: 4 kB / 450.3 MB, free: 3.68 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.771e-06/0.1004, allocations: 4 kB / 450.3 MB, free: 3.676 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004363/0.1008, allocations: 232.7 kB / 450.6 MB, free: 3.445 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001956/0.101, allocations: 59.97 kB / 450.6 MB, free: 3.387 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006038/0.1016, allocations: 0.7591 MB / 451.4 MB, free: 2.602 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002179/0.1018, allocations: 35.95 kB / 451.4 MB, free: 2.566 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.556e-05/0.1019, allocations: 12 kB / 451.4 MB, free: 2.555 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.000128/0.102, allocations: 158 kB / 451.6 MB, free: 2.391 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.371e-05/0.1021, allocations: 31.72 kB / 451.6 MB, free: 2.359 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.889e-05/0.1021, allocations: 34.66 kB / 451.7 MB, free: 2.324 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.988e-06/0.1022, allocations: 4 kB / 451.7 MB, free: 2.32 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.466e-06/0.1022, allocations: 0 / 451.7 MB, free: 2.32 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.239e-06/0.1022, allocations: 3.984 kB / 451.7 MB, free: 2.316 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001296/0.1035, allocations: 0.9519 MB / 452.6 MB, free: 1.297 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.984e-06/0.1035, allocations: 0 / 452.6 MB, free: 1.297 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000205/0.1037, allocations: 47.97 kB / 452.7 MB, free: 1.25 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000346/0.104, allocations: 216.7 kB / 452.9 MB, free: 1.035 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.504e-05/0.1041, allocations: 15.98 kB / 452.9 MB, free: 1.02 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005192/0.1046, allocations: 0.7085 MB / 453.6 MB, free: 292 kB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.133e-06/0.1046, allocations: 0 / 453.6 MB, free: 292 kB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.1367/0.2413, allocations: 0.6359 MB / 454.2 MB, free: 49.15 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001252/0.2415, allocations: 124 kB / 454.4 MB, free: 49.06 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.975e-05/0.2415, allocations: 12.73 kB / 454.4 MB, free: 49.06 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002252/0.2418, allocations: 33.47 kB / 454.4 MB, free: 49.06 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001044/0.2419, allocations: 46.81 kB / 454.4 MB, free: 49.06 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.138e-05/0.2419, allocations: 11.94 kB / 454.5 MB, free: 49.06 MB / 382.1 MB Notification: Performance of sorting global known variables: time 8.779e-05/0.242, allocations: 154 kB / 454.6 MB, free: 48.98 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.242, allocations: 0 / 454.6 MB, free: 48.98 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0003368/0.2423, allocations: 77.28 kB / 454.7 MB, free: 48.98 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.001089/0.2434, allocations: 1.196 MB / 455.9 MB, free: 48.31 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0005658/0.244, allocations: 317.9 kB / 456.2 MB, free: 48.31 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 1.934e-06/0.244, allocations: 1.312 kB / 456.2 MB, free: 48.31 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002686/0.2443, allocations: 170.5 kB / 456.4 MB, free: 48.31 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003522/0.2447, allocations: 33.41 kB / 456.4 MB, free: 48.31 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003536/0.2482, allocations: 3.186 MB / 459.6 MB, free: 46.81 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001251/0.2483, allocations: 0.7506 MB / 460.3 MB, free: 46.11 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 7.835e-05/0.2484, allocations: 24.53 kB / 460.4 MB, free: 46.11 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.414e-05/0.2485, allocations: 69.62 kB / 460.4 MB, free: 46.1 MB / 382.1 MB Notification: Performance of SimCode: time 2.01e-07/0.2485, allocations: 2.516 kB / 460.4 MB, free: 46.1 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.164/0.4126, allocations: 7.049 MB / 467.5 MB, free: 45.44 MB / 382.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002053/0.4128, allocations: 238.7 kB / 467.7 MB, free: 45.19 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.773/2.185, allocations: 3.938 kB / 467.7 MB, free: 45.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