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.0009924/0.0009924, allocations: 83.89 kB / 21.19 MB, free: 3.387 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.0008446/0.0008446, allocations: 141.1 kB / 24.54 MB, free: 36 kB / 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.9818/0.9818, allocations: 173.3 MB / 201.1 MB, free: 9.324 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.353e-06/1.353e-06, allocations: 0 / 268 MB, free: 6.441 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.187e-05/2.323e-05, allocations: 9.344 kB / 268 MB, free: 6.434 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged): time 0.002522/0.002545, allocations: 2.247 MB / 270.2 MB, free: 4.172 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.001119/0.003664, allocations: 0.6816 MB / 270.9 MB, free: 3.484 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001243/0.003788, allocations: 7.938 kB / 270.9 MB, free: 3.477 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.000242/0.00403, allocations: 27.72 kB / 270.9 MB, free: 3.449 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001885/0.004219, allocations: 71.41 kB / 271 MB, free: 3.379 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003941/0.004613, allocations: 107.7 kB / 271.1 MB, free: 3.273 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.000247/0.00486, allocations: 267.4 kB / 271.4 MB, free: 3.012 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000146/0.005006, allocations: 44.56 kB / 271.4 MB, free: 2.965 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001694/0.005175, allocations: 163.6 kB / 271.6 MB, free: 2.805 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001684/0.005343, allocations: 91.75 kB / 271.7 MB, free: 2.715 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 3.102e-05/0.005374, allocations: 20 kB / 271.7 MB, free: 2.695 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001157/0.00549, allocations: 67.94 kB / 271.8 MB, free: 2.629 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 6.089e-05/0.005551, allocations: 47.83 kB / 271.8 MB, free: 2.582 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 6.791e-05/0.005619, allocations: 79.77 kB / 271.9 MB, free: 2.504 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002775/0.005896, allocations: 219.2 kB / 272.1 MB, free: 2.289 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.425e-06/0.005899, allocations: 0 / 272.1 MB, free: 2.289 MB / 250.7 MB Notification: Performance of FrontEnd: time 1.733e-06/0.005901, allocations: 4 kB / 272.1 MB, free: 2.285 MB / 250.7 MB Notification: Performance of Transformations before backend: time 5.721e-06/0.005906, allocations: 0 / 272.1 MB, free: 2.285 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.0006553/0.006562, allocations: 0.5313 MB / 272.6 MB, free: 1.715 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.517e-05/0.006607, allocations: 8.922 kB / 272.6 MB, free: 1.707 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.164e-05/0.006678, allocations: 40.8 kB / 272.7 MB, free: 1.668 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002169/0.006895, allocations: 184.2 kB / 272.9 MB, free: 1.461 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.431e-05/0.00692, allocations: 20.86 kB / 272.9 MB, free: 1.441 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.675e-05/0.006956, allocations: 16.38 kB / 272.9 MB, free: 1.426 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005824/0.007539, allocations: 205.5 kB / 273.1 MB, free: 1.203 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.217e-05/0.007551, allocations: 192 / 273.1 MB, free: 1.203 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.086e-05/0.007572, allocations: 12.38 kB / 273.1 MB, free: 1.191 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.08e-05/0.007583, allocations: 7.938 kB / 273.1 MB, free: 1.184 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001458/0.007728, allocations: 108.7 kB / 273.2 MB, free: 1.078 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007521/0.00848, allocations: 0.7215 MB / 273.9 MB, free: 320 kB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002278/0.008708, allocations: 99.02 kB / 274 MB, free: 208 kB / 250.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.314e-05/0.008771, allocations: 51.59 kB / 274.1 MB, free: 152 kB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.604e-05/0.008797, allocations: 8 kB / 274.1 MB, free: 144 kB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.971e-05/0.008817, allocations: 37.39 kB / 274.1 MB, free: 96 kB / 250.7 MB Notification: Performance of pre-optimization done (n=18): time 1.332e-06/0.008819, allocations: 0 / 274.1 MB, free: 96 kB / 250.7 MB Notification: Performance of matching and sorting (n=20): time 0.001008/0.009827, allocations: 0.6505 MB / 274.8 MB, free: 15.38 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.851e-05/0.009855, allocations: 55.36 kB / 274.8 MB, free: 15.31 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001376/0.009993, allocations: 241.8 kB / 275.1 MB, free: 15.06 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 1.404e-05/0.01001, allocations: 33.7 kB / 275.1 MB, free: 15.02 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.211e-05/0.01008, allocations: 191.1 kB / 275.3 MB, free: 14.83 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.896e-05/0.01012, allocations: 75.41 kB / 275.4 MB, free: 14.75 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.018e-05/0.01018, allocations: 59.31 kB / 275.4 MB, free: 14.69 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001213/0.0103, allocations: 0.504 MB / 275.9 MB, free: 14.17 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.507e-05/0.01036, allocations: 39.97 kB / 276 MB, free: 14.13 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.882e-05/0.01045, allocations: 98.94 kB / 276.1 MB, free: 14.02 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001336/0.01059, allocations: 124.1 kB / 276.2 MB, free: 13.88 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.673e-06/0.01059, allocations: 0 / 276.2 MB, free: 13.88 MB / 266.7 MB Notification: Performance of matching and sorting (n=32) (initialization): time 0.000266/0.01085, allocations: 243.4 kB / 276.4 MB, free: 13.63 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.63e-05/0.01087, allocations: 10.5 kB / 276.4 MB, free: 13.62 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.448e-06/0.01088, allocations: 3.938 kB / 276.4 MB, free: 13.62 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001795/0.01105, allocations: 55.64 kB / 276.5 MB, free: 13.56 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.891e-05/0.01114, allocations: 35.98 kB / 276.5 MB, free: 13.53 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0003831/0.01153, allocations: 0.8585 MB / 277.4 MB, free: 12.64 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.939e-05/0.01161, allocations: 24.08 kB / 277.4 MB, free: 12.61 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.333e-05/0.01162, allocations: 11.94 kB / 277.4 MB, free: 12.6 MB / 266.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 8.585e-05/0.01171, allocations: 168.5 kB / 277.6 MB, free: 12.43 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.648e-05/0.01174, allocations: 27.86 kB / 277.6 MB, free: 12.4 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.357e-05/0.01178, allocations: 25.8 kB / 277.6 MB, free: 12.38 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.607e-06/0.01178, allocations: 4 kB / 277.6 MB, free: 12.37 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.91e-06/0.01178, allocations: 4 kB / 277.6 MB, free: 12.37 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.056e-06/0.01179, allocations: 0 / 277.6 MB, free: 12.37 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004685/0.01226, allocations: 0.5157 MB / 278.2 MB, free: 11.8 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.844e-06/0.01226, allocations: 0 / 278.2 MB, free: 11.8 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.693e-05/0.01234, allocations: 35.97 kB / 278.2 MB, free: 11.76 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.463e-05/0.01244, allocations: 51.66 kB / 278.2 MB, free: 11.71 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.423e-05/0.01245, allocations: 11.98 kB / 278.3 MB, free: 11.7 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0003103/0.01276, allocations: 0.8507 MB / 279.1 MB, free: 10.81 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.71e-07/0.01276, allocations: 4.031 kB / 279.1 MB, free: 10.81 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003122/0.01308, allocations: 405.7 kB / 279.5 MB, free: 10.38 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.482e-05/0.01312, allocations: 27.98 kB / 279.5 MB, free: 10.36 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.223e-05/0.01314, allocations: 11.94 kB / 279.6 MB, free: 10.34 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.483e-05/0.01322, allocations: 15.97 kB / 279.6 MB, free: 10.33 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.483e-05/0.01327, allocations: 23.95 kB / 279.6 MB, free: 10.3 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.887e-06/0.01328, allocations: 11.98 kB / 279.6 MB, free: 10.29 MB / 266.7 MB Notification: Performance of sorting global known variables: time 7.364e-05/0.01336, allocations: 172.7 kB / 279.8 MB, free: 10.12 MB / 266.7 MB Notification: Performance of sort global known variables: time 5e-08/0.01336, allocations: 0 / 279.8 MB, free: 10.12 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.000203/0.01356, allocations: 71.94 kB / 279.8 MB, free: 10.05 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.0001639/0.01372, allocations: 131.1 kB / 280 MB, free: 9.914 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0005371/0.01426, allocations: 156.6 kB / 280.1 MB, free: 9.754 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 1.253e-06/0.01426, allocations: 0 / 280.1 MB, free: 9.754 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 9.795e-05/0.01436, allocations: 82.73 kB / 280.2 MB, free: 9.672 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002519/0.01461, allocations: 59.86 kB / 280.3 MB, free: 9.617 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000909/0.01552, allocations: 0.5597 MB / 280.8 MB, free: 9.02 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.783e-05/0.01557, allocations: 75.98 kB / 280.9 MB, free: 8.926 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 4.698e-05/0.01561, allocations: 17.95 kB / 280.9 MB, free: 8.91 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.97e-05/0.01565, allocations: 20.5 kB / 280.9 MB, free: 8.891 MB / 266.7 MB Notification: Performance of SimCode: time 1.082e-06/0.01566, allocations: 0 / 280.9 MB, free: 8.891 MB / 266.7 MB Notification: Performance of Templates: time 0.004604/0.02026, allocations: 2.908 MB / 283.8 MB, free: 6.027 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: 3.056051889900118]