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.0008247/0.0008247, allocations: 76.08 kB / 20.67 MB, free: 3.891 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.001204/0.001204, allocations: 153 kB / 23.93 MB, free: 0.6289 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.8817/0.8817, allocations: 173.4 MB / 200.4 MB, free: 9.434 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: "" <> buildModelFMU(Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged,fileNamePrefix="Modelica_4_0_0_Modelica_Mechanics_Rotational_Examples_OneWayClutchDisengaged",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged,fileNamePrefix="Modelica_4_0_0_Modelica_Mechanics_Rotational_Examples_OneWayClutchDisengaged",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 2.244e-06/2.244e-06, allocations: 7.938 kB / 318.4 MB, free: 6.238 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.819e-05/2.044e-05, allocations: 2.281 kB / 318.4 MB, free: 6.234 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged): time 0.002173/0.002193, allocations: 2.103 MB / 320.5 MB, free: 4.113 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.0009343/0.003128, allocations: 0.6621 MB / 321.2 MB, free: 3.445 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001068/0.003234, allocations: 7.938 kB / 321.2 MB, free: 3.438 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001851/0.00342, allocations: 31.66 kB / 321.2 MB, free: 3.406 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001428/0.003562, allocations: 79.34 kB / 321.3 MB, free: 3.328 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.000286/0.003848, allocations: 107.7 kB / 321.4 MB, free: 3.223 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002061/0.004055, allocations: 271.3 kB / 321.7 MB, free: 2.957 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001158/0.00417, allocations: 44.56 kB / 321.7 MB, free: 2.91 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001524/0.004323, allocations: 159.6 kB / 321.9 MB, free: 2.754 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001391/0.004462, allocations: 91.77 kB / 322 MB, free: 2.664 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 2.632e-05/0.004488, allocations: 16 kB / 322 MB, free: 2.648 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 9.284e-05/0.004581, allocations: 75.94 kB / 322 MB, free: 2.574 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 7.511e-05/0.004656, allocations: 51.81 kB / 322.1 MB, free: 2.523 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 5.631e-05/0.004712, allocations: 75.77 kB / 322.2 MB, free: 2.449 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.00027/0.004982, allocations: 299 kB / 322.5 MB, free: 2.156 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.465e-06/0.004985, allocations: 0 / 322.5 MB, free: 2.156 MB / 282.7 MB Notification: Performance of FrontEnd: time 1.373e-06/0.004986, allocations: 0 / 322.5 MB, free: 2.156 MB / 282.7 MB Notification: Performance of Transformations before backend: time 4.909e-06/0.004991, allocations: 0 / 322.5 MB, free: 2.156 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.0005692/0.00556, allocations: 453 kB / 322.9 MB, free: 1.688 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.663e-05/0.005597, allocations: 8.922 kB / 322.9 MB, free: 1.68 MB / 282.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.261e-05/0.00564, allocations: 62.73 kB / 323 MB, free: 1.609 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.556e-05/0.005675, allocations: 24.8 kB / 323 MB, free: 1.586 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002211/0.005896, allocations: 174.1 kB / 323.2 MB, free: 1.391 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.825e-05/0.005914, allocations: 20.81 kB / 323.2 MB, free: 1.371 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.951e-05/0.005944, allocations: 20.38 kB / 323.2 MB, free: 1.352 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002777/0.006222, allocations: 223.1 kB / 323.4 MB, free: 1.117 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.145e-05/0.006233, allocations: 192 / 323.4 MB, free: 1.117 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.679e-05/0.00625, allocations: 12.12 kB / 323.4 MB, free: 1.105 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.661e-06/0.006256, allocations: 4 kB / 323.4 MB, free: 1.102 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000205/0.006461, allocations: 165 kB / 323.6 MB, free: 0.9414 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000716/0.007177, allocations: 0.6761 MB / 324.3 MB, free: 220 kB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002411/0.007418, allocations: 126.5 kB / 324.4 MB, free: 84 kB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.896e-05/0.007497, allocations: 64.83 kB / 324.5 MB, free: 16 kB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.57e-05/0.007512, allocations: 4 kB / 324.5 MB, free: 12 kB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.706e-05/0.007539, allocations: 34.56 kB / 324.5 MB, free: 15.97 MB / 298.7 MB Notification: Performance of pre-optimization done (n=18): time 1.342e-06/0.007541, allocations: 0 / 324.5 MB, free: 15.97 MB / 298.7 MB Notification: Performance of matching and sorting (n=20): time 0.001107/0.008648, allocations: 0.759 MB / 325.3 MB, free: 15.16 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.733e-05/0.008675, allocations: 51.41 kB / 325.3 MB, free: 15.09 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001338/0.008809, allocations: 211.8 kB / 325.5 MB, free: 14.88 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.618e-05/0.008825, allocations: 37.7 kB / 325.6 MB, free: 14.84 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.853e-05/0.008894, allocations: 144.3 kB / 325.7 MB, free: 14.69 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.901e-05/0.008933, allocations: 75.41 kB / 325.8 MB, free: 14.62 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.622e-05/0.008989, allocations: 53.66 kB / 325.8 MB, free: 14.56 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 7.92e-05/0.009068, allocations: 334.8 kB / 326.2 MB, free: 14.22 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.732e-05/0.009166, allocations: 75.97 kB / 326.2 MB, free: 14.15 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001128/0.009278, allocations: 115.6 kB / 326.3 MB, free: 14.02 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001789/0.009457, allocations: 176.7 kB / 326.5 MB, free: 13.84 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.094e-06/0.009459, allocations: 3.984 kB / 326.5 MB, free: 13.83 MB / 298.7 MB Notification: Performance of matching and sorting (n=32) (initialization): time 0.0002909/0.00975, allocations: 284.6 kB / 326.8 MB, free: 13.55 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.31e-05/0.009763, allocations: 4 kB / 326.8 MB, free: 13.54 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.16e-06/0.009769, allocations: 0 / 326.8 MB, free: 13.54 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001815/0.00995, allocations: 68.81 kB / 326.9 MB, free: 13.47 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.687e-05/0.01004, allocations: 43.92 kB / 326.9 MB, free: 13.43 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0003414/0.01038, allocations: 0.6188 MB / 327.5 MB, free: 12.79 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.065e-05/0.01047, allocations: 20.02 kB / 327.5 MB, free: 12.77 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.138e-05/0.01048, allocations: 8 kB / 327.6 MB, free: 12.76 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: 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.783e-05/0.01057, allocations: 144.1 kB / 327.7 MB, free: 12.61 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.364e-05/0.01059, allocations: 19.86 kB / 327.7 MB, free: 12.59 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.758e-05/0.01063, allocations: 21.81 kB / 327.7 MB, free: 12.57 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.936e-06/0.01063, allocations: 4 kB / 327.7 MB, free: 12.57 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.599e-06/0.01064, allocations: 4.062 kB / 327.7 MB, free: 12.56 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.28e-06/0.01064, allocations: 7.922 kB / 327.8 MB, free: 12.55 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005324/0.01117, allocations: 0.5467 MB / 328.3 MB, free: 11.95 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.156e-06/0.01118, allocations: 4 kB / 328.3 MB, free: 11.95 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.851e-05/0.01127, allocations: 31.92 kB / 328.3 MB, free: 11.91 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001102/0.01138, allocations: 68.88 kB / 328.4 MB, free: 11.84 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.189e-05/0.01139, allocations: 12.06 kB / 328.4 MB, free: 11.83 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0002831/0.01167, allocations: 0.6148 MB / 329 MB, free: 11.19 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.82e-07/0.01167, allocations: 0 / 329 MB, free: 11.19 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003833/0.01206, allocations: 409.7 kB / 329.4 MB, free: 10.77 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.278e-05/0.01211, allocations: 35.88 kB / 329.5 MB, free: 10.73 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.632e-05/0.01213, allocations: 8 kB / 329.5 MB, free: 10.72 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.737e-05/0.01222, allocations: 24.03 kB / 329.5 MB, free: 10.7 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.719e-05/0.01228, allocations: 31.89 kB / 329.5 MB, free: 10.67 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.945e-06/0.01229, allocations: 7.938 kB / 329.5 MB, free: 10.66 MB / 298.7 MB Notification: Performance of sorting global known variables: time 8.002e-05/0.01237, allocations: 147.2 kB / 329.7 MB, free: 10.52 MB / 298.7 MB Notification: Performance of sort global known variables: time 5e-08/0.01237, allocations: 0 / 329.7 MB, free: 10.52 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0002059/0.01257, allocations: 63.94 kB / 329.7 MB, free: 10.45 MB / 298.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.0006721/0.01325, allocations: 0.9673 MB / 330.7 MB, free: 9.449 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0002979/0.01354, allocations: 195.8 kB / 330.9 MB, free: 9.258 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 1.463e-06/0.01354, allocations: 0 / 330.9 MB, free: 9.258 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001161/0.01366, allocations: 98.77 kB / 331 MB, free: 9.164 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002596/0.01392, allocations: 43.28 kB / 331 MB, free: 9.125 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00223/0.01615, allocations: 2.56 MB / 333.6 MB, free: 6.445 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 7.869e-05/0.01623, allocations: 129.8 kB / 333.7 MB, free: 6.297 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 5.956e-05/0.01629, allocations: 21.94 kB / 333.7 MB, free: 6.277 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.619e-05/0.01635, allocations: 60.47 kB / 333.8 MB, free: 6.219 MB / 298.7 MB Notification: Performance of SimCode: time 4.81e-07/0.01636, allocations: 0 / 333.8 MB, free: 6.219 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02113/0.03749, allocations: 5.953 MB / 339.8 MB, free: 440 kB / 298.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.37/7.408, allocations: 7.969 kB / 339.8 MB, free: 432 kB / 298.7 MB " [Timeout remaining time 653] (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Mechanics_Rotational_Examples_OneWayClutchDisengaged_fmu --startTime=0 --stopTime=2 --stepSize=0.001 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Mechanics_Rotational_Examples_OneWayClutchDisengaged.fmu > Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged.pipe 2>&1) [Timeout 52.5] 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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_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.081718308851123]