Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged.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.0008364/0.0008364, allocations: 79.7 kB / 20.67 MB, free: 3.879 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.0009123/0.0009123, allocations: 170 kB / 23.95 MB, free: 0.6016 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 0.8456/0.8456, allocations: 177.1 MB / 204.3 MB, free: 5.734 MB / 186.7 MB " [Timeout remaining time 179] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+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.OneWayClutchDisengaged,fileNamePrefix="Modelica_4_1_0_Modelica_Mechanics_Rotational_Examples_OneWayClutchDisengaged",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged,fileNamePrefix="Modelica_4_1_0_Modelica_Mechanics_Rotational_Examples_OneWayClutchDisengaged",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.272e-06/1.272e-06, allocations: 0 / 324.5 MB, free: 15.96 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.151e-05/1.278e-05, allocations: 2.281 kB / 324.6 MB, free: 15.95 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged): time 0.002338/0.002351, allocations: 2.252 MB / 326.8 MB, free: 13.69 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0008456/0.003197, allocations: 0.8061 MB / 327.6 MB, free: 12.88 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.361e-05/0.00328, allocations: 7.938 kB / 327.6 MB, free: 12.87 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002121/0.003492, allocations: 51.56 kB / 327.7 MB, free: 12.82 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.000198/0.00369, allocations: 111.2 kB / 327.8 MB, free: 12.71 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001566/0.003847, allocations: 95.69 kB / 327.9 MB, free: 12.61 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002107/0.004058, allocations: 283.1 kB / 328.1 MB, free: 12.34 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001152/0.004173, allocations: 48.5 kB / 328.2 MB, free: 12.29 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001873/0.00436, allocations: 167.6 kB / 328.4 MB, free: 12.13 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001362/0.004496, allocations: 99.75 kB / 328.5 MB, free: 12.03 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 2.515e-05/0.004521, allocations: 20 kB / 328.5 MB, free: 12.01 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 9.946e-05/0.004621, allocations: 87.84 kB / 328.6 MB, free: 11.93 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 5.568e-05/0.004677, allocations: 59.77 kB / 328.6 MB, free: 11.87 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 5.611e-05/0.004733, allocations: 79.8 kB / 328.7 MB, free: 11.79 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002733/0.005006, allocations: 322.9 kB / 329 MB, free: 11.47 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.823e-06/0.005008, allocations: 0 / 329 MB, free: 11.47 MB / 298.7 MB Notification: Performance of FrontEnd: time 9.12e-07/0.005009, allocations: 0 / 329 MB, free: 11.47 MB / 298.7 MB Notification: Performance of Transformations before backend: time 4.278e-06/0.005013, allocations: 0 / 329 MB, free: 11.47 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: 46 * Number of variables: 46 Notification: Performance of Generate backend data structure: time 0.0005503/0.005563, allocations: 480.5 kB / 329.5 MB, free: 10.97 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.423e-05/0.005597, allocations: 12.03 kB / 329.5 MB, free: 10.96 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.072e-05/0.005638, allocations: 54.73 kB / 329.5 MB, free: 10.9 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.369e-05/0.005732, allocations: 32.78 kB / 329.6 MB, free: 10.87 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002181/0.00595, allocations: 189.4 kB / 329.8 MB, free: 10.66 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.688e-05/0.005967, allocations: 12.75 kB / 329.8 MB, free: 10.64 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.015e-05/0.005997, allocations: 24.33 kB / 329.8 MB, free: 10.62 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000251/0.006248, allocations: 214.9 kB / 330 MB, free: 10.4 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.239e-05/0.00626, allocations: 4.188 kB / 330 MB, free: 10.39 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.654e-05/0.006277, allocations: 12.12 kB / 330 MB, free: 10.38 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.881e-06/0.006283, allocations: 8 kB / 330 MB, free: 10.38 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001983/0.006481, allocations: 151.3 kB / 330.2 MB, free: 10.23 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006796/0.007161, allocations: 0.6704 MB / 330.9 MB, free: 9.508 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002486/0.007409, allocations: 138.7 kB / 331 MB, free: 9.363 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.426e-05/0.007494, allocations: 64.84 kB / 331 MB, free: 9.297 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.472e-05/0.007508, allocations: 4.344 kB / 331.1 MB, free: 9.293 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.456e-05/0.007523, allocations: 34.5 kB / 331.1 MB, free: 9.25 MB / 298.7 MB Notification: Performance of pre-optimization done (n=19): time 1.062e-06/0.007524, allocations: 4 kB / 331.1 MB, free: 9.246 MB / 298.7 MB Notification: Performance of matching and sorting (n=21): time 0.00109/0.008614, allocations: 0.7662 MB / 331.9 MB, free: 8.426 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.124e-05/0.008646, allocations: 67.33 kB / 331.9 MB, free: 8.348 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001475/0.008793, allocations: 214.8 kB / 332.1 MB, free: 8.129 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.571e-05/0.008809, allocations: 33.7 kB / 332.2 MB, free: 8.09 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.378e-05/0.008873, allocations: 140.5 kB / 332.3 MB, free: 7.949 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.898e-05/0.008912, allocations: 71.38 kB / 332.4 MB, free: 7.879 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.534e-05/0.008967, allocations: 53.7 kB / 332.4 MB, free: 7.82 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 7.82e-05/0.009045, allocations: 330.8 kB / 332.7 MB, free: 7.488 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.035e-05/0.009135, allocations: 71.91 kB / 332.8 MB, free: 7.418 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001098/0.009245, allocations: 111.4 kB / 332.9 MB, free: 7.297 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001733/0.009419, allocations: 164 kB / 333.1 MB, free: 7.125 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.112e-06/0.00942, allocations: 0 / 333.1 MB, free: 7.125 MB / 298.7 MB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0002841/0.009704, allocations: 262.2 kB / 333.3 MB, free: 6.859 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.112e-05/0.009715, allocations: 7.938 kB / 333.4 MB, free: 6.852 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.037e-06/0.009719, allocations: 4 kB / 333.4 MB, free: 6.848 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001304/0.009849, allocations: 56.83 kB / 333.4 MB, free: 6.789 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.945e-05/0.009929, allocations: 47.97 kB / 333.5 MB, free: 6.742 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001202/0.01113, allocations: 1.696 MB / 335.2 MB, free: 4.93 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.388e-05/0.01122, allocations: 24 kB / 335.2 MB, free: 4.906 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.034e-05/0.01124, allocations: 12.06 kB / 335.2 MB, free: 4.895 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 (25): * Single equations (assignments): 24 * 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 9.105e-05/0.01133, allocations: 140.8 kB / 335.3 MB, free: 4.75 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.918e-05/0.01136, allocations: 19.86 kB / 335.3 MB, free: 4.73 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.836e-05/0.01138, allocations: 29.95 kB / 335.4 MB, free: 4.707 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.934e-06/0.01139, allocations: 3.938 kB / 335.4 MB, free: 4.703 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.333e-06/0.01139, allocations: 0 / 335.4 MB, free: 4.703 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.916e-06/0.01139, allocations: 0 / 335.4 MB, free: 4.703 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005306/0.01192, allocations: 0.5548 MB / 335.9 MB, free: 4.086 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.975e-06/0.01192, allocations: 4 kB / 335.9 MB, free: 4.082 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.772e-05/0.01201, allocations: 31.97 kB / 336 MB, free: 4.051 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.816e-05/0.01211, allocations: 52.83 kB / 336 MB, free: 3.996 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.274e-05/0.01212, allocations: 11.98 kB / 336 MB, free: 3.984 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008995/0.01302, allocations: 1.55 MB / 337.6 MB, free: 2.316 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.12e-07/0.01302, allocations: 0 / 337.6 MB, free: 2.316 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000389/0.01341, allocations: 429.1 kB / 338 MB, free: 1.875 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.814e-05/0.01346, allocations: 35.95 kB / 338 MB, free: 1.84 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.731e-05/0.01348, allocations: 4 kB / 338 MB, free: 1.836 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.642e-05/0.01356, allocations: 23.98 kB / 338.1 MB, free: 1.812 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.348e-05/0.01366, allocations: 79.81 kB / 338.1 MB, free: 1.734 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.997e-06/0.01367, allocations: 8 kB / 338.1 MB, free: 1.727 MB / 298.7 MB Notification: Performance of sorting global known variables: time 9.187e-05/0.01376, allocations: 156.6 kB / 338.3 MB, free: 1.574 MB / 298.7 MB Notification: Performance of sort global known variables: time 5e-08/0.01376, allocations: 3.938 kB / 338.3 MB, free: 1.57 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0002371/0.014, allocations: 71.98 kB / 338.4 MB, free: 1.5 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 (15): * Single equations (assignments): 14 * 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.001099/0.01509, allocations: 1.219 MB / 339.6 MB, free: 412 kB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.000361/0.01545, allocations: 313.5 kB / 339.9 MB, free: 88 kB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 1.272e-06/0.01546, allocations: 0 / 339.9 MB, free: 88 kB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000178/0.01563, allocations: 222.7 kB / 340.1 MB, free: 15.86 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002377/0.01587, allocations: 44.78 kB / 340.2 MB, free: 15.81 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002096/0.01797, allocations: 2.588 MB / 342.8 MB, free: 13.11 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.316e-05/0.01806, allocations: 134.2 kB / 342.9 MB, free: 12.95 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 6.132e-05/0.01812, allocations: 21.95 kB / 342.9 MB, free: 12.93 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.561e-05/0.0182, allocations: 68.47 kB / 343 MB, free: 12.86 MB / 314.7 MB Notification: Performance of SimCode: time 2.81e-07/0.0182, allocations: 0 / 343 MB, free: 12.86 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0207/0.03889, allocations: 7.127 MB / 350.1 MB, free: 5.816 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.426/7.465, allocations: 11.8 kB / 350.1 MB, free: 5.805 MB / 314.7 MB " [Timeout remaining time 652] (rm -f Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged.pipe ; mkfifo Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged.pipe >> ../files/Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged_res.mat --tempDir=temp_Modelica_4_1_0_Modelica_Mechanics_Rotational_Examples_OneWayClutchDisengaged_fmu --startTime=0 --stopTime=2 --stepSize=0.001 --timeout=50 --tolerance=1e-06 Modelica_4_1_0_Modelica_Mechanics_Rotational_Examples_OneWayClutchDisengaged.fmu > Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Mechanics/Rotational/Examples/OneWayClutchDisengaged/OneWayClutchDisengaged.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.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.068427704274654]