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.001233/0.001233, allocations: 124.4 kB / 17.79 MB, free: 5.266 MB / 14.72 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.001296/0.001296, allocations: 199.3 kB / 20.74 MB, free: 2.32 MB / 14.72 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 1.389/1.389, allocations: 230.6 MB / 254.1 MB, free: 15.08 MB / 206.1 MB " [Timeout remaining time 178] 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 0.001548/0.001548, allocations: 47.92 kB / 373 MB, free: 10.32 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09449/0.09604, allocations: 53.33 MB / 426.3 MB, free: 4.898 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged): time 0.003689/0.09972, allocations: 2.346 MB / 428.6 MB, free: 2.535 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001443/0.1012, allocations: 0.8568 MB / 429.5 MB, free: 1.672 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001039/0.1013, allocations: 4 kB / 429.5 MB, free: 1.668 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002703/0.1015, allocations: 55.56 kB / 429.6 MB, free: 1.613 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002627/0.1018, allocations: 103.2 kB / 429.7 MB, free: 1.512 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002001/0.102, allocations: 83.83 kB / 429.7 MB, free: 1.43 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003357/0.1023, allocations: 279.4 kB / 430 MB, free: 1.156 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001386/0.1025, allocations: 40.39 kB / 430.1 MB, free: 1.113 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002024/0.1027, allocations: 127.5 kB / 430.2 MB, free: 0.9883 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002064/0.1029, allocations: 135.4 kB / 430.3 MB, free: 0.8555 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 3.626e-05/0.1029, allocations: 23.94 kB / 430.3 MB, free: 0.832 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001412/0.1031, allocations: 79.98 kB / 430.4 MB, free: 0.7539 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 8.458e-05/0.1031, allocations: 55.81 kB / 430.5 MB, free: 0.6992 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001107/0.1033, allocations: 115.4 kB / 430.6 MB, free: 0.5859 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004092/0.1037, allocations: 310.8 kB / 430.9 MB, free: 288 kB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.198e-06/0.1037, allocations: 0 / 430.9 MB, free: 288 kB / 350.1 MB Notification: Performance of FrontEnd: time 1.893e-06/0.1037, allocations: 3.938 kB / 430.9 MB, free: 284 kB / 350.1 MB Notification: Performance of Transformations before backend: time 6.963e-06/0.1037, allocations: 0 / 430.9 MB, free: 284 kB / 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.1683/0.272, allocations: 0.548 MB / 431.4 MB, free: 11.13 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.576e-05/0.272, allocations: 9.438 kB / 431.4 MB, free: 11.13 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.179e-05/0.2721, allocations: 52.05 kB / 431.5 MB, free: 11.09 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001688/0.2722, allocations: 34.27 kB / 431.5 MB, free: 11.08 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003184/0.2725, allocations: 242.2 kB / 431.8 MB, free: 10.88 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.336e-05/0.2726, allocations: 16.22 kB / 431.8 MB, free: 10.88 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.114e-05/0.2726, allocations: 27.23 kB / 431.8 MB, free: 10.87 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000349/0.273, allocations: 208 kB / 432 MB, free: 10.82 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.671e-05/0.273, allocations: 8.781 kB / 432 MB, free: 10.82 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.019e-05/0.273, allocations: 9.281 kB / 432 MB, free: 10.82 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.494e-06/0.273, allocations: 5.375 kB / 432 MB, free: 10.82 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003224/0.2733, allocations: 154.2 kB / 432.2 MB, free: 10.82 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008873/0.2742, allocations: 0.7741 MB / 433 MB, free: 10.38 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003478/0.2746, allocations: 138.3 kB / 433.1 MB, free: 10.36 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001291/0.2747, allocations: 70.78 kB / 433.2 MB, free: 10.35 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.146e-05/0.2747, allocations: 6.438 kB / 433.2 MB, free: 10.35 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.421e-05/0.2747, allocations: 33.03 kB / 433.2 MB, free: 10.31 MB / 350.1 MB Notification: Performance of pre-optimization done (n=19): time 1.342e-06/0.2747, allocations: 1.781 kB / 433.2 MB, free: 10.31 MB / 350.1 MB Notification: Performance of matching and sorting (n=21): time 0.001647/0.2764, allocations: 0.9951 MB / 434.2 MB, free: 9.723 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.076e-05/0.2764, allocations: 54.72 kB / 434.2 MB, free: 9.66 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001845/0.2766, allocations: 221.7 kB / 434.5 MB, free: 9.555 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.484e-05/0.2766, allocations: 30.08 kB / 434.5 MB, free: 9.523 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.575e-05/0.2767, allocations: 144.3 kB / 434.6 MB, free: 9.414 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.903e-05/0.2767, allocations: 76.44 kB / 434.7 MB, free: 9.367 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.069e-05/0.2768, allocations: 52.3 kB / 434.8 MB, free: 9.352 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 4.667e-05/0.2768, allocations: 333.5 kB / 435.1 MB, free: 9.039 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001413/0.2769, allocations: 67.91 kB / 435.2 MB, free: 9.039 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001585/0.2771, allocations: 110.2 kB / 435.3 MB, free: 9.004 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002472/0.2774, allocations: 160.5 kB / 435.4 MB, free: 8.941 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.143e-06/0.2774, allocations: 0 / 435.4 MB, free: 8.941 MB / 350.1 MB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0004199/0.2778, allocations: 276.7 kB / 435.7 MB, free: 8.812 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.342e-05/0.2778, allocations: 5.125 kB / 435.7 MB, free: 8.812 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.57e-06/0.2778, allocations: 4.656 kB / 435.7 MB, free: 8.812 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001833/0.278, allocations: 57.67 kB / 435.8 MB, free: 8.789 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001399/0.2781, allocations: 37.2 kB / 435.8 MB, free: 8.789 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001394/0.2795, allocations: 1.817 MB / 437.6 MB, free: 7.121 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001782/0.2797, allocations: 26 kB / 437.6 MB, free: 7.117 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.741e-05/0.2797, allocations: 6.5 kB / 437.6 MB, free: 7.117 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.166e-05/0.2798, allocations: 140.7 kB / 437.8 MB, free: 6.988 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.975e-05/0.2798, allocations: 20.2 kB / 437.8 MB, free: 6.98 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.674e-05/0.2799, allocations: 27.14 kB / 437.8 MB, free: 6.961 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.317e-06/0.2799, allocations: 2.922 kB / 437.8 MB, free: 6.961 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.635e-06/0.2799, allocations: 1.781 kB / 437.8 MB, free: 6.961 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.807e-06/0.2799, allocations: 1.672 kB / 437.8 MB, free: 6.961 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007097/0.2806, allocations: 0.6134 MB / 438.4 MB, free: 6.52 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.064e-06/0.2806, allocations: 0 / 438.4 MB, free: 6.52 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001668/0.2808, allocations: 41.05 kB / 438.5 MB, free: 6.516 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001471/0.2809, allocations: 54.12 kB / 438.5 MB, free: 6.492 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.682e-05/0.2809, allocations: 3.609 kB / 438.5 MB, free: 6.492 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001113/0.2821, allocations: 1.664 MB / 440.2 MB, free: 4.973 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.124e-06/0.2821, allocations: 1.906 kB / 440.2 MB, free: 4.973 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005629/0.2826, allocations: 424.3 kB / 440.6 MB, free: 4.711 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.256e-05/0.2827, allocations: 119 kB / 440.7 MB, free: 4.598 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.967e-05/0.2827, allocations: 5.344 kB / 440.7 MB, free: 4.594 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001825/0.2829, allocations: 22.19 kB / 440.8 MB, free: 4.59 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001332/0.283, allocations: 74.06 kB / 440.8 MB, free: 4.566 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.376e-05/0.2831, allocations: 6.547 kB / 440.8 MB, free: 4.566 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001246/0.2832, allocations: 157.6 kB / 441 MB, free: 4.469 MB / 350.1 MB Notification: Performance of sort global known variables: time 8e-08/0.2832, allocations: 0 / 441 MB, free: 4.469 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003689/0.2836, allocations: 72.09 kB / 441.1 MB, free: 4.457 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.001812/0.2854, allocations: 1.209 MB / 442.3 MB, free: 3.609 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0005179/0.2859, allocations: 302.9 kB / 442.6 MB, free: 3.434 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.693e-06/0.2859, allocations: 0 / 442.6 MB, free: 3.434 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002807/0.2862, allocations: 229.3 kB / 442.8 MB, free: 3.281 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003739/0.2865, allocations: 55.2 kB / 442.8 MB, free: 3.254 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002786/0.2893, allocations: 2.666 MB / 445.5 MB, free: 1.348 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001601/0.2895, allocations: 0.7451 MB / 446.3 MB, free: 0.6445 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 8.247e-05/0.2896, allocations: 27.67 kB / 446.3 MB, free: 0.6328 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.439e-05/0.2897, allocations: 67.58 kB / 446.4 MB, free: 0.5859 MB / 350.1 MB Notification: Performance of SimCode: time 3.11e-07/0.2897, allocations: 1.125 kB / 446.4 MB, free: 0.5859 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 1.037/1.327, allocations: 6.567 MB / 452.9 MB, free: 15.56 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.32/13.64, allocations: 2.125 kB / 452.9 MB, free: 15.56 MB / 366.1 MB " [Timeout remaining time 646] (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/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_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: 16.163503932999447]