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.001304/0.001304, allocations: 80.62 kB / 22.21 MB, free: 2.293 MB / 18.57 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.001138/0.001138, allocations: 141.4 kB / 25.59 MB, free: 8.918 MB / 18.57 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 0.9445/0.9445, allocations: 173.4 MB / 202.2 MB, free: 8.312 MB / 186.7 MB " [Timeout remaining time 179] 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: translateModel(Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="time|inertiaIn.phi|inertiaIn.w|oneWayClutch.phi_rel|oneWayClutch.w_rel",fileNamePrefix="Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged") translateModel(Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="time|inertiaIn.phi|inertiaIn.w|oneWayClutch.phi_rel|oneWayClutch.w_rel",fileNamePrefix="Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.613e-06/1.613e-06, allocations: 0 / 269.2 MB, free: 9.906 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.465e-05/2.626e-05, allocations: 2.312 kB / 269.2 MB, free: 9.902 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged): time 0.003936/0.003962, allocations: 2.231 MB / 271.4 MB, free: 7.676 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.001383/0.005345, allocations: 0.6636 MB / 272.1 MB, free: 7.012 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001473/0.005492, allocations: 7.938 kB / 272.1 MB, free: 7.004 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002025/0.005694, allocations: 32.31 kB / 272.1 MB, free: 6.973 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002011/0.005895, allocations: 73.94 kB / 272.2 MB, free: 6.902 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004156/0.006311, allocations: 103.7 kB / 272.3 MB, free: 6.801 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003356/0.006647, allocations: 271.4 kB / 272.5 MB, free: 6.535 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001489/0.006796, allocations: 57.27 kB / 272.6 MB, free: 6.477 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002808/0.007076, allocations: 159.7 kB / 272.8 MB, free: 6.32 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002014/0.007278, allocations: 93.03 kB / 272.9 MB, free: 6.23 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 4.003e-05/0.007318, allocations: 20 kB / 272.9 MB, free: 6.211 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001436/0.007461, allocations: 63.95 kB / 272.9 MB, free: 6.148 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 6.902e-05/0.00753, allocations: 51.81 kB / 273 MB, free: 6.098 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002143/0.007745, allocations: 80.77 kB / 273.1 MB, free: 6.02 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003708/0.008116, allocations: 219.2 kB / 273.3 MB, free: 5.805 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.659e-06/0.00812, allocations: 4 kB / 273.3 MB, free: 5.801 MB / 250.7 MB Notification: Performance of FrontEnd: time 1.032e-06/0.008121, allocations: 0 / 273.3 MB, free: 5.801 MB / 250.7 MB Notification: Performance of Transformations before backend: time 7.634e-06/0.008129, allocations: 0 / 273.3 MB, free: 5.801 MB / 250.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.00076/0.008889, allocations: 0.539 MB / 273.8 MB, free: 5.223 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.861e-05/0.008927, allocations: 12.02 kB / 273.8 MB, free: 5.211 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.494e-05/0.009012, allocations: 36.8 kB / 273.9 MB, free: 5.176 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002691/0.009282, allocations: 182.2 kB / 274 MB, free: 4.973 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.948e-05/0.009311, allocations: 16.88 kB / 274.1 MB, free: 4.957 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.114e-05/0.009352, allocations: 24.38 kB / 274.1 MB, free: 4.934 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000295/0.009647, allocations: 189.4 kB / 274.3 MB, free: 4.73 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.475e-05/0.009662, allocations: 192 / 274.3 MB, free: 4.73 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.052e-05/0.009682, allocations: 12.38 kB / 274.3 MB, free: 4.719 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.111e-05/0.009694, allocations: 11.92 kB / 274.3 MB, free: 4.707 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001461/0.00984, allocations: 80.72 kB / 274.4 MB, free: 4.629 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009122/0.01075, allocations: 0.6831 MB / 275.1 MB, free: 3.91 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002538/0.01101, allocations: 110.9 kB / 275.2 MB, free: 3.789 MB / 250.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.95e-05/0.01106, allocations: 31.67 kB / 275.2 MB, free: 3.754 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.919e-05/0.01108, allocations: 12 kB / 275.2 MB, free: 3.742 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.584e-05/0.01111, allocations: 33.39 kB / 275.2 MB, free: 3.699 MB / 250.7 MB Notification: Performance of pre-optimization done (n=18): time 1.413e-06/0.01111, allocations: 0 / 275.2 MB, free: 3.699 MB / 250.7 MB Notification: Performance of matching and sorting (n=20): time 0.001147/0.01226, allocations: 0.5857 MB / 275.8 MB, free: 3.051 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.871e-05/0.01229, allocations: 51.41 kB / 275.9 MB, free: 2.988 MB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001593/0.01245, allocations: 233.8 kB / 276.1 MB, free: 2.742 MB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 2.304e-05/0.01247, allocations: 33.7 kB / 276.1 MB, free: 2.703 MB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001093/0.01258, allocations: 191.1 kB / 276.3 MB, free: 2.512 MB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.063e-05/0.01264, allocations: 75.34 kB / 276.4 MB, free: 2.438 MB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.543e-05/0.01273, allocations: 63.3 kB / 276.5 MB, free: 2.367 MB / 250.7 MB Notification: Performance of setup shared object (initialization): time 0.0003877/0.01311, allocations: 0.5001 MB / 277 MB, free: 1.855 MB / 250.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.751e-05/0.01318, allocations: 35.97 kB / 277 MB, free: 1.82 MB / 250.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.138e-05/0.01327, allocations: 79.45 kB / 277.1 MB, free: 1.723 MB / 250.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001472/0.01342, allocations: 113.9 kB / 277.2 MB, free: 1.598 MB / 250.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.552e-06/0.01342, allocations: 4 kB / 277.2 MB, free: 1.594 MB / 250.7 MB Notification: Performance of matching and sorting (n=32) (initialization): time 0.0003079/0.01373, allocations: 219.3 kB / 277.4 MB, free: 1.371 MB / 250.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.524e-05/0.01374, allocations: 4 kB / 277.4 MB, free: 1.367 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.182e-06/0.01375, allocations: 0 / 277.4 MB, free: 1.367 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001897/0.01394, allocations: 59.67 kB / 277.5 MB, free: 1.305 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000124/0.01406, allocations: 31.98 kB / 277.5 MB, free: 1.273 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004427/0.01451, allocations: 0.8468 MB / 278.3 MB, free: 404 kB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001225/0.01463, allocations: 20.02 kB / 278.4 MB, free: 384 kB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.883e-05/0.01465, allocations: 12 kB / 278.4 MB, free: 372 kB / 250.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 0.0001139/0.01476, allocations: 176.4 kB / 278.5 MB, free: 184 kB / 250.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.3e-05/0.01481, allocations: 19.91 kB / 278.6 MB, free: 164 kB / 250.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.875e-05/0.01486, allocations: 25.81 kB / 278.6 MB, free: 140 kB / 250.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.915e-06/0.01487, allocations: 0 / 278.6 MB, free: 140 kB / 250.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.665e-06/0.01487, allocations: 0 / 278.6 MB, free: 140 kB / 250.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.729e-06/0.01487, allocations: 4 kB / 278.6 MB, free: 136 kB / 250.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006186/0.01549, allocations: 484.7 kB / 279.1 MB, free: 15.61 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.555e-06/0.01549, allocations: 0 / 279.1 MB, free: 15.61 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001277/0.01562, allocations: 31.92 kB / 279.1 MB, free: 15.58 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001391/0.01576, allocations: 55.64 kB / 279.2 MB, free: 15.52 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.324e-05/0.01577, allocations: 3.938 kB / 279.2 MB, free: 15.52 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0004134/0.01619, allocations: 0.8546 MB / 280 MB, free: 14.63 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.044e-06/0.01619, allocations: 4.031 kB / 280 MB, free: 14.63 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004274/0.01662, allocations: 372.5 kB / 280.4 MB, free: 14.24 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.272e-05/0.01669, allocations: 35.83 kB / 280.4 MB, free: 14.2 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.682e-05/0.01673, allocations: 8 kB / 280.4 MB, free: 14.2 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001204/0.01685, allocations: 11.94 kB / 280.4 MB, free: 14.18 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.033e-05/0.01691, allocations: 23.95 kB / 280.5 MB, free: 14.16 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.493e-05/0.01692, allocations: 11.98 kB / 280.5 MB, free: 14.15 MB / 266.7 MB Notification: Performance of sorting global known variables: time 9.019e-05/0.01701, allocations: 168.7 kB / 280.6 MB, free: 13.98 MB / 266.7 MB Notification: Performance of sort global known variables: time 9.1e-08/0.01701, allocations: 4 kB / 280.6 MB, free: 13.98 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0003607/0.01737, allocations: 67.94 kB / 280.7 MB, free: 13.91 MB / 266.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.0001971/0.01757, allocations: 127.1 kB / 280.8 MB, free: 13.78 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.000453/0.01802, allocations: 128.6 kB / 281 MB, free: 13.64 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 4.458e-06/0.01803, allocations: 4 kB / 281 MB, free: 13.64 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001243/0.01815, allocations: 76.61 kB / 281 MB, free: 13.56 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000312/0.01846, allocations: 40.38 kB / 281.1 MB, free: 13.52 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001047/0.01951, allocations: 0.5698 MB / 281.6 MB, free: 12.91 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 6.18e-05/0.01957, allocations: 79.97 kB / 281.7 MB, free: 12.82 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 7.113e-05/0.01964, allocations: 17.95 kB / 281.7 MB, free: 12.8 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001017/0.01975, allocations: 98.19 kB / 281.8 MB, free: 12.7 MB / 266.7 MB Notification: Performance of SimCode: time 1.243e-06/0.01975, allocations: 0 / 281.8 MB, free: 12.7 MB / 266.7 MB Notification: Performance of Templates: time 0.005176/0.02492, allocations: 3.221 MB / 285.1 MB, free: 9.531 MB / 266.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged.makefile [Timeout 660] (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 & ./Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/Rotational/Examples/OneWayClutchDisengaged/OneWayClutchDisengaged.csv","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 2.8135348870418966]