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.00148/0.00148, allocations: 106.3 kB / 15.98 MB, free: 6.352 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.001629/0.00163, allocations: 189.2 kB / 16.91 MB, free: 6.191 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.568/1.568, allocations: 205.1 MB / 222.8 MB, free: 4.707 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.3799/0.3799, allocations: 43.5 MB / 313.6 MB, free: 8.508 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.001337/0.001337, allocations: 63.91 kB / 382.3 MB, free: 8.527 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1293/0.1306, allocations: 57.79 MB / 440.1 MB, free: 14.64 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.ForUsersGuide.SupportTorque1): time 0.003261/0.1339, allocations: 2.283 MB / 442.4 MB, free: 12.34 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.001096/0.135, allocations: 0.7723 MB / 443.2 MB, free: 11.55 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.974e-05/0.1351, allocations: 7.938 kB / 443.2 MB, free: 11.55 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001642/0.1353, allocations: 27.78 kB / 443.2 MB, free: 11.52 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001107/0.1354, allocations: 51.61 kB / 443.2 MB, free: 11.47 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003478/0.1358, allocations: 123.8 kB / 443.4 MB, free: 11.35 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002919/0.1361, allocations: 323.3 kB / 443.7 MB, free: 11.03 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001683/0.1363, allocations: 88.56 kB / 443.8 MB, free: 10.94 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001808/0.1365, allocations: 147.5 kB / 443.9 MB, free: 10.8 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001887/0.1367, allocations: 155.4 kB / 444.1 MB, free: 10.64 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 3.868e-05/0.1367, allocations: 24 kB / 444.1 MB, free: 10.62 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001258/0.1368, allocations: 75.94 kB / 444.2 MB, free: 10.55 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 7.85e-05/0.1369, allocations: 63.83 kB / 444.2 MB, free: 10.48 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001182/0.137, allocations: 139.2 kB / 444.4 MB, free: 10.35 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003248/0.1374, allocations: 339.2 kB / 444.7 MB, free: 10.02 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.25e-06/0.1374, allocations: 4 kB / 444.7 MB, free: 10.01 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.513e-06/0.1374, allocations: 0 / 444.7 MB, free: 10.01 MB / 382.1 MB Notification: Performance of Transformations before backend: time 5.671e-06/0.1374, allocations: 4 kB / 444.7 MB, free: 10.01 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.0008606/0.1383, allocations: 0.5459 MB / 445.2 MB, free: 9.414 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.614e-05/0.1383, allocations: 11.89 kB / 445.3 MB, free: 9.402 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.703e-05/0.1384, allocations: 58.73 kB / 445.3 MB, free: 9.336 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.78e-05/0.1385, allocations: 24.66 kB / 445.3 MB, free: 9.312 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002523/0.1387, allocations: 251.9 kB / 445.6 MB, free: 9.027 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.84e-05/0.1387, allocations: 16.81 kB / 445.6 MB, free: 9.012 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.979e-05/0.1388, allocations: 28.28 kB / 445.6 MB, free: 8.984 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004752/0.1393, allocations: 259.3 kB / 445.9 MB, free: 8.727 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.739e-05/0.1393, allocations: 7.984 kB / 445.9 MB, free: 8.719 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.807e-05/0.1393, allocations: 8 kB / 445.9 MB, free: 8.711 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.564e-06/0.1394, allocations: 4 kB / 445.9 MB, free: 8.707 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004714/0.1398, allocations: 233.6 kB / 446.1 MB, free: 8.48 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001228/0.1411, allocations: 0.7439 MB / 446.9 MB, free: 7.684 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004895/0.1416, allocations: 242.4 kB / 447.1 MB, free: 7.438 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002416/0.1418, allocations: 140.8 kB / 447.2 MB, free: 7.297 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.187e-05/0.1419, allocations: 4 kB / 447.2 MB, free: 7.293 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.173e-05/0.1419, allocations: 34.56 kB / 447.3 MB, free: 7.25 MB / 382.1 MB Notification: Performance of pre-optimization done (n=25): time 1.373e-06/0.1419, allocations: 8 kB / 447.3 MB, free: 7.242 MB / 382.1 MB Notification: Performance of matching and sorting (n=33): time 0.002933/0.1448, allocations: 1.457 MB / 448.7 MB, free: 5.676 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.912e-05/0.1449, allocations: 59.41 kB / 448.8 MB, free: 5.605 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001714/0.1451, allocations: 194.6 kB / 449 MB, free: 5.402 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 4.271e-05/0.1451, allocations: 37.69 kB / 449 MB, free: 5.359 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.511e-05/0.1452, allocations: 132.6 kB / 449.2 MB, free: 5.227 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.743e-05/0.1453, allocations: 114.4 kB / 449.3 MB, free: 5.113 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001028/0.1454, allocations: 61.69 kB / 449.3 MB, free: 5.047 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001035/0.1455, allocations: 342.8 kB / 449.7 MB, free: 4.703 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002352/0.1458, allocations: 123.7 kB / 449.8 MB, free: 4.582 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002555/0.146, allocations: 171.2 kB / 450 MB, free: 4.402 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003953/0.1464, allocations: 243.3 kB / 450.2 MB, free: 4.152 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.242e-06/0.1464, allocations: 0 / 450.2 MB, free: 4.152 MB / 382.1 MB Notification: Performance of matching and sorting (n=42) (initialization): time 0.0007291/0.1472, allocations: 437.7 kB / 450.6 MB, free: 3.715 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.509e-05/0.1472, allocations: 4 kB / 450.6 MB, free: 3.711 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.671e-06/0.1472, allocations: 0 / 450.6 MB, free: 3.711 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005289/0.1477, allocations: 236.7 kB / 450.9 MB, free: 3.477 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002092/0.148, allocations: 55.89 kB / 450.9 MB, free: 3.422 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006564/0.1486, allocations: 0.7592 MB / 451.7 MB, free: 2.637 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002353/0.1489, allocations: 43.98 kB / 451.7 MB, free: 2.594 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.031e-05/0.1489, allocations: 11.94 kB / 451.7 MB, free: 2.582 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.0001402/0.1491, allocations: 154 kB / 451.9 MB, free: 2.422 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.333e-05/0.1491, allocations: 27.72 kB / 451.9 MB, free: 2.395 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.933e-05/0.1492, allocations: 38.64 kB / 451.9 MB, free: 2.355 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.548e-06/0.1492, allocations: 4 kB / 451.9 MB, free: 2.352 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.559e-06/0.1492, allocations: 0 / 451.9 MB, free: 2.352 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.68e-06/0.1492, allocations: 3.984 kB / 451.9 MB, free: 2.348 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001426/0.1507, allocations: 0.9519 MB / 452.9 MB, free: 1.328 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.345e-06/0.1507, allocations: 0 / 452.9 MB, free: 1.328 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000216/0.1509, allocations: 47.91 kB / 452.9 MB, free: 1.281 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003817/0.1513, allocations: 224.7 kB / 453.2 MB, free: 1.059 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.637e-05/0.1513, allocations: 7.984 kB / 453.2 MB, free: 1.051 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.000597/0.1519, allocations: 0.7046 MB / 453.9 MB, free: 328 kB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.172e-06/0.1519, allocations: 0 / 453.9 MB, free: 328 kB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.1677/0.3197, allocations: 0.6411 MB / 454.5 MB, free: 49.16 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001541/0.3199, allocations: 131.7 kB / 454.6 MB, free: 49.07 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.45e-05/0.3199, allocations: 6.438 kB / 454.7 MB, free: 49.07 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002572/0.3202, allocations: 32.31 kB / 454.7 MB, free: 49.07 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001164/0.3203, allocations: 51.48 kB / 454.7 MB, free: 49.07 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.47e-05/0.3203, allocations: 10.56 kB / 454.7 MB, free: 49.07 MB / 382.1 MB Notification: Performance of sorting global known variables: time 9.992e-05/0.3205, allocations: 153 kB / 454.9 MB, free: 49 MB / 382.1 MB Notification: Performance of sort global known variables: time 1e-07/0.3205, allocations: 1.281 kB / 454.9 MB, free: 49 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0003606/0.3208, allocations: 77.22 kB / 455 MB, free: 49 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.001181/0.322, allocations: 1.195 MB / 456.2 MB, free: 48.32 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0006767/0.3227, allocations: 332.5 kB / 456.5 MB, free: 48.32 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.825e-06/0.3227, allocations: 0 / 456.5 MB, free: 48.32 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002864/0.323, allocations: 172.3 kB / 456.7 MB, free: 48.32 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003884/0.3234, allocations: 36.95 kB / 456.7 MB, free: 48.32 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003879/0.3273, allocations: 3.185 MB / 459.9 MB, free: 46.82 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001592/0.3275, allocations: 0.7509 MB / 460.6 MB, free: 46.12 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0001044/0.3276, allocations: 23.7 kB / 460.7 MB, free: 46.12 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.113e-05/0.3277, allocations: 68.86 kB / 460.7 MB, free: 46.11 MB / 382.1 MB Notification: Performance of SimCode: time 1.182e-06/0.3277, allocations: 4 kB / 460.7 MB, free: 46.11 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01792/0.3456, allocations: 7.342 MB / 468.1 MB, free: 45.45 MB / 382.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001754/0.3458, allocations: 236.6 kB / 468.3 MB, free: 45.19 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.96/2.306, allocations: 0 / 468.3 MB, free: 45.19 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