Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged.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.001628/0.001628, allocations: 117 kB / 18.49 MB, free: 4.566 MB / 14.72 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.002378/0.002378, allocations: 216.7 kB / 21.46 MB, free: 1.613 MB / 14.72 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 1.445/1.445, allocations: 230.4 MB / 254.7 MB, free: 15.02 MB / 206.1 MB " [Timeout remaining time 178] 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.OneWayClutchDisengaged,fileNamePrefix="Modelica_trunk_Modelica_Mechanics_Rotational_Examples_OneWayClutchDisengaged",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged,fileNamePrefix="Modelica_trunk_Modelica_Mechanics_Rotational_Examples_OneWayClutchDisengaged",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001885/0.001885, allocations: 55.91 kB / 373.7 MB, free: 10.09 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.114/0.1159, allocations: 53.38 MB / 427.1 MB, free: 4.605 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged): time 0.004209/0.1201, allocations: 2.335 MB / 429.4 MB, free: 2.258 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.00154/0.1216, allocations: 0.8607 MB / 430.2 MB, free: 1.391 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001327/0.1217, allocations: 11.94 kB / 430.3 MB, free: 1.379 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000279/0.122, allocations: 51.56 kB / 430.3 MB, free: 1.328 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002965/0.1223, allocations: 107.2 kB / 430.4 MB, free: 1.223 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002502/0.1226, allocations: 83.83 kB / 430.5 MB, free: 1.141 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003648/0.1229, allocations: 271.4 kB / 430.8 MB, free: 0.875 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001636/0.1231, allocations: 48.36 kB / 430.8 MB, free: 0.8242 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002417/0.1233, allocations: 123.6 kB / 430.9 MB, free: 0.7031 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002216/0.1236, allocations: 127.5 kB / 431.1 MB, free: 0.5781 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 3.884e-05/0.1236, allocations: 23.98 kB / 431.1 MB, free: 0.5547 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001775/0.1238, allocations: 79.98 kB / 431.2 MB, free: 488 kB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 9.354e-05/0.1239, allocations: 51.78 kB / 431.2 MB, free: 436 kB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001261/0.124, allocations: 123.4 kB / 431.3 MB, free: 312 kB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004455/0.1244, allocations: 310.8 kB / 431.6 MB, free: 0 / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.258e-06/0.1245, allocations: 0 / 431.6 MB, free: 0 / 350.1 MB Notification: Performance of FrontEnd: time 1.412e-06/0.1245, allocations: 0 / 431.6 MB, free: 0 / 350.1 MB Notification: Performance of Transformations before backend: time 1.108e-05/0.1245, allocations: 0 / 431.6 MB, free: 0 / 350.1 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.1959/0.3203, allocations: 0.5408 MB / 432.2 MB, free: 10.89 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.702e-05/0.3204, allocations: 10.06 kB / 432.2 MB, free: 10.89 MB / 350.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.568e-05/0.3204, allocations: 6.156 kB / 432.2 MB, free: 10.89 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.947e-05/0.3204, allocations: 52.56 kB / 432.2 MB, free: 10.85 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001549/0.3206, allocations: 34.12 kB / 432.3 MB, free: 10.84 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003181/0.3209, allocations: 254.3 kB / 432.5 MB, free: 10.62 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.407e-05/0.3209, allocations: 15.59 kB / 432.5 MB, free: 10.62 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.626e-05/0.321, allocations: 26.2 kB / 432.6 MB, free: 10.62 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003521/0.3213, allocations: 213.2 kB / 432.8 MB, free: 10.56 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.655e-05/0.3213, allocations: 6.031 kB / 432.8 MB, free: 10.56 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.015e-05/0.3214, allocations: 7.812 kB / 432.8 MB, free: 10.56 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.065e-05/0.3214, allocations: 4.156 kB / 432.8 MB, free: 10.56 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003104/0.3217, allocations: 153.9 kB / 432.9 MB, free: 10.56 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008824/0.3226, allocations: 0.7775 MB / 433.7 MB, free: 10.12 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003336/0.3229, allocations: 134.9 kB / 433.8 MB, free: 10.1 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001261/0.323, allocations: 71.41 kB / 433.9 MB, free: 10.09 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.08e-05/0.3231, allocations: 5.156 kB / 433.9 MB, free: 10.09 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.353e-05/0.3231, allocations: 41.06 kB / 434 MB, free: 10.05 MB / 350.1 MB Notification: Performance of pre-optimization done (n=19): time 1.353e-06/0.3231, allocations: 0 / 434 MB, free: 10.05 MB / 350.1 MB Notification: Performance of matching and sorting (n=21): time 0.001622/0.3247, allocations: 0.9865 MB / 434.9 MB, free: 9.461 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 1.904e-05/0.3247, allocations: 57.19 kB / 435 MB, free: 9.398 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001886/0.3249, allocations: 215.9 kB / 435.2 MB, free: 9.293 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.589e-05/0.3249, allocations: 31.45 kB / 435.2 MB, free: 9.262 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.875e-05/0.325, allocations: 141.8 kB / 435.4 MB, free: 9.152 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.192e-05/0.325, allocations: 72.52 kB / 435.5 MB, free: 9.105 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.306e-05/0.3251, allocations: 59.66 kB / 435.5 MB, free: 9.09 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 5.247e-05/0.3251, allocations: 329.4 kB / 435.8 MB, free: 8.777 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001445/0.3253, allocations: 71.83 kB / 435.9 MB, free: 8.777 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000153/0.3254, allocations: 110.9 kB / 436 MB, free: 8.742 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002502/0.3257, allocations: 159.2 kB / 436.2 MB, free: 8.68 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.112e-06/0.3257, allocations: 2.656 kB / 436.2 MB, free: 8.68 MB / 350.1 MB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0004305/0.3261, allocations: 274 kB / 436.4 MB, free: 8.551 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.374e-05/0.3261, allocations: 4.875 kB / 436.4 MB, free: 8.551 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.511e-06/0.3261, allocations: 2.031 kB / 436.4 MB, free: 8.551 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001972/0.3263, allocations: 60.33 kB / 436.5 MB, free: 8.527 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001441/0.3265, allocations: 41.31 kB / 436.5 MB, free: 8.523 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001362/0.3278, allocations: 1.814 MB / 438.4 MB, free: 6.855 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001836/0.328, allocations: 22.67 kB / 438.4 MB, free: 6.852 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.858e-05/0.328, allocations: 13.2 kB / 438.4 MB, free: 6.848 MB / 350.1 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.069e-05/0.3281, allocations: 134.5 kB / 438.5 MB, free: 6.723 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.066e-05/0.3282, allocations: 22.3 kB / 438.5 MB, free: 6.711 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.678e-05/0.3282, allocations: 29.8 kB / 438.6 MB, free: 6.691 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.695e-06/0.3282, allocations: 6.656 kB / 438.6 MB, free: 6.688 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.803e-06/0.3282, allocations: 2.156 kB / 438.6 MB, free: 6.688 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.617e-06/0.3282, allocations: 0.9375 kB / 438.6 MB, free: 6.688 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007527/0.329, allocations: 0.6046 MB / 439.2 MB, free: 6.25 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.965e-06/0.329, allocations: 1.797 kB / 439.2 MB, free: 6.25 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001651/0.3292, allocations: 37.73 kB / 439.2 MB, free: 6.246 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001354/0.3293, allocations: 53.91 kB / 439.3 MB, free: 6.223 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.785e-05/0.3293, allocations: 8.859 kB / 439.3 MB, free: 6.219 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001141/0.3305, allocations: 1.672 MB / 441 MB, free: 4.699 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.994e-06/0.3305, allocations: 3.766 kB / 441 MB, free: 4.699 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005787/0.331, allocations: 421.8 kB / 441.4 MB, free: 4.438 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.537e-05/0.3311, allocations: 114.2 kB / 441.5 MB, free: 4.324 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.166e-05/0.3311, allocations: 6.984 kB / 441.5 MB, free: 4.32 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001878/0.3313, allocations: 24.47 kB / 441.5 MB, free: 4.312 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001593/0.3315, allocations: 70.52 kB / 441.6 MB, free: 4.297 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.531e-05/0.3315, allocations: 10.25 kB / 441.6 MB, free: 4.293 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001342/0.3316, allocations: 157.1 kB / 441.8 MB, free: 4.199 MB / 350.1 MB Notification: Performance of sort global known variables: time 8e-08/0.3316, allocations: 0 / 441.8 MB, free: 4.199 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003869/0.332, allocations: 72.25 kB / 441.8 MB, free: 4.188 MB / 350.1 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.001841/0.3339, allocations: 1.217 MB / 443 MB, free: 3.316 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0005489/0.3344, allocations: 298.2 kB / 443.3 MB, free: 3.145 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.044e-06/0.3344, allocations: 1.25 kB / 443.3 MB, free: 3.145 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002863/0.3347, allocations: 226.3 kB / 443.6 MB, free: 2.992 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004006/0.3351, allocations: 43.78 kB / 443.6 MB, free: 2.973 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003032/0.3381, allocations: 2.667 MB / 446.3 MB, free: 1.062 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001747/0.3383, allocations: 0.7454 MB / 447 MB, free: 372 kB / 350.1 MB Notification: Performance of simCode: alias equations: time 9.26e-05/0.3384, allocations: 29.08 kB / 447 MB, free: 364 kB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.686e-05/0.3385, allocations: 65.89 kB / 447.1 MB, free: 316 kB / 350.1 MB Notification: Performance of SimCode: time 4.01e-07/0.3385, allocations: 0.9688 kB / 447.1 MB, free: 316 kB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03314/0.3716, allocations: 6.606 MB / 453.7 MB, free: 15.2 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.44/11.81, allocations: 6.609 kB / 453.7 MB, free: 15.19 MB / 366.1 MB " [Timeout remaining time 648] (rm -f Modelica_trunk_Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged.pipe ; mkfifo Modelica_trunk_Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged.pipe >> ../files/Modelica_trunk_Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_trunk_Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged_res.mat --tempDir=temp_Modelica_trunk_Modelica_Mechanics_Rotational_Examples_OneWayClutchDisengaged_fmu --startTime=0 --stopTime=2 --stepSize=0.001 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Mechanics_Rotational_Examples_OneWayClutchDisengaged.fmu > Modelica_trunk_Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_trunk_Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Mechanics/Rotational/Examples/OneWayClutchDisengaged/OneWayClutchDisengaged.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_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: 14.3885992509895]