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.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.001366/0.001366, allocations: 110.6 kB / 19.17 MB, free: 3.871 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.001343/0.001343, allocations: 203.8 kB / 22.12 MB, free: 0.9297 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.379/1.379, allocations: 207.6 MB / 232.5 MB, free: 3.895 MB / 174.1 MB " [Timeout remaining time 179] 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.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_3_2_3_Modelica_Mechanics_Rotational_Examples_OneWayClutchDisengaged",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged,fileNamePrefix="Modelica_3_2_3_Modelica_Mechanics_Rotational_Examples_OneWayClutchDisengaged",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Modelica requested package Complex of version 3.2.3. Complex 4.1.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.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001645/0.001645, allocations: 55.92 kB / 343 MB, free: 9.98 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1013/0.1029, allocations: 49.13 MB / 392.1 MB, free: 8.684 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged): time 0.003706/0.1066, allocations: 2.221 MB / 394.3 MB, free: 6.453 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001318/0.108, allocations: 0.7291 MB / 395.1 MB, free: 5.715 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.45e-05/0.1081, allocations: 4 kB / 395.1 MB, free: 5.711 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001857/0.1082, allocations: 39.64 kB / 395.1 MB, free: 5.672 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001668/0.1084, allocations: 63.48 kB / 395.2 MB, free: 5.609 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003357/0.1087, allocations: 107.7 kB / 395.3 MB, free: 5.504 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003278/0.1091, allocations: 263.4 kB / 395.5 MB, free: 5.246 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001512/0.1092, allocations: 52.31 kB / 395.6 MB, free: 5.195 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001769/0.1094, allocations: 119.5 kB / 395.7 MB, free: 5.078 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002041/0.1096, allocations: 119.5 kB / 395.8 MB, free: 4.961 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 3.464e-05/0.1096, allocations: 16 kB / 395.8 MB, free: 4.945 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001456/0.1098, allocations: 75.95 kB / 395.9 MB, free: 4.871 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 7.903e-05/0.1099, allocations: 51.78 kB / 396 MB, free: 4.82 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001156/0.11, allocations: 111.4 kB / 396.1 MB, free: 4.711 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003774/0.1104, allocations: 278.9 kB / 396.3 MB, free: 4.438 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.789e-06/0.1104, allocations: 0 / 396.3 MB, free: 4.438 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.783e-06/0.1104, allocations: 0 / 396.3 MB, free: 4.438 MB / 318.1 MB Notification: Performance of Transformations before backend: time 6.552e-06/0.1104, allocations: 0 / 396.3 MB, free: 4.438 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.0008995/0.1113, allocations: 0.5183 MB / 396.9 MB, free: 3.871 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.719e-05/0.1113, allocations: 8.031 kB / 396.9 MB, free: 3.863 MB / 318.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.981e-05/0.1113, allocations: 4.625 kB / 396.9 MB, free: 3.859 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.155e-05/0.1114, allocations: 62.72 kB / 396.9 MB, free: 3.789 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.338e-05/0.1114, allocations: 24.8 kB / 397 MB, free: 3.766 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000331/0.1118, allocations: 231.9 kB / 397.2 MB, free: 3.5 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.597e-05/0.1118, allocations: 16.81 kB / 397.2 MB, free: 3.484 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.059e-05/0.1119, allocations: 32.31 kB / 397.2 MB, free: 3.453 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004154/0.1123, allocations: 217.7 kB / 397.4 MB, free: 3.223 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.76e-05/0.1123, allocations: 4 kB / 397.4 MB, free: 3.219 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.066e-05/0.1123, allocations: 8 kB / 397.5 MB, free: 3.211 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.084e-06/0.1123, allocations: 7.938 kB / 397.5 MB, free: 3.203 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003518/0.1127, allocations: 173 kB / 397.6 MB, free: 3.035 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001167/0.1138, allocations: 0.7605 MB / 398.4 MB, free: 2.211 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003689/0.1142, allocations: 130.5 kB / 398.5 MB, free: 2.074 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001382/0.1143, allocations: 68.73 kB / 398.6 MB, free: 2.004 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.24e-05/0.1144, allocations: 7.984 kB / 398.6 MB, free: 1.996 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.691e-05/0.1144, allocations: 34.56 kB / 398.6 MB, free: 1.953 MB / 318.1 MB Notification: Performance of pre-optimization done (n=18): time 1.152e-06/0.1144, allocations: 0 / 398.6 MB, free: 1.953 MB / 318.1 MB Notification: Performance of matching and sorting (n=20): time 0.00201/0.1164, allocations: 0.9869 MB / 399.6 MB, free: 0.8516 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.315e-05/0.1164, allocations: 55.41 kB / 399.7 MB, free: 0.7852 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002311/0.1167, allocations: 207.4 kB / 399.9 MB, free: 0.5742 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 2.297e-05/0.1167, allocations: 29.7 kB / 399.9 MB, free: 0.5391 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001157/0.1168, allocations: 144.3 kB / 400 MB, free: 400 kB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.314e-05/0.1169, allocations: 75.38 kB / 400.1 MB, free: 324 kB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.842e-05/0.117, allocations: 49.7 kB / 400.2 MB, free: 268 kB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001784/0.1172, allocations: 338.8 kB / 400.5 MB, free: 15.92 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001652/0.1173, allocations: 71.97 kB / 400.6 MB, free: 15.85 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000204/0.1175, allocations: 127.5 kB / 400.7 MB, free: 15.71 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003069/0.1178, allocations: 169.7 kB / 400.9 MB, free: 15.54 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.052e-06/0.1178, allocations: 0 / 400.9 MB, free: 15.54 MB / 334.1 MB Notification: Performance of matching and sorting (n=32) (initialization): time 0.0005212/0.1184, allocations: 283.9 kB / 401.1 MB, free: 15.25 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.77e-05/0.1184, allocations: 8 kB / 401.1 MB, free: 15.25 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.26e-06/0.1184, allocations: 0 / 401.1 MB, free: 15.25 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002662/0.1186, allocations: 72.8 kB / 401.2 MB, free: 15.17 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000172/0.1188, allocations: 47.91 kB / 401.3 MB, free: 15.12 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0005698/0.1194, allocations: 0.6225 MB / 401.9 MB, free: 14.48 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001931/0.1196, allocations: 28 kB / 401.9 MB, free: 14.45 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.905e-05/0.1196, allocations: 8 kB / 401.9 MB, free: 14.44 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.0001557/0.1197, allocations: 127.4 kB / 402 MB, free: 14.31 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.862e-05/0.1198, allocations: 19.91 kB / 402.1 MB, free: 14.29 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.009e-05/0.1199, allocations: 33.8 kB / 402.1 MB, free: 14.26 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.385e-06/0.1199, allocations: 0 / 402.1 MB, free: 14.26 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.33e-06/0.1199, allocations: 4.062 kB / 402.1 MB, free: 14.25 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.012e-06/0.1199, allocations: 7.938 kB / 402.1 MB, free: 14.25 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009286/0.1208, allocations: 0.5905 MB / 402.7 MB, free: 13.59 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.903e-06/0.1208, allocations: 0 / 402.7 MB, free: 13.59 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001665/0.121, allocations: 35.92 kB / 402.7 MB, free: 13.55 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002155/0.1212, allocations: 68.88 kB / 402.8 MB, free: 13.48 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.86e-05/0.1212, allocations: 4 kB / 402.8 MB, free: 13.48 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.000533/0.1217, allocations: 0.6187 MB / 403.4 MB, free: 12.84 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.567e-06/0.1217, allocations: 3.938 kB / 403.4 MB, free: 12.83 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006673/0.1224, allocations: 421.8 kB / 403.8 MB, free: 12.39 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001201/0.1225, allocations: 109.1 kB / 403.9 MB, free: 12.27 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.094e-05/0.1226, allocations: 11.98 kB / 403.9 MB, free: 12.26 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001858/0.1228, allocations: 19.98 kB / 404 MB, free: 12.24 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.527e-05/0.1228, allocations: 19.97 kB / 404 MB, free: 12.22 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.99e-05/0.1229, allocations: 15.92 kB / 404 MB, free: 12.2 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0001521/0.123, allocations: 152.2 kB / 404.2 MB, free: 12.05 MB / 334.1 MB Notification: Performance of sort global known variables: time 7e-08/0.123, allocations: 0 / 404.2 MB, free: 12.05 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0003321/0.1233, allocations: 63.94 kB / 404.2 MB, free: 11.99 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.001108/0.1245, allocations: 0.9684 MB / 405.2 MB, free: 10.98 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.000517/0.125, allocations: 195.7 kB / 405.4 MB, free: 10.79 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.094e-06/0.125, allocations: 4.125 kB / 405.4 MB, free: 10.79 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002371/0.1252, allocations: 91.89 kB / 405.5 MB, free: 10.7 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000388/0.1256, allocations: 39.92 kB / 405.5 MB, free: 10.66 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003623/0.1292, allocations: 2.666 MB / 408.2 MB, free: 7.875 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003883/0.1296, allocations: 0.7402 MB / 408.9 MB, free: 7.105 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 7.337e-05/0.1297, allocations: 17.95 kB / 408.9 MB, free: 7.086 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.121e-05/0.1298, allocations: 63.41 kB / 409 MB, free: 7.027 MB / 334.1 MB Notification: Performance of SimCode: time 3.1e-07/0.1298, allocations: 0 / 409 MB, free: 7.027 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02737/0.1571, allocations: 5.592 MB / 414.6 MB, free: 1.383 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.46/11.61, allocations: 0 / 414.6 MB, free: 1.383 MB / 334.1 MB " [Timeout remaining time 648] (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/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Mechanics/Rotational/Examples/OneWayClutchDisengaged/OneWayClutchDisengaged.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/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: 13.955094778037164]