Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_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.00158/0.00158, allocations: 122.2 kB / 18.45 MB, free: 4.457 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.001756/0.001756, allocations: 190.9 kB / 21.39 MB, free: 1.52 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.419/1.419, allocations: 207.6 MB / 231.8 MB, free: 4 MB / 174.1 MB " [Timeout remaining time 178] 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(Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged,fileNamePrefix="Modelica_3_2_3_Modelica_Mechanics_Rotational_Examples_OneWayClutchDisengaged",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged,fileNamePrefix="Modelica_3_2_3_Modelica_Mechanics_Rotational_Examples_OneWayClutchDisengaged",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "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.001644/0.001644, allocations: 59.91 kB / 342.2 MB, free: 10.02 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09211/0.09375, allocations: 49.11 MB / 391.4 MB, free: 8.738 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged): time 0.003477/0.09723, allocations: 2.22 MB / 393.6 MB, free: 6.508 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001307/0.09854, allocations: 0.7368 MB / 394.3 MB, free: 5.762 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.89e-05/0.09864, allocations: 8 kB / 394.3 MB, free: 5.754 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001685/0.09881, allocations: 35.66 kB / 394.4 MB, free: 5.719 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000175/0.09898, allocations: 71.47 kB / 394.4 MB, free: 5.648 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003214/0.0993, allocations: 99.75 kB / 394.5 MB, free: 5.551 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003111/0.09961, allocations: 255.4 kB / 394.8 MB, free: 5.301 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001532/0.09977, allocations: 52.3 kB / 394.8 MB, free: 5.25 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001695/0.09994, allocations: 115.6 kB / 394.9 MB, free: 5.137 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002041/0.1001, allocations: 123.5 kB / 395.1 MB, free: 5.016 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 3.578e-05/0.1002, allocations: 20 kB / 395.1 MB, free: 4.996 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001357/0.1003, allocations: 71.94 kB / 395.2 MB, free: 4.926 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 8.859e-05/0.1004, allocations: 55.77 kB / 395.2 MB, free: 4.871 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001113/0.1005, allocations: 107.5 kB / 395.3 MB, free: 4.766 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003747/0.1009, allocations: 278.9 kB / 395.6 MB, free: 4.492 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.647e-06/0.1009, allocations: 0 / 395.6 MB, free: 4.492 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.495e-06/0.1009, allocations: 0 / 395.6 MB, free: 4.492 MB / 318.1 MB Notification: Performance of Transformations before backend: time 7.564e-06/0.1009, allocations: 0 / 395.6 MB, free: 4.492 MB / 318.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.0008579/0.1018, allocations: 0.5183 MB / 396.1 MB, free: 3.926 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.958e-05/0.1018, allocations: 8.031 kB / 396.1 MB, free: 3.918 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.697e-05/0.1019, allocations: 54.73 kB / 396.2 MB, free: 3.855 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.056e-05/0.1019, allocations: 24.8 kB / 396.2 MB, free: 3.832 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003527/0.1023, allocations: 240 kB / 396.4 MB, free: 3.559 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.208e-05/0.1023, allocations: 12.81 kB / 396.4 MB, free: 3.547 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.613e-05/0.1023, allocations: 24.33 kB / 396.5 MB, free: 3.523 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004001/0.1027, allocations: 229.8 kB / 396.7 MB, free: 3.281 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.129e-05/0.1028, allocations: 7.969 kB / 396.7 MB, free: 3.273 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.828e-05/0.1028, allocations: 12 kB / 396.7 MB, free: 3.262 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.464e-06/0.1028, allocations: 4 kB / 396.7 MB, free: 3.258 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003229/0.1031, allocations: 165 kB / 396.9 MB, free: 3.098 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001191/0.1043, allocations: 0.776 MB / 397.6 MB, free: 2.258 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003399/0.1046, allocations: 118.5 kB / 397.8 MB, free: 2.133 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001364/0.1048, allocations: 68.69 kB / 397.8 MB, free: 2.062 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.91e-05/0.1048, allocations: 4 kB / 397.8 MB, free: 2.059 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.322e-05/0.1048, allocations: 38.55 kB / 397.9 MB, free: 2.012 MB / 318.1 MB Notification: Performance of pre-optimization done (n=18): time 1.583e-06/0.1048, allocations: 4 kB / 397.9 MB, free: 2.008 MB / 318.1 MB Notification: Performance of matching and sorting (n=20): time 0.001867/0.1067, allocations: 0.983 MB / 398.9 MB, free: 0.9102 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.052e-05/0.1067, allocations: 55.41 kB / 398.9 MB, free: 0.8438 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002169/0.107, allocations: 199.4 kB / 399.1 MB, free: 0.6406 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 2.721e-05/0.107, allocations: 37.64 kB / 399.1 MB, free: 0.5977 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000118/0.1071, allocations: 140.3 kB / 399.3 MB, free: 464 kB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.292e-05/0.1072, allocations: 75.38 kB / 399.3 MB, free: 388 kB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.473e-05/0.1073, allocations: 53.69 kB / 399.4 MB, free: 328 kB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001624/0.1074, allocations: 334.8 kB / 399.7 MB, free: 15.98 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001565/0.1076, allocations: 79.95 kB / 399.8 MB, free: 15.91 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001858/0.1078, allocations: 115.6 kB / 399.9 MB, free: 15.78 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002925/0.1081, allocations: 172.7 kB / 400.1 MB, free: 15.6 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.222e-06/0.1081, allocations: 0 / 400.1 MB, free: 15.6 MB / 334.1 MB Notification: Performance of matching and sorting (n=32) (initialization): time 0.0004974/0.1086, allocations: 287.8 kB / 400.4 MB, free: 15.31 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.7e-05/0.1086, allocations: 8 kB / 400.4 MB, free: 15.3 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.935e-06/0.1086, allocations: 4 kB / 400.4 MB, free: 15.3 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002335/0.1088, allocations: 72.91 kB / 400.5 MB, free: 15.23 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001535/0.109, allocations: 43.92 kB / 400.5 MB, free: 15.18 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0005265/0.1095, allocations: 0.6187 MB / 401.1 MB, free: 14.54 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001744/0.1097, allocations: 23.97 kB / 401.1 MB, free: 14.52 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.866e-05/0.1097, allocations: 8 kB / 401.1 MB, free: 14.51 MB / 334.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.0001403/0.1098, allocations: 139.4 kB / 401.3 MB, free: 14.36 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.541e-05/0.1099, allocations: 19.91 kB / 401.3 MB, free: 14.34 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.247e-05/0.1099, allocations: 29.8 kB / 401.3 MB, free: 14.32 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.933e-06/0.1099, allocations: 0 / 401.3 MB, free: 14.32 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.428e-06/0.1099, allocations: 0 / 401.3 MB, free: 14.32 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.906e-06/0.1099, allocations: 0 / 401.3 MB, free: 14.32 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009367/0.1109, allocations: 0.606 MB / 401.9 MB, free: 13.64 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.204e-06/0.1109, allocations: 4 kB / 401.9 MB, free: 13.64 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001552/0.111, allocations: 27.98 kB / 402 MB, free: 13.61 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001657/0.1112, allocations: 64.81 kB / 402 MB, free: 13.55 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.016e-05/0.1112, allocations: 8 kB / 402 MB, free: 13.54 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005043/0.1117, allocations: 0.6227 MB / 402.7 MB, free: 12.89 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.192e-06/0.1117, allocations: 0 / 402.7 MB, free: 12.89 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000618/0.1123, allocations: 413.8 kB / 403.1 MB, free: 12.46 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000109/0.1125, allocations: 113 kB / 403.2 MB, free: 12.33 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.673e-05/0.1125, allocations: 8 kB / 403.2 MB, free: 12.32 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001719/0.1127, allocations: 19.98 kB / 403.2 MB, free: 12.3 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.252e-05/0.1128, allocations: 23.95 kB / 403.2 MB, free: 12.28 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.546e-05/0.1128, allocations: 4 kB / 403.2 MB, free: 12.28 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0001478/0.1129, allocations: 156.2 kB / 403.4 MB, free: 12.12 MB / 334.1 MB Notification: Performance of sort global known variables: time 9e-08/0.1129, allocations: 0 / 403.4 MB, free: 12.12 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0003276/0.1132, allocations: 67.94 kB / 403.4 MB, free: 12.06 MB / 334.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.001073/0.1143, allocations: 0.98 MB / 404.4 MB, free: 11.04 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0004827/0.1148, allocations: 187.8 kB / 404.6 MB, free: 10.86 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.294e-06/0.1148, allocations: 0 / 404.6 MB, free: 10.86 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002222/0.115, allocations: 91.89 kB / 404.7 MB, free: 10.77 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003681/0.1154, allocations: 40.25 kB / 404.7 MB, free: 10.73 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003623/0.119, allocations: 2.673 MB / 407.4 MB, free: 7.934 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000378/0.1194, allocations: 0.7363 MB / 408.2 MB, free: 7.172 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 8.425e-05/0.1195, allocations: 21.95 kB / 408.2 MB, free: 7.148 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.867e-05/0.1196, allocations: 59.41 kB / 408.2 MB, free: 7.09 MB / 334.1 MB Notification: Performance of SimCode: time 6.31e-07/0.1196, allocations: 0 / 408.2 MB, free: 7.09 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 1.059/1.179, allocations: 5.557 MB / 413.8 MB, free: 1.48 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.77/12.94, allocations: 7.922 kB / 413.8 MB, free: 1.473 MB / 334.1 MB " [Timeout remaining time 647] (rm -f Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged.pipe ; mkfifo Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged.pipe >> ../files/Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Mechanics_Rotational_Examples_OneWayClutchDisengaged_fmu --startTime=0 --stopTime=2 --stepSize=0.001 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Mechanics_Rotational_Examples_OneWayClutchDisengaged.fmu > Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Mechanics/Rotational/Examples/OneWayClutchDisengaged/OneWayClutchDisengaged.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/OpenModelicaLibraryTesting/files/Modelica_3.2.3_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.4625677568838]