Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Mechanics.Rotational.Examples.OneWayClutch.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009304/0.0009304, allocations: 80.34 kB / 20.67 MB, free: 3.891 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0009719/0.0009719, allocations: 156.9 kB / 23.95 MB, free: 0.6133 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 0.8856/0.8856, allocations: 177 MB / 204.1 MB, free: 5.742 MB / 186.7 MB " [Timeout remaining time 179] Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Mechanics.Rotational.Examples.OneWayClutch,fileNamePrefix="Modelica_trunk_Modelica_Mechanics_Rotational_Examples_OneWayClutch",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.Rotational.Examples.OneWayClutch,fileNamePrefix="Modelica_trunk_Modelica_Mechanics_Rotational_Examples_OneWayClutch",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 2.665e-06/2.665e-06, allocations: 0 / 324.5 MB, free: 15.9 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.177e-05/3.443e-05, allocations: 2.281 kB / 324.5 MB, free: 15.9 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.OneWayClutch): time 0.003073/0.003108, allocations: 2.198 MB / 326.7 MB, free: 13.68 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.001155/0.004262, allocations: 0.8334 MB / 327.5 MB, free: 12.84 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001287/0.004391, allocations: 7.938 kB / 327.5 MB, free: 12.84 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002856/0.004677, allocations: 43.66 kB / 327.6 MB, free: 12.79 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002563/0.004933, allocations: 115.1 kB / 327.7 MB, free: 12.68 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002214/0.005154, allocations: 95.67 kB / 327.8 MB, free: 12.59 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003057/0.00546, allocations: 299.3 kB / 328.1 MB, free: 12.29 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001723/0.005632, allocations: 48.22 kB / 328.1 MB, free: 12.25 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000276/0.005908, allocations: 183.5 kB / 328.3 MB, free: 12.07 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001522/0.006061, allocations: 107.8 kB / 328.4 MB, free: 11.96 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 2.947e-05/0.00609, allocations: 20 kB / 328.4 MB, free: 11.94 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001125/0.006202, allocations: 83.89 kB / 328.5 MB, free: 11.86 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 6.883e-05/0.006271, allocations: 55.77 kB / 328.6 MB, free: 11.8 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 7.098e-05/0.006342, allocations: 79.81 kB / 328.6 MB, free: 11.73 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003399/0.006682, allocations: 334.9 kB / 329 MB, free: 11.4 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.369e-06/0.006687, allocations: 0 / 329 MB, free: 11.4 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.794e-06/0.006688, allocations: 0 / 329 MB, free: 11.4 MB / 298.7 MB Notification: Performance of Transformations before backend: time 6.091e-06/0.006694, allocations: 0 / 329 MB, free: 11.4 MB / 298.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 43 * Number of variables: 43 Notification: Performance of Generate backend data structure: time 0.0008735/0.007568, allocations: 0.5219 MB / 329.5 MB, free: 10.84 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.723e-05/0.007625, allocations: 15.98 kB / 329.5 MB, free: 10.82 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.553e-05/0.007671, allocations: 50.73 kB / 329.6 MB, free: 10.77 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000125/0.007796, allocations: 36.78 kB / 329.6 MB, free: 10.73 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002966/0.008092, allocations: 187.4 kB / 329.8 MB, free: 10.52 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.231e-05/0.008115, allocations: 20.36 kB / 329.8 MB, free: 10.5 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.224e-05/0.008147, allocations: 16.38 kB / 329.8 MB, free: 10.48 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003149/0.008462, allocations: 235.5 kB / 330 MB, free: 10.24 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.511e-05/0.008477, allocations: 192 / 330 MB, free: 10.24 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.924e-05/0.008496, allocations: 12.12 kB / 330.1 MB, free: 10.23 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.974e-06/0.008503, allocations: 4 kB / 330.1 MB, free: 10.23 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002681/0.008771, allocations: 175.9 kB / 330.2 MB, free: 10.05 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006782/0.009449, allocations: 0.5737 MB / 330.8 MB, free: 9.434 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003742/0.009824, allocations: 190.3 kB / 331 MB, free: 9.238 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000131/0.009955, allocations: 92.81 kB / 331.1 MB, free: 9.145 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.879e-05/0.009974, allocations: 3.938 kB / 331.1 MB, free: 9.141 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002438/0.01022, allocations: 174.3 kB / 331.3 MB, free: 8.961 MB / 298.7 MB Notification: Performance of pre-optimization done (n=25): time 1.643e-06/0.01022, allocations: 0 / 331.3 MB, free: 8.961 MB / 298.7 MB Notification: Performance of matching and sorting (n=27): time 0.001427/0.01165, allocations: 0.929 MB / 332.2 MB, free: 7.977 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.696e-05/0.01168, allocations: 59.39 kB / 332.2 MB, free: 7.906 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001523/0.01184, allocations: 203.2 kB / 332.4 MB, free: 7.695 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.883e-05/0.01185, allocations: 29.7 kB / 332.5 MB, free: 7.66 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.742e-05/0.01192, allocations: 144.5 kB / 332.6 MB, free: 7.516 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.581e-05/0.01197, allocations: 83.28 kB / 332.7 MB, free: 7.434 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.587e-05/0.01203, allocations: 57.7 kB / 332.7 MB, free: 7.371 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 8.157e-05/0.01212, allocations: 334.8 kB / 333.1 MB, free: 7.035 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001675/0.01228, allocations: 129.6 kB / 333.2 MB, free: 6.902 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001664/0.01245, allocations: 166.2 kB / 333.4 MB, free: 6.723 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002743/0.01272, allocations: 250 kB / 333.6 MB, free: 6.461 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.644e-06/0.01272, allocations: 3.938 kB / 333.6 MB, free: 6.457 MB / 298.7 MB Notification: Performance of matching and sorting (n=38) (initialization): time 0.0004901/0.01321, allocations: 407.5 kB / 334 MB, free: 6.039 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.412e-05/0.01325, allocations: 41.62 kB / 334 MB, free: 5.992 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.392e-06/0.01326, allocations: 4.047 kB / 334.1 MB, free: 5.988 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001734/0.01343, allocations: 56.8 kB / 334.1 MB, free: 5.93 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001117/0.01354, allocations: 47.97 kB / 334.2 MB, free: 5.883 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001288/0.01483, allocations: 1.691 MB / 335.8 MB, free: 4.074 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001401/0.01497, allocations: 31.97 kB / 335.9 MB, free: 4.043 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.863e-05/0.01499, allocations: 19.98 kB / 335.9 MB, free: 4.023 MB / 298.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 (31): * Single equations (assignments): 29 * 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 0.0001149/0.0151, allocations: 141.8 kB / 336 MB, free: 3.875 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.729e-05/0.01513, allocations: 19.86 kB / 336.1 MB, free: 3.855 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.464e-05/0.01516, allocations: 38.58 kB / 336.1 MB, free: 3.816 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.334e-06/0.01517, allocations: 0 / 336.1 MB, free: 3.816 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.817e-06/0.01517, allocations: 0 / 336.1 MB, free: 3.816 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.288e-06/0.01518, allocations: 0 / 336.1 MB, free: 3.816 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006957/0.01587, allocations: 0.6394 MB / 336.7 MB, free: 3.125 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.504e-06/0.01587, allocations: 0 / 336.7 MB, free: 3.125 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001146/0.01599, allocations: 39.97 kB / 336.8 MB, free: 3.086 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001063/0.01609, allocations: 60.75 kB / 336.8 MB, free: 3.023 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.418e-05/0.01611, allocations: 8 kB / 336.8 MB, free: 3.016 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009241/0.01703, allocations: 1.534 MB / 338.4 MB, free: 1.371 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.144e-06/0.01703, allocations: 7.969 kB / 338.4 MB, free: 1.363 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005632/0.0176, allocations: 0.497 MB / 338.9 MB, free: 0.8477 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.325e-05/0.01766, allocations: 39.91 kB / 338.9 MB, free: 0.8086 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.191e-05/0.01768, allocations: 12.06 kB / 338.9 MB, free: 0.7969 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001112/0.01779, allocations: 23.97 kB / 339 MB, free: 0.7734 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000119/0.01791, allocations: 75.86 kB / 339 MB, free: 0.6992 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.553e-05/0.01793, allocations: 11.94 kB / 339 MB, free: 0.6875 MB / 298.7 MB Notification: Performance of sorting global known variables: time 9.891e-05/0.01803, allocations: 151.4 kB / 339.2 MB, free: 0.5391 MB / 298.7 MB Notification: Performance of sort global known variables: time 5.1e-08/0.01803, allocations: 0 / 339.2 MB, free: 0.5391 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0002977/0.01833, allocations: 75.98 kB / 339.3 MB, free: 476 kB / 298.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 (21): * Single equations (assignments): 18 * 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.001372/0.0197, allocations: 1.318 MB / 340.6 MB, free: 15.24 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.000705/0.0204, allocations: 455.7 kB / 341 MB, free: 14.77 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 2.304e-06/0.0204, allocations: 0 / 341 MB, free: 14.77 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002921/0.0207, allocations: 258.5 kB / 341.3 MB, free: 14.5 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003665/0.02106, allocations: 52.97 kB / 341.3 MB, free: 14.45 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002931/0.02399, allocations: 2.865 MB / 344.2 MB, free: 11.44 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001001/0.02409, allocations: 134.2 kB / 344.3 MB, free: 11.3 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 0.0001/0.02419, allocations: 25.94 kB / 344.3 MB, free: 11.27 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.7e-05/0.02429, allocations: 72.42 kB / 344.4 MB, free: 11.2 MB / 314.7 MB Notification: Performance of SimCode: time 1.252e-06/0.02429, allocations: 0 / 344.4 MB, free: 11.2 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02274/0.04703, allocations: 7.806 MB / 352.2 MB, free: 3.453 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.757/7.804, allocations: 7.328 kB / 352.2 MB, free: 3.449 MB / 314.7 MB " [Timeout remaining time 652] (rm -f Modelica_trunk_Modelica.Mechanics.Rotational.Examples.OneWayClutch.pipe ; mkfifo Modelica_trunk_Modelica.Mechanics.Rotational.Examples.OneWayClutch.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Mechanics.Rotational.Examples.OneWayClutch.pipe >> ../files/Modelica_trunk_Modelica.Mechanics.Rotational.Examples.OneWayClutch.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_trunk_Modelica.Mechanics.Rotational.Examples.OneWayClutch_res.mat --tempDir=temp_Modelica_trunk_Modelica_Mechanics_Rotational_Examples_OneWayClutch_fmu --startTime=0 --stopTime=2 --stepSize=0.001 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Mechanics_Rotational_Examples_OneWayClutch.fmu > Modelica_trunk_Modelica.Mechanics.Rotational.Examples.OneWayClutch.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_trunk_Modelica.Mechanics.Rotational.Examples.OneWayClutch_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Mechanics/Rotational/Examples/OneWayClutch/OneWayClutch.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_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.512727923691273]