Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001497/0.001497, allocations: 120.1 kB / 18.49 MB, free: 4.562 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001726/0.001726, allocations: 215 kB / 21.45 MB, free: 1.617 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.42/1.42, allocations: 230.6 MB / 254.8 MB, free: 15.29 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged,fileNamePrefix="Modelica_4_1_0_Modelica_Mechanics_Rotational_Examples_OneWayClutchDisengaged",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged,fileNamePrefix="Modelica_4_1_0_Modelica_Mechanics_Rotational_Examples_OneWayClutchDisengaged",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001519/0.001519, allocations: 51.92 kB / 373.7 MB, free: 10.27 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1052/0.1067, allocations: 53.33 MB / 427 MB, free: 4.855 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged): time 0.003933/0.1106, allocations: 2.345 MB / 429.4 MB, free: 2.496 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0015/0.1121, allocations: 0.8529 MB / 430.2 MB, free: 1.637 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001148/0.1122, allocations: 7.938 kB / 430.2 MB, free: 1.629 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002524/0.1125, allocations: 55.56 kB / 430.3 MB, free: 1.574 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002734/0.1127, allocations: 103.3 kB / 430.4 MB, free: 1.473 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002008/0.1129, allocations: 79.84 kB / 430.4 MB, free: 1.395 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003171/0.1133, allocations: 279.4 kB / 430.7 MB, free: 1.121 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001436/0.1134, allocations: 44.38 kB / 430.8 MB, free: 1.074 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002063/0.1136, allocations: 127.5 kB / 430.9 MB, free: 0.9492 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002078/0.1138, allocations: 127.5 kB / 431 MB, free: 0.8242 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 3.534e-05/0.1139, allocations: 20 kB / 431 MB, free: 0.8047 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001469/0.114, allocations: 87.91 kB / 431.1 MB, free: 0.7188 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 7.21e-05/0.1141, allocations: 55.83 kB / 431.2 MB, free: 0.6641 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001149/0.1142, allocations: 115.4 kB / 431.3 MB, free: 0.5508 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004004/0.1146, allocations: 314.7 kB / 431.6 MB, free: 248 kB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.128e-06/0.1146, allocations: 0 / 431.6 MB, free: 248 kB / 350.1 MB Notification: Performance of FrontEnd: time 1.232e-06/0.1146, allocations: 0 / 431.6 MB, free: 248 kB / 350.1 MB Notification: Performance of Transformations before backend: time 1.083e-05/0.1146, allocations: 4 kB / 431.6 MB, free: 244 kB / 350.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 46 * Number of variables: 46 Notification: Performance of Generate backend data structure: time 0.0009257/0.1155, allocations: 0.5414 MB / 432.1 MB, free: 15.64 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.915e-05/0.1156, allocations: 8.031 kB / 432.1 MB, free: 15.64 MB / 366.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.69e-05/0.1156, allocations: 16.56 kB / 432.2 MB, free: 15.62 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.308e-05/0.1156, allocations: 46.73 kB / 432.2 MB, free: 15.57 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001696/0.1158, allocations: 40.78 kB / 432.2 MB, free: 15.53 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003923/0.1162, allocations: 244 kB / 432.5 MB, free: 15.25 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.858e-05/0.1162, allocations: 16.69 kB / 432.5 MB, free: 15.23 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.925e-05/0.1163, allocations: 28.31 kB / 432.5 MB, free: 15.21 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003943/0.1167, allocations: 221.6 kB / 432.7 MB, free: 14.98 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.388e-05/0.1167, allocations: 0 / 432.7 MB, free: 14.98 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.972e-05/0.1167, allocations: 4 kB / 432.7 MB, free: 14.98 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.224e-05/0.1167, allocations: 4 kB / 432.8 MB, free: 14.97 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003187/0.117, allocations: 151.9 kB / 432.9 MB, free: 14.82 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001134/0.1182, allocations: 0.7781 MB / 433.7 MB, free: 13.98 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003742/0.1186, allocations: 140.9 kB / 433.8 MB, free: 13.83 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001364/0.1187, allocations: 64.95 kB / 433.9 MB, free: 13.77 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.396e-05/0.1187, allocations: 7.984 kB / 433.9 MB, free: 13.76 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.611e-05/0.1187, allocations: 38.91 kB / 433.9 MB, free: 13.71 MB / 366.1 MB Notification: Performance of pre-optimization done (n=19): time 1.293e-06/0.1187, allocations: 4 kB / 433.9 MB, free: 13.71 MB / 366.1 MB Notification: Performance of matching and sorting (n=21): time 0.001936/0.1207, allocations: 0.9889 MB / 434.9 MB, free: 12.61 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.02e-05/0.1207, allocations: 55.41 kB / 435 MB, free: 12.54 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000257/0.121, allocations: 222.8 kB / 435.2 MB, free: 12.31 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 2.238e-05/0.121, allocations: 29.7 kB / 435.2 MB, free: 12.27 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001001/0.1211, allocations: 140.4 kB / 435.4 MB, free: 12.13 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.56e-05/0.1212, allocations: 75.39 kB / 435.4 MB, free: 12.06 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.467e-05/0.1213, allocations: 53.69 kB / 435.5 MB, free: 12 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001514/0.1214, allocations: 330.8 kB / 435.8 MB, free: 11.67 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001567/0.1216, allocations: 67.97 kB / 435.9 MB, free: 11.6 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001934/0.1218, allocations: 115.9 kB / 436 MB, free: 11.48 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002929/0.122, allocations: 159.3 kB / 436.1 MB, free: 11.31 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.122e-05/0.1221, allocations: 4 kB / 436.1 MB, free: 11.3 MB / 366.1 MB Notification: Performance of matching and sorting (n=31) (initialization): time 0.000504/0.1226, allocations: 274 kB / 436.4 MB, free: 11.03 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.467e-05/0.1226, allocations: 4 kB / 436.4 MB, free: 11.02 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.923e-06/0.1226, allocations: 4 kB / 436.4 MB, free: 11.02 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002062/0.1228, allocations: 60.75 kB / 436.5 MB, free: 10.96 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001448/0.1229, allocations: 40.05 kB / 436.5 MB, free: 10.92 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001963/0.1249, allocations: 1.811 MB / 438.3 MB, free: 8.973 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001923/0.1251, allocations: 24 kB / 438.4 MB, free: 8.949 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.587e-05/0.1251, allocations: 8 kB / 438.4 MB, free: 8.941 MB / 366.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 (25): * Single equations (assignments): 24 * 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.0001413/0.1253, allocations: 145.8 kB / 438.5 MB, free: 8.789 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.523e-05/0.1253, allocations: 23.83 kB / 438.5 MB, free: 8.766 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.387e-05/0.1254, allocations: 21.88 kB / 438.5 MB, free: 8.738 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.23e-06/0.1254, allocations: 4 kB / 438.6 MB, free: 8.734 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.715e-06/0.1254, allocations: 0 / 438.6 MB, free: 8.734 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.45e-06/0.1254, allocations: 3.984 kB / 438.6 MB, free: 8.73 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009173/0.1263, allocations: 0.6119 MB / 439.2 MB, free: 8.051 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.104e-06/0.1263, allocations: 64 / 439.2 MB, free: 8.051 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001777/0.1265, allocations: 36.03 kB / 439.2 MB, free: 8.016 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001487/0.1266, allocations: 60.75 kB / 439.3 MB, free: 7.953 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.801e-05/0.1266, allocations: 7.938 kB / 439.3 MB, free: 7.945 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001683/0.1283, allocations: 1.657 MB / 440.9 MB, free: 6.152 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.232e-06/0.1283, allocations: 3.938 kB / 440.9 MB, free: 6.148 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007036/0.129, allocations: 423.8 kB / 441.3 MB, free: 5.711 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000114/0.1291, allocations: 113 kB / 441.5 MB, free: 5.582 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.246e-05/0.1292, allocations: 7.938 kB / 441.5 MB, free: 5.574 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001844/0.1294, allocations: 23.97 kB / 441.5 MB, free: 5.551 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001575/0.1295, allocations: 67.91 kB / 441.6 MB, free: 5.484 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.339e-05/0.1295, allocations: 4 kB / 441.6 MB, free: 5.48 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.000176/0.1297, allocations: 156.6 kB / 441.7 MB, free: 5.328 MB / 366.1 MB Notification: Performance of sort global known variables: time 6e-08/0.1297, allocations: 0 / 441.7 MB, free: 5.328 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.000402/0.1301, allocations: 71.98 kB / 441.8 MB, free: 5.258 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 (15): * Single equations (assignments): 14 * 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.002189/0.1323, allocations: 1.215 MB / 443 MB, free: 4.141 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.00064/0.1329, allocations: 302.4 kB / 443.3 MB, free: 3.832 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.094e-06/0.1329, allocations: 0 / 443.3 MB, free: 3.832 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000347/0.1333, allocations: 231.8 kB / 443.5 MB, free: 3.594 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004007/0.1337, allocations: 50.8 kB / 443.6 MB, free: 3.547 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00376/0.1375, allocations: 2.669 MB / 446.2 MB, free: 0.7656 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.1891/0.3266, allocations: 0.7491 MB / 447 MB, free: 23.57 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0001728/0.3268, allocations: 21.02 kB / 447 MB, free: 23.57 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001475/0.3269, allocations: 64.89 kB / 447.1 MB, free: 23.56 MB / 366.1 MB Notification: Performance of SimCode: time 1.323e-06/0.3269, allocations: 0 / 447.1 MB, free: 23.56 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03101/0.3579, allocations: 6.593 MB / 453.7 MB, free: 22.83 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.56/11.92, allocations: 7.328 kB / 453.7 MB, free: 22.83 MB / 366.1 MB " [Timeout remaining time 648] (rm -f Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged.pipe ; mkfifo Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged.pipe >> ../files/Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged_res.mat --tempDir=temp_Modelica_4_1_0_Modelica_Mechanics_Rotational_Examples_OneWayClutchDisengaged_fmu --startTime=0 --stopTime=2 --stepSize=0.001 --timeout=50 --tolerance=1e-06 Modelica_4_1_0_Modelica_Mechanics_Rotational_Examples_OneWayClutchDisengaged.fmu > Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Mechanics/Rotational/Examples/OneWayClutchDisengaged/OneWayClutchDisengaged.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.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: 14.388712665997446]