Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.OneWayClutch.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.0008195/0.0008195, allocations: 87.67 kB / 21.43 MB, free: 3.117 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.004466/0.004466, allocations: 155.3 kB / 24.69 MB, free: 9.426 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.8078/0.8078, allocations: 158.6 MB / 186.5 MB, free: 3.055 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.OneWayClutch,fileNamePrefix="Modelica_3_2_3_Modelica_Mechanics_Rotational_Examples_OneWayClutch",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.Rotational.Examples.OneWayClutch,fileNamePrefix="Modelica_3_2_3_Modelica_Mechanics_Rotational_Examples_OneWayClutch",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.443e-06/1.443e-06, allocations: 0 / 298.4 MB, free: 3.535 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.056e-05/2.2e-05, allocations: 2.281 kB / 298.4 MB, free: 3.531 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.OneWayClutch): time 0.002488/0.00251, allocations: 2.081 MB / 300.5 MB, free: 1.43 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.0009479/0.003458, allocations: 0.702 MB / 301.2 MB, free: 0.7188 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.75e-05/0.003555, allocations: 7.938 kB / 301.2 MB, free: 0.7109 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001742/0.003729, allocations: 31.72 kB / 301.2 MB, free: 0.6797 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001479/0.003877, allocations: 71.41 kB / 301.3 MB, free: 0.6094 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003504/0.004228, allocations: 115.7 kB / 301.4 MB, free: 0.4961 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002542/0.004482, allocations: 287.3 kB / 301.7 MB, free: 220 kB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001204/0.004602, allocations: 48.3 kB / 301.8 MB, free: 176 kB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001824/0.004785, allocations: 163.6 kB / 301.9 MB, free: 12 kB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.1163/0.1211, allocations: 95.16 kB / 302 MB, free: 13.36 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 8.56e-05/0.1212, allocations: 20.84 kB / 302 MB, free: 13.36 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001788/0.1214, allocations: 74.05 kB / 302.1 MB, free: 13.36 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 8.325e-05/0.1214, allocations: 51.42 kB / 302.2 MB, free: 13.36 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 9.519e-05/0.1215, allocations: 78.42 kB / 302.2 MB, free: 13.36 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0004271/0.122, allocations: 301.2 kB / 302.5 MB, free: 13.36 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.969e-06/0.122, allocations: 1.094 kB / 302.5 MB, free: 13.36 MB / 282.7 MB Notification: Performance of FrontEnd: time 2.054e-06/0.122, allocations: 0.5625 kB / 302.5 MB, free: 13.36 MB / 282.7 MB Notification: Performance of Transformations before backend: time 7.233e-06/0.122, allocations: 1 kB / 302.5 MB, free: 13.36 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: 44 * Number of variables: 44 Notification: Performance of Generate backend data structure: time 0.0008141/0.1228, allocations: 0.4957 MB / 303 MB, free: 12.99 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.098e-05/0.1228, allocations: 14.67 kB / 303 MB, free: 12.99 MB / 282.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.266e-05/0.1229, allocations: 51.23 kB / 303.1 MB, free: 12.95 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.366e-05/0.1229, allocations: 25.67 kB / 303.1 MB, free: 12.94 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002914/0.1232, allocations: 183.9 kB / 303.3 MB, free: 12.79 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.058e-05/0.1233, allocations: 15.06 kB / 303.3 MB, free: 12.79 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.934e-05/0.1233, allocations: 21.64 kB / 303.3 MB, free: 12.79 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003605/0.1237, allocations: 228.5 kB / 303.5 MB, free: 12.74 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.421e-05/0.1237, allocations: 4.844 kB / 303.6 MB, free: 12.74 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.646e-05/0.1237, allocations: 7.25 kB / 303.6 MB, free: 12.74 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.235e-06/0.1237, allocations: 8.844 kB / 303.6 MB, free: 12.74 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003053/0.124, allocations: 196.2 kB / 303.8 MB, free: 12.73 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007045/0.1247, allocations: 0.5883 MB / 304.3 MB, free: 12.4 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000404/0.1251, allocations: 187.7 kB / 304.5 MB, free: 12.38 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001423/0.1252, allocations: 96.91 kB / 304.6 MB, free: 12.37 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.001e-05/0.1253, allocations: 6.25 kB / 304.6 MB, free: 12.37 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002623/0.1255, allocations: 163.8 kB / 304.8 MB, free: 12.31 MB / 282.7 MB Notification: Performance of pre-optimization done (n=24): time 1.964e-06/0.1255, allocations: 0.5625 kB / 304.8 MB, free: 12.31 MB / 282.7 MB Notification: Performance of matching and sorting (n=26): time 0.001448/0.127, allocations: 0.9277 MB / 305.7 MB, free: 11.99 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.648e-05/0.127, allocations: 55.77 kB / 305.8 MB, free: 11.93 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001208/0.1271, allocations: 192.2 kB / 306 MB, free: 11.8 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 1.409e-05/0.1271, allocations: 31.92 kB / 306 MB, free: 11.77 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.359e-05/0.1272, allocations: 140.9 kB / 306.1 MB, free: 11.64 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.361e-05/0.1272, allocations: 89.42 kB / 306.2 MB, free: 11.57 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.362e-05/0.1273, allocations: 63.89 kB / 306.3 MB, free: 11.54 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 4.39e-05/0.1274, allocations: 330 kB / 306.6 MB, free: 11.21 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000179/0.1275, allocations: 135.9 kB / 306.7 MB, free: 11.15 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001892/0.1277, allocations: 174.5 kB / 306.9 MB, free: 11.05 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002946/0.128, allocations: 251.9 kB / 307.2 MB, free: 10.92 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.553e-06/0.128, allocations: 0 / 307.2 MB, free: 10.92 MB / 282.7 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0005079/0.1285, allocations: 434 kB / 307.6 MB, free: 10.7 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.036e-05/0.1286, allocations: 37.28 kB / 307.6 MB, free: 10.67 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.102e-06/0.1286, allocations: 3.969 kB / 307.6 MB, free: 10.67 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001971/0.1288, allocations: 69.17 kB / 307.7 MB, free: 10.64 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001241/0.1289, allocations: 53.28 kB / 307.7 MB, free: 10.64 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0002674/0.1292, allocations: 0.611 MB / 308.3 MB, free: 10.08 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000132/0.1293, allocations: 34.98 kB / 308.4 MB, free: 10.07 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.734e-05/0.1293, allocations: 15.16 kB / 308.4 MB, free: 10.07 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: 11 (signalEngagement.count,$PRE.signalEngagement.count,signalEngagement.T_start,$PRE.signalEngagement.T_start,oneWayClutch.free,oneWayClutch.stuck,$PRE.oneWayClutch.stuck,oneWayClutch.locked,oneWayClutch.startForward,$PRE.oneWayClutch.startForward,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (32): * Single equations (assignments): 30 * Array equations: 0 * Algorithm blocks: 1 * 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.949e-05/0.1294, allocations: 142.2 kB / 308.5 MB, free: 9.941 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.004e-05/0.1294, allocations: 26.53 kB / 308.6 MB, free: 9.926 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.476e-05/0.1294, allocations: 32.75 kB / 308.6 MB, free: 9.906 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.843e-06/0.1294, allocations: 1.719 kB / 308.6 MB, free: 9.906 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.791e-06/0.1294, allocations: 4.5 kB / 308.6 MB, free: 9.906 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.719e-06/0.1294, allocations: 1.734 kB / 308.6 MB, free: 9.906 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006326/0.1301, allocations: 0.6207 MB / 309.2 MB, free: 9.512 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.794e-06/0.1301, allocations: 0 / 309.2 MB, free: 9.512 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001185/0.1302, allocations: 46.47 kB / 309.3 MB, free: 9.508 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001169/0.1303, allocations: 68.47 kB / 309.3 MB, free: 9.48 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.595e-05/0.1303, allocations: 7.812 kB / 309.3 MB, free: 9.477 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0002156/0.1305, allocations: 0.6106 MB / 310 MB, free: 8.918 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.062e-06/0.1306, allocations: 0 / 310 MB, free: 8.918 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005671/0.1311, allocations: 0.4996 MB / 310.5 MB, free: 8.66 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.871e-05/0.1312, allocations: 41.3 kB / 310.5 MB, free: 8.637 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.468e-05/0.1312, allocations: 7.094 kB / 310.5 MB, free: 8.633 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001163/0.1313, allocations: 33.06 kB / 310.5 MB, free: 8.625 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.992e-05/0.1314, allocations: 35.97 kB / 310.6 MB, free: 8.617 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.223e-05/0.1314, allocations: 10.12 kB / 310.6 MB, free: 8.617 MB / 282.7 MB Notification: Performance of sorting global known variables: time 6.943e-05/0.1315, allocations: 141.1 kB / 310.7 MB, free: 8.523 MB / 282.7 MB Notification: Performance of sort global known variables: time 6e-08/0.1315, allocations: 0 / 310.7 MB, free: 8.523 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0002233/0.1317, allocations: 69.56 kB / 310.8 MB, free: 8.516 MB / 282.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 4 (inertiaOut.phi,inertiaOut.w,oneWayClutch.phi_rel,oneWayClutch.w_rel) * Number of discrete variables: 7 ($whenCondition1,oneWayClutch.startForward,oneWayClutch.locked,oneWayClutch.stuck,oneWayClutch.free,signalEngagement.T_start,signalEngagement.count) * Number of discrete states: 3 (signalEngagement.count,oneWayClutch.stuck,oneWayClutch.startForward) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (20): * Single equations (assignments): 17 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * 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.0007203/0.1324, allocations: 1.065 MB / 311.8 MB, free: 7.719 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.0004496/0.1329, allocations: 339.9 kB / 312.2 MB, free: 7.562 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 1.533e-06/0.1329, allocations: 0 / 312.2 MB, free: 7.562 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001829/0.133, allocations: 135.7 kB / 312.3 MB, free: 7.527 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002596/0.1333, allocations: 50.03 kB / 312.4 MB, free: 7.508 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002357/0.1357, allocations: 2.863 MB / 315.2 MB, free: 5.516 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.407e-05/0.1357, allocations: 129 kB / 315.3 MB, free: 5.441 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 7.036e-05/0.1358, allocations: 20.34 kB / 315.4 MB, free: 5.438 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.118e-05/0.1359, allocations: 65.64 kB / 315.4 MB, free: 5.391 MB / 282.7 MB Notification: Performance of SimCode: time 5.01e-07/0.1359, allocations: 1.812 kB / 315.4 MB, free: 5.391 MB / 282.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01928/0.1552, allocations: 6.61 MB / 322 MB, free: 3.016 MB / 282.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.572/7.727, allocations: 6.172 kB / 322.1 MB, free: 3.012 MB / 282.7 MB " [Timeout remaining time 652] (rm -f Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.OneWayClutch.pipe ; mkfifo Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.OneWayClutch.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.OneWayClutch.pipe >> ../files/Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.OneWayClutch.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.OneWayClutch_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Mechanics_Rotational_Examples_OneWayClutch_fmu --startTime=0 --stopTime=2 --stepSize=0.001 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Mechanics_Rotational_Examples_OneWayClutch.fmu > Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.OneWayClutch.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.OneWayClutch_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Mechanics/Rotational/Examples/OneWayClutch/OneWayClutch.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.OneWayClutch.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.229301201179624]