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.0008916/0.0008916, allocations: 83.62 kB / 21.43 MB, free: 3.133 MB / 18.57 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.004032/0.004032, allocations: 165.8 kB / 24.7 MB, free: 8.887 MB / 18.57 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 0.8533/0.8533, allocations: 158.6 MB / 186.5 MB, free: 3.039 MB / 170.7 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="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: Performance of FrontEnd - loaded program: time 1.573e-06/1.573e-06, allocations: 0 / 298.4 MB, free: 3.531 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.626e-05/1.783e-05, allocations: 2.281 kB / 298.4 MB, free: 3.527 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged): time 0.002334/0.002352, allocations: 2.119 MB / 300.5 MB, free: 1.387 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.0009524/0.003304, allocations: 0.6943 MB / 301.2 MB, free: 0.6836 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001079/0.003412, allocations: 7.938 kB / 301.2 MB, free: 0.6758 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001667/0.003579, allocations: 31.66 kB / 301.3 MB, free: 0.6445 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001432/0.003722, allocations: 75.41 kB / 301.4 MB, free: 0.5703 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003222/0.004044, allocations: 103.7 kB / 301.5 MB, free: 480 kB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002314/0.004275, allocations: 271.3 kB / 301.7 MB, free: 208 kB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001267/0.004402, allocations: 44.52 kB / 301.8 MB, free: 168 kB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001669/0.004569, allocations: 163.6 kB / 301.9 MB, free: 4 kB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.1185/0.123, allocations: 86.88 kB / 302 MB, free: 13.33 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 7.675e-05/0.1231, allocations: 18.56 kB / 302 MB, free: 13.33 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001488/0.1232, allocations: 71.33 kB / 302.1 MB, free: 13.33 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 6.559e-05/0.1233, allocations: 53.81 kB / 302.1 MB, free: 13.33 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 8.182e-05/0.1234, allocations: 74.98 kB / 302.2 MB, free: 13.33 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003846/0.1238, allocations: 296.9 kB / 302.5 MB, free: 13.33 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.146e-06/0.1238, allocations: 0 / 302.5 MB, free: 13.33 MB / 282.7 MB Notification: Performance of FrontEnd: time 1.172e-06/0.1238, allocations: 3.656 kB / 302.5 MB, free: 13.33 MB / 282.7 MB Notification: Performance of Transformations before backend: time 7.885e-06/0.1238, allocations: 0.75 kB / 302.5 MB, free: 13.33 MB / 282.7 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.0005903/0.1244, allocations: 451.5 kB / 303 MB, free: 13 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.169e-05/0.1244, allocations: 13.7 kB / 303 MB, free: 12.99 MB / 282.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.108e-05/0.1245, allocations: 56.09 kB / 303 MB, free: 12.95 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.411e-05/0.1245, allocations: 27.08 kB / 303.1 MB, free: 12.94 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002559/0.1248, allocations: 170 kB / 303.2 MB, free: 12.8 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.774e-05/0.1248, allocations: 18.12 kB / 303.2 MB, free: 12.8 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.991e-05/0.1248, allocations: 20.59 kB / 303.3 MB, free: 12.8 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002807/0.1251, allocations: 222 kB / 303.5 MB, free: 12.74 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.312e-05/0.1251, allocations: 9.453 kB / 303.5 MB, free: 12.74 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.465e-05/0.1251, allocations: 8.562 kB / 303.5 MB, free: 12.74 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.101e-06/0.1251, allocations: 10.33 kB / 303.5 MB, free: 12.73 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002024/0.1253, allocations: 159.8 kB / 303.7 MB, free: 12.73 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007095/0.126, allocations: 0.6749 MB / 304.3 MB, free: 12.36 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002756/0.1263, allocations: 120.5 kB / 304.4 MB, free: 12.34 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.506e-05/0.1264, allocations: 72.05 kB / 304.5 MB, free: 12.33 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.831e-05/0.1264, allocations: 3.109 kB / 304.5 MB, free: 12.33 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.318e-05/0.1264, allocations: 33.41 kB / 304.6 MB, free: 12.29 MB / 282.7 MB Notification: Performance of pre-optimization done (n=18): time 1.352e-06/0.1264, allocations: 0.625 kB / 304.6 MB, free: 12.29 MB / 282.7 MB Notification: Performance of matching and sorting (n=20): time 0.001162/0.1276, allocations: 0.7587 MB / 305.3 MB, free: 11.99 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.115e-05/0.1276, allocations: 58.23 kB / 305.4 MB, free: 11.92 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001351/0.1277, allocations: 212.7 kB / 305.6 MB, free: 11.82 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 1.031e-05/0.1278, allocations: 34.05 kB / 305.6 MB, free: 11.79 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.855e-05/0.1278, allocations: 138.6 kB / 305.7 MB, free: 11.68 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.245e-05/0.1278, allocations: 78.67 kB / 305.8 MB, free: 11.63 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.519e-05/0.1279, allocations: 48.19 kB / 305.9 MB, free: 11.61 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 3.489e-05/0.1279, allocations: 331 kB / 306.2 MB, free: 11.29 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001074/0.128, allocations: 79.47 kB / 306.3 MB, free: 11.26 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001063/0.1281, allocations: 112.2 kB / 306.4 MB, free: 11.2 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001683/0.1283, allocations: 169.4 kB / 306.5 MB, free: 11.11 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.924e-06/0.1283, allocations: 3.938 kB / 306.6 MB, free: 11.11 MB / 282.7 MB Notification: Performance of matching and sorting (n=32) (initialization): time 0.0002949/0.1286, allocations: 292 kB / 306.8 MB, free: 10.98 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.386e-05/0.1286, allocations: 5.672 kB / 306.8 MB, free: 10.98 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.259e-06/0.1286, allocations: 1.281 kB / 306.8 MB, free: 10.98 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001804/0.1288, allocations: 67.75 kB / 306.9 MB, free: 10.96 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.87e-05/0.1289, allocations: 47.08 kB / 307 MB, free: 10.95 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0002759/0.1292, allocations: 0.6132 MB / 307.6 MB, free: 10.39 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.897e-05/0.1293, allocations: 27.67 kB / 307.6 MB, free: 10.38 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.348e-05/0.1293, allocations: 10.97 kB / 307.6 MB, free: 10.38 MB / 282.7 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 7.461e-05/0.1294, allocations: 141.8 kB / 307.7 MB, free: 10.25 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.292e-05/0.1294, allocations: 20.91 kB / 307.8 MB, free: 10.24 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.615e-05/0.1294, allocations: 28.16 kB / 307.8 MB, free: 10.23 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.955e-06/0.1294, allocations: 6.469 kB / 307.8 MB, free: 10.22 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.819e-06/0.1294, allocations: 4.094 kB / 307.8 MB, free: 10.22 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.208e-06/0.1294, allocations: 4.547 kB / 307.8 MB, free: 10.22 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005166/0.1299, allocations: 0.5449 MB / 308.4 MB, free: 9.832 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.465e-06/0.13, allocations: 2.062 kB / 308.4 MB, free: 9.832 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.979e-05/0.13, allocations: 34.64 kB / 308.4 MB, free: 9.828 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001144/0.1302, allocations: 71.41 kB / 308.5 MB, free: 9.801 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.137e-05/0.1302, allocations: 3.391 kB / 308.5 MB, free: 9.801 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0002063/0.1304, allocations: 0.6175 MB / 309.1 MB, free: 9.238 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.352e-06/0.1304, allocations: 3.75 kB / 309.1 MB, free: 9.238 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003401/0.1307, allocations: 413.8 kB / 309.5 MB, free: 8.984 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.152e-05/0.1308, allocations: 27.98 kB / 309.5 MB, free: 8.973 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.119e-05/0.1308, allocations: 7.703 kB / 309.5 MB, free: 8.969 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.891e-05/0.1309, allocations: 24.89 kB / 309.5 MB, free: 8.961 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.775e-05/0.1309, allocations: 24.31 kB / 309.6 MB, free: 8.957 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.467e-06/0.131, allocations: 6.938 kB / 309.6 MB, free: 8.957 MB / 282.7 MB Notification: Performance of sorting global known variables: time 7.654e-05/0.131, allocations: 155 kB / 309.7 MB, free: 8.855 MB / 282.7 MB Notification: Performance of sort global known variables: time 7e-08/0.131, allocations: 1.344 kB / 309.7 MB, free: 8.855 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.000207/0.1312, allocations: 62.72 kB / 309.8 MB, free: 8.848 MB / 282.7 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.0005048/0.1317, allocations: 0.9654 MB / 310.8 MB, free: 8.059 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.0003094/0.1321, allocations: 194.3 kB / 310.9 MB, free: 8.012 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 1.583e-06/0.1321, allocations: 0 / 310.9 MB, free: 8.012 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000124/0.1322, allocations: 92.97 kB / 311 MB, free: 7.992 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002516/0.1324, allocations: 36.53 kB / 311.1 MB, free: 7.977 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002037/0.1345, allocations: 2.574 MB / 313.6 MB, free: 6.172 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.367e-05/0.1345, allocations: 132.1 kB / 313.8 MB, free: 6.094 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 5.704e-05/0.1346, allocations: 15.92 kB / 313.8 MB, free: 6.09 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.076e-05/0.1347, allocations: 65.53 kB / 313.9 MB, free: 6.043 MB / 282.7 MB Notification: Performance of SimCode: time 5e-07/0.1347, allocations: 0 / 313.9 MB, free: 6.043 MB / 282.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0179/0.1526, allocations: 5.946 MB / 319.8 MB, free: 4.32 MB / 282.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.57/7.722, allocations: 9.859 kB / 319.8 MB, free: 4.312 MB / 282.7 MB " [Timeout remaining time 652] (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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Mechanics/Rotational/Examples/OneWayClutchDisengaged/OneWayClutchDisengaged.csv","/var/lib/jenkins/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: 9.278280106373131]