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.00121/0.00121, allocations: 108.6 kB / 18.49 MB, free: 4.543 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.00148/0.00148, allocations: 197 kB / 21.43 MB, free: 1.609 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.393/1.393, allocations: 225.6 MB / 249.8 MB, free: 3.594 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="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged,fileNamePrefix="Modelica_4_0_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: 44.02 kB / 366.3 MB, free: 0.8125 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09895/0.1005, allocations: 52.14 MB / 418.5 MB, free: 12.57 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged): time 0.003348/0.1038, allocations: 2.228 MB / 420.7 MB, free: 10.33 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001151/0.105, allocations: 0.6855 MB / 421.4 MB, free: 9.641 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.752e-05/0.1051, allocations: 4 kB / 421.4 MB, free: 9.637 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001597/0.1052, allocations: 35.66 kB / 421.4 MB, free: 9.602 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001505/0.1054, allocations: 63.48 kB / 421.5 MB, free: 9.539 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002936/0.1057, allocations: 107.7 kB / 421.6 MB, free: 9.434 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002951/0.106, allocations: 259.4 kB / 421.9 MB, free: 9.18 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000126/0.1061, allocations: 44.38 kB / 421.9 MB, free: 9.137 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001655/0.1062, allocations: 115.6 kB / 422 MB, free: 9.023 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000188/0.1064, allocations: 119.5 kB / 422.1 MB, free: 8.906 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 3.615e-05/0.1065, allocations: 20 kB / 422.1 MB, free: 8.887 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001344/0.1066, allocations: 71.89 kB / 422.2 MB, free: 8.816 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 7.202e-05/0.1067, allocations: 51.83 kB / 422.3 MB, free: 8.766 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001096/0.1068, allocations: 111.5 kB / 422.4 MB, free: 8.656 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003533/0.1071, allocations: 274.9 kB / 422.6 MB, free: 8.387 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.711e-06/0.1071, allocations: 4 kB / 422.6 MB, free: 8.383 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.252e-06/0.1071, allocations: 0 / 422.6 MB, free: 8.383 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.931e-06/0.1071, allocations: 0 / 422.6 MB, free: 8.383 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.0008535/0.108, allocations: 0.5222 MB / 423.2 MB, free: 7.812 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.647e-05/0.108, allocations: 12.03 kB / 423.2 MB, free: 7.801 MB / 350.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 2.381e-05/0.1081, allocations: 8.562 kB / 423.2 MB, free: 7.793 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.6e-05/0.1081, allocations: 54.72 kB / 423.2 MB, free: 7.73 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.358e-05/0.1082, allocations: 24.8 kB / 423.3 MB, free: 7.707 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003172/0.1085, allocations: 240.6 kB / 423.5 MB, free: 7.434 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.066e-05/0.1085, allocations: 12.81 kB / 423.5 MB, free: 7.418 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.388e-05/0.1086, allocations: 24.36 kB / 423.5 MB, free: 7.395 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004104/0.109, allocations: 229.6 kB / 423.8 MB, free: 7.156 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.498e-05/0.109, allocations: 0 / 423.8 MB, free: 7.156 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.213e-05/0.109, allocations: 8 kB / 423.8 MB, free: 7.148 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.193e-05/0.109, allocations: 12 kB / 423.8 MB, free: 7.137 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003401/0.1094, allocations: 165 kB / 423.9 MB, free: 6.977 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001143/0.1105, allocations: 0.7722 MB / 424.7 MB, free: 6.137 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003464/0.1109, allocations: 126.5 kB / 424.8 MB, free: 6.004 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001355/0.111, allocations: 65.14 kB / 424.9 MB, free: 5.938 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.822e-05/0.111, allocations: 0 / 424.9 MB, free: 5.938 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.311e-05/0.111, allocations: 42.47 kB / 424.9 MB, free: 5.887 MB / 350.1 MB Notification: Performance of pre-optimization done (n=18): time 1.132e-06/0.111, allocations: 0 / 424.9 MB, free: 5.887 MB / 350.1 MB Notification: Performance of matching and sorting (n=20): time 0.001952/0.113, allocations: 0.9832 MB / 425.9 MB, free: 4.793 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.943e-05/0.113, allocations: 55.41 kB / 426 MB, free: 4.727 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002152/0.1132, allocations: 210.9 kB / 426.2 MB, free: 4.512 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.566e-05/0.1133, allocations: 33.64 kB / 426.2 MB, free: 4.473 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001014/0.1134, allocations: 148.3 kB / 426.4 MB, free: 4.324 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.275e-05/0.1134, allocations: 75.38 kB / 426.4 MB, free: 4.25 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.711e-05/0.1135, allocations: 49.7 kB / 426.5 MB, free: 4.195 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001423/0.1137, allocations: 338.8 kB / 426.8 MB, free: 3.855 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001605/0.1138, allocations: 71.97 kB / 426.9 MB, free: 3.785 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002031/0.114, allocations: 128.1 kB / 427 MB, free: 3.645 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003156/0.1143, allocations: 169.4 kB / 427.2 MB, free: 3.469 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.163e-06/0.1143, allocations: 4 kB / 427.2 MB, free: 3.465 MB / 350.1 MB Notification: Performance of matching and sorting (n=32) (initialization): time 0.0005109/0.1149, allocations: 284.6 kB / 427.5 MB, free: 3.18 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.349e-05/0.1149, allocations: 4 kB / 427.5 MB, free: 3.176 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.121e-06/0.1149, allocations: 4 kB / 427.5 MB, free: 3.172 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002313/0.1151, allocations: 64.81 kB / 427.5 MB, free: 3.105 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001554/0.1153, allocations: 47.97 kB / 427.6 MB, free: 3.059 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.000563/0.1158, allocations: 0.6225 MB / 428.2 MB, free: 2.41 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001874/0.116, allocations: 24 kB / 428.2 MB, free: 2.387 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.995e-05/0.116, allocations: 8 kB / 428.2 MB, free: 2.379 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.0001395/0.1162, allocations: 139.9 kB / 428.4 MB, free: 2.234 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.503e-05/0.1162, allocations: 23.84 kB / 428.4 MB, free: 2.211 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.314e-05/0.1163, allocations: 33.73 kB / 428.4 MB, free: 2.176 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.677e-06/0.1163, allocations: 4 kB / 428.4 MB, free: 2.172 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.057e-06/0.1163, allocations: 0 / 428.4 MB, free: 2.172 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.276e-06/0.1163, allocations: 0 / 428.4 MB, free: 2.172 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008884/0.1172, allocations: 0.5983 MB / 429 MB, free: 1.508 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.883e-06/0.1172, allocations: 0 / 429 MB, free: 1.508 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001603/0.1173, allocations: 31.92 kB / 429.1 MB, free: 1.477 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001746/0.1175, allocations: 68.81 kB / 429.1 MB, free: 1.406 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.665e-05/0.1175, allocations: 4 kB / 429.1 MB, free: 1.402 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.000516/0.1181, allocations: 0.6187 MB / 429.7 MB, free: 0.7578 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.132e-06/0.1181, allocations: 0 / 429.7 MB, free: 0.7578 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006298/0.1187, allocations: 420 kB / 430.2 MB, free: 332 kB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001091/0.1188, allocations: 109 kB / 430.3 MB, free: 204 kB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.807e-05/0.1188, allocations: 11.98 kB / 430.3 MB, free: 192 kB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001819/0.119, allocations: 19.98 kB / 430.3 MB, free: 172 kB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.676e-05/0.1191, allocations: 28.11 kB / 430.3 MB, free: 144 kB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.562e-05/0.1191, allocations: 11.92 kB / 430.3 MB, free: 132 kB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001531/0.1193, allocations: 148.5 kB / 430.5 MB, free: 15.98 MB / 366.1 MB Notification: Performance of sort global known variables: time 7e-08/0.1193, allocations: 0 / 430.5 MB, free: 15.98 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0003459/0.1196, allocations: 60 kB / 430.5 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.001057/0.1207, allocations: 0.9763 MB / 431.5 MB, free: 14.91 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0004881/0.1211, allocations: 187.8 kB / 431.7 MB, free: 14.73 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 1.913e-06/0.1212, allocations: 0 / 431.7 MB, free: 14.73 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002302/0.1214, allocations: 94.39 kB / 431.8 MB, free: 14.64 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003647/0.1217, allocations: 43.03 kB / 431.8 MB, free: 14.6 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003797/0.1255, allocations: 2.667 MB / 434.5 MB, free: 11.82 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004308/0.126, allocations: 0.7363 MB / 435.2 MB, free: 11.05 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 9.875e-05/0.1261, allocations: 17.95 kB / 435.3 MB, free: 11.04 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001063/0.1262, allocations: 63.41 kB / 435.3 MB, free: 10.97 MB / 366.1 MB Notification: Performance of SimCode: time 5.61e-07/0.1262, allocations: 0 / 435.3 MB, free: 10.97 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02693/0.1531, allocations: 5.597 MB / 440.9 MB, free: 5.566 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.33/11.49, allocations: 0 / 440.9 MB, free: 5.566 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/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/Rotational/Examples/OneWayClutchDisengaged/OneWayClutchDisengaged.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/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: 14.093823600036558]