Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001631/0.001631, allocations: 125 kB / 17.79 MB, free: 5.121 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.00187/0.00187, allocations: 190.9 kB / 20.73 MB, free: 2.184 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.421/1.421, allocations: 225.6 MB / 249.1 MB, free: 3.605 MB / 190.1 MB " [Timeout remaining time 178] 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(Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged,fileNamePrefix="Modelica_4_0_0_Modelica_Mechanics_Rotational_Examples_OneWayClutchDisengaged",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged,fileNamePrefix="Modelica_4_0_0_Modelica_Mechanics_Rotational_Examples_OneWayClutchDisengaged",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001433/0.001433, allocations: 47.92 kB / 365.6 MB, free: 0.8125 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09659/0.09803, allocations: 52.14 MB / 417.8 MB, free: 12.58 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged): time 0.003744/0.1018, allocations: 2.232 MB / 420 MB, free: 10.34 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001414/0.1032, allocations: 0.6816 MB / 420.7 MB, free: 9.648 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001666/0.1034, allocations: 4 kB / 420.7 MB, free: 9.645 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002181/0.1036, allocations: 39.66 kB / 420.7 MB, free: 9.605 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002371/0.1038, allocations: 67.47 kB / 420.8 MB, free: 9.539 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004043/0.1042, allocations: 103.8 kB / 420.9 MB, free: 9.438 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004015/0.1046, allocations: 255.5 kB / 421.1 MB, free: 9.188 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001631/0.1048, allocations: 54.64 kB / 421.2 MB, free: 9.137 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002342/0.105, allocations: 107.6 kB / 421.3 MB, free: 9.031 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002545/0.1053, allocations: 119.5 kB / 421.4 MB, free: 8.914 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 4.409e-05/0.1053, allocations: 24 kB / 421.4 MB, free: 8.891 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001641/0.1055, allocations: 71.88 kB / 421.5 MB, free: 8.82 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 8.93e-05/0.1056, allocations: 51.83 kB / 421.6 MB, free: 8.77 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001322/0.1057, allocations: 107.5 kB / 421.7 MB, free: 8.664 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004366/0.1061, allocations: 282.8 kB / 421.9 MB, free: 8.387 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.678e-06/0.1061, allocations: 0 / 421.9 MB, free: 8.387 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.653e-06/0.1061, allocations: 0 / 421.9 MB, free: 8.387 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.606e-05/0.1062, allocations: 0 / 421.9 MB, free: 8.387 MB / 350.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 47 * Number of variables: 47 Notification: Performance of Generate backend data structure: time 0.0009093/0.1071, allocations: 0.5206 MB / 422.5 MB, free: 7.82 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.072e-05/0.1071, allocations: 19.95 kB / 422.5 MB, free: 7.801 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.075e-05/0.1072, allocations: 50.73 kB / 422.5 MB, free: 7.742 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.066e-05/0.1072, allocations: 24.8 kB / 422.6 MB, free: 7.719 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004037/0.1076, allocations: 236.7 kB / 422.8 MB, free: 7.449 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.473e-05/0.1077, allocations: 16.81 kB / 422.8 MB, free: 7.434 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.329e-05/0.1077, allocations: 20.38 kB / 422.8 MB, free: 7.414 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004334/0.1081, allocations: 225.8 kB / 423 MB, free: 7.176 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.907e-05/0.1082, allocations: 7.938 kB / 423.1 MB, free: 7.168 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.181e-05/0.1082, allocations: 8 kB / 423.1 MB, free: 7.16 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.584e-06/0.1082, allocations: 4 kB / 423.1 MB, free: 7.156 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003462/0.1085, allocations: 165 kB / 423.2 MB, free: 6.996 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0012/0.1097, allocations: 0.7799 MB / 424 MB, free: 6.148 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003582/0.1101, allocations: 126.5 kB / 424.1 MB, free: 6.016 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001482/0.1102, allocations: 65.14 kB / 424.2 MB, free: 5.949 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.703e-05/0.1103, allocations: 0 / 424.2 MB, free: 5.949 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.941e-05/0.1103, allocations: 38.47 kB / 424.2 MB, free: 5.902 MB / 350.1 MB Notification: Performance of pre-optimization done (n=18): time 9.92e-07/0.1103, allocations: 0 / 424.2 MB, free: 5.902 MB / 350.1 MB Notification: Performance of matching and sorting (n=20): time 0.001878/0.1122, allocations: 0.9927 MB / 425.2 MB, free: 4.797 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.046e-05/0.1122, allocations: 55.41 kB / 425.3 MB, free: 4.73 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002291/0.1124, allocations: 210.9 kB / 425.5 MB, free: 4.516 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.545e-05/0.1125, allocations: 29.7 kB / 425.5 MB, free: 4.48 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001022/0.1126, allocations: 136.3 kB / 425.6 MB, free: 4.344 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.414e-05/0.1126, allocations: 79.38 kB / 425.7 MB, free: 4.266 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.497e-05/0.1127, allocations: 53.69 kB / 425.8 MB, free: 4.207 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001613/0.1129, allocations: 330.8 kB / 426.1 MB, free: 3.875 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001601/0.113, allocations: 79.97 kB / 426.2 MB, free: 3.797 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002072/0.1133, allocations: 132 kB / 426.3 MB, free: 3.652 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003/0.1136, allocations: 165.4 kB / 426.5 MB, free: 3.48 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.092e-06/0.1136, allocations: 4 kB / 426.5 MB, free: 3.477 MB / 350.1 MB Notification: Performance of matching and sorting (n=32) (initialization): time 0.0005061/0.1141, allocations: 284.6 kB / 426.7 MB, free: 3.191 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.717e-05/0.1141, allocations: 7.984 kB / 426.8 MB, free: 3.184 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.61e-06/0.1141, allocations: 0 / 426.8 MB, free: 3.184 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002495/0.1143, allocations: 68.81 kB / 426.8 MB, free: 3.113 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001608/0.1145, allocations: 47.91 kB / 426.9 MB, free: 3.066 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0005513/0.115, allocations: 0.6148 MB / 427.5 MB, free: 2.426 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001879/0.1152, allocations: 24 kB / 427.5 MB, free: 2.402 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.03e-05/0.1153, allocations: 8 kB / 427.5 MB, free: 2.395 MB / 350.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: 6 (oneWayClutch.free,oneWayClutch.stuck,$PRE.oneWayClutch.stuck,oneWayClutch.locked,oneWayClutch.startForward,$PRE.oneWayClutch.startForward) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (26): * Single equations (assignments): 25 * 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,6)} Notification: Performance of prepare postOptimizeDAE: time 0.0001491/0.1154, allocations: 141.7 kB / 427.7 MB, free: 2.246 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.587e-05/0.1154, allocations: 23.91 kB / 427.7 MB, free: 2.223 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.301e-05/0.1155, allocations: 29.8 kB / 427.7 MB, free: 2.191 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.855e-06/0.1155, allocations: 3.938 kB / 427.7 MB, free: 2.188 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.429e-06/0.1155, allocations: 4 kB / 427.7 MB, free: 2.184 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.005e-06/0.1155, allocations: 0 / 427.7 MB, free: 2.184 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009148/0.1164, allocations: 0.6008 MB / 428.3 MB, free: 1.52 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.074e-06/0.1164, allocations: 4.062 kB / 428.3 MB, free: 1.516 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001593/0.1166, allocations: 35.91 kB / 428.4 MB, free: 1.48 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001687/0.1168, allocations: 60.83 kB / 428.4 MB, free: 1.418 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.639e-05/0.1168, allocations: 11.98 kB / 428.4 MB, free: 1.406 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005081/0.1173, allocations: 0.6109 MB / 429 MB, free: 0.7695 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.433e-06/0.1173, allocations: 4.062 kB / 429 MB, free: 0.7656 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006597/0.118, allocations: 415.6 kB / 429.4 MB, free: 344 kB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001204/0.1181, allocations: 109 kB / 429.6 MB, free: 216 kB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.61e-05/0.1181, allocations: 12 kB / 429.6 MB, free: 204 kB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001737/0.1183, allocations: 19.98 kB / 429.6 MB, free: 184 kB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.316e-05/0.1184, allocations: 23.91 kB / 429.6 MB, free: 160 kB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.612e-05/0.1184, allocations: 11.98 kB / 429.6 MB, free: 148 kB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001452/0.1185, allocations: 148.4 kB / 429.8 MB, free: 0 / 350.1 MB Notification: Performance of sort global known variables: time 1e-07/0.1185, allocations: 4.047 kB / 429.8 MB, free: 15.99 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.000335/0.1189, allocations: 60 kB / 429.8 MB, free: 15.93 MB / 366.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 4 (inertiaOut.w,oneWayClutch.phi_rel,oneWayClutch.w_rel,torqueLoad.phi) * Number of discrete variables: 3 (oneWayClutch.startForward,oneWayClutch.locked,oneWayClutch.stuck) * Number of discrete states: 2 (oneWayClutch.stuck,oneWayClutch.startForward) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (14): * Single equations (assignments): 13 * 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,6)} Notification: Performance of Backend phase and start with SimCode phase: time 0.001093/0.12, allocations: 0.9683 MB / 430.8 MB, free: 14.93 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0005112/0.1205, allocations: 194.2 kB / 431 MB, free: 14.74 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.745e-06/0.1205, allocations: 0 / 431 MB, free: 14.74 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002275/0.1207, allocations: 91.89 kB / 431.1 MB, free: 14.65 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003796/0.1211, allocations: 44.06 kB / 431.1 MB, free: 14.61 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003778/0.1249, allocations: 2.658 MB / 433.8 MB, free: 11.84 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004563/0.1253, allocations: 0.7402 MB / 434.5 MB, free: 11.07 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0001098/0.1254, allocations: 29.94 kB / 434.5 MB, free: 11.04 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001005/0.1255, allocations: 59.41 kB / 434.6 MB, free: 10.98 MB / 366.1 MB Notification: Performance of SimCode: time 1.122e-06/0.1255, allocations: 0 / 434.6 MB, free: 10.98 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03353/0.1591, allocations: 5.557 MB / 440.2 MB, free: 5.594 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.9/12.05, allocations: 7.375 kB / 440.2 MB, free: 5.59 MB / 366.1 MB " [Timeout remaining time 648] (rm -f Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged.pipe ; mkfifo Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged.pipe >> ../files/Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Mechanics_Rotational_Examples_OneWayClutchDisengaged_fmu --startTime=0 --stopTime=2 --stepSize=0.001 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Mechanics_Rotational_Examples_OneWayClutchDisengaged.fmu > Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/Rotational/Examples/OneWayClutchDisengaged/OneWayClutchDisengaged.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 15.19246830418706]