Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.OneWayClutch.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.001688/0.001688, allocations: 123.4 kB / 17.79 MB, free: 5.246 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.001983/0.001983, allocations: 208.3 kB / 20.75 MB, free: 2.297 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.415/1.415, allocations: 230.6 MB / 254.1 MB, free: 15.07 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.OneWayClutch,fileNamePrefix="Modelica_4_1_0_Modelica_Mechanics_Rotational_Examples_OneWayClutch",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.Rotational.Examples.OneWayClutch,fileNamePrefix="Modelica_4_1_0_Modelica_Mechanics_Rotational_Examples_OneWayClutch",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001509/0.001509, allocations: 51.92 kB / 373 MB, free: 10.19 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09573/0.09724, allocations: 53.32 MB / 426.3 MB, free: 4.777 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.OneWayClutch): time 0.003983/0.1012, allocations: 2.304 MB / 428.6 MB, free: 2.457 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001541/0.1028, allocations: 0.8646 MB / 429.5 MB, free: 1.586 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001435/0.1029, allocations: 7.938 kB / 429.5 MB, free: 1.578 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002415/0.1031, allocations: 47.59 kB / 429.5 MB, free: 1.531 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000314/0.1035, allocations: 111.2 kB / 429.6 MB, free: 1.422 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002561/0.1037, allocations: 83.83 kB / 429.7 MB, free: 1.34 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003761/0.1041, allocations: 291.4 kB / 430 MB, free: 1.055 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001425/0.1042, allocations: 52.31 kB / 430 MB, free: 1 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002622/0.1045, allocations: 127.6 kB / 430.2 MB, free: 0.875 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002307/0.1047, allocations: 135.4 kB / 430.3 MB, free: 0.7422 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 4.538e-05/0.1048, allocations: 23.98 kB / 430.3 MB, free: 0.7188 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001632/0.1049, allocations: 83.91 kB / 430.4 MB, free: 0.6367 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 7.91e-05/0.105, allocations: 51.83 kB / 430.5 MB, free: 0.5859 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002072/0.1052, allocations: 111.5 kB / 430.6 MB, free: 488 kB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004338/0.1057, allocations: 326.7 kB / 430.9 MB, free: 160 kB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.501e-06/0.1057, allocations: 4 kB / 430.9 MB, free: 156 kB / 350.1 MB Notification: Performance of FrontEnd: time 1.643e-06/0.1057, allocations: 0 / 430.9 MB, free: 156 kB / 350.1 MB Notification: Performance of Transformations before backend: time 7.674e-06/0.1057, allocations: 3.938 kB / 430.9 MB, free: 152 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: 43 * Number of variables: 43 Notification: Performance of Generate backend data structure: time 0.1787/0.2844, allocations: 0.5807 MB / 431.5 MB, free: 11.02 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.794e-05/0.2844, allocations: 9.969 kB / 431.5 MB, free: 11.02 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.413e-05/0.2845, allocations: 52.55 kB / 431.5 MB, free: 10.98 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000178/0.2847, allocations: 34.06 kB / 431.6 MB, free: 10.97 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003379/0.285, allocations: 258 kB / 431.8 MB, free: 10.75 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.956e-05/0.285, allocations: 14.38 kB / 431.8 MB, free: 10.75 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.716e-05/0.2851, allocations: 22.73 kB / 431.9 MB, free: 10.75 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004484/0.2855, allocations: 231.9 kB / 432.1 MB, free: 10.7 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.553e-05/0.2855, allocations: 0.9375 kB / 432.1 MB, free: 10.7 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.314e-05/0.2855, allocations: 10.41 kB / 432.1 MB, free: 10.7 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.074e-06/0.2856, allocations: 4.531 kB / 432.1 MB, free: 10.7 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004653/0.286, allocations: 179.9 kB / 432.3 MB, free: 10.7 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008254/0.2868, allocations: 0.6497 MB / 432.9 MB, free: 10.33 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005266/0.2874, allocations: 189.2 kB / 433.1 MB, free: 10.31 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002227/0.2876, allocations: 93.92 kB / 433.2 MB, free: 10.3 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.05e-05/0.2876, allocations: 3.375 kB / 433.2 MB, free: 10.3 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00031/0.2879, allocations: 166 kB / 433.4 MB, free: 10.25 MB / 350.1 MB Notification: Performance of pre-optimization done (n=25): time 1.683e-06/0.2879, allocations: 0 / 433.4 MB, free: 10.25 MB / 350.1 MB Notification: Performance of matching and sorting (n=27): time 0.002153/0.2901, allocations: 1.165 MB / 434.5 MB, free: 9.668 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.273e-05/0.2901, allocations: 57.47 kB / 434.6 MB, free: 9.605 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001714/0.2903, allocations: 199.3 kB / 434.8 MB, free: 9.5 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.201e-05/0.2903, allocations: 34.64 kB / 434.8 MB, free: 9.469 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.762e-05/0.2904, allocations: 135.6 kB / 435 MB, free: 9.371 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.312e-05/0.2904, allocations: 98.05 kB / 435 MB, free: 9.312 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.551e-05/0.2905, allocations: 60.06 kB / 435.1 MB, free: 9.297 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 4.699e-05/0.2905, allocations: 334.8 kB / 435.4 MB, free: 8.984 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002507/0.2908, allocations: 97.14 kB / 435.5 MB, free: 8.977 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002558/0.291, allocations: 149.9 kB / 435.7 MB, free: 8.906 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004385/0.2915, allocations: 233 kB / 435.9 MB, free: 8.781 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.913e-06/0.2915, allocations: 1 kB / 435.9 MB, free: 8.781 MB / 350.1 MB Notification: Performance of matching and sorting (n=38) (initialization): time 0.0007206/0.2922, allocations: 386.4 kB / 436.3 MB, free: 8.605 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.643e-05/0.2922, allocations: 33.94 kB / 436.3 MB, free: 8.574 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.981e-06/0.2922, allocations: 1.469 kB / 436.3 MB, free: 8.574 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000179/0.2924, allocations: 56.98 kB / 436.4 MB, free: 8.551 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002024/0.2926, allocations: 54.28 kB / 436.4 MB, free: 8.543 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001361/0.294, allocations: 1.797 MB / 438.2 MB, free: 6.883 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002578/0.2942, allocations: 31.95 kB / 438.3 MB, free: 6.879 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.406e-05/0.2943, allocations: 12.5 kB / 438.3 MB, free: 6.875 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: 11 (signalEngagement.count,$PRE.signalEngagement.count,signalEngagement.T_start,$PRE.signalEngagement.T_start,oneWayClutch.free,oneWayClutch.stuck,$PRE.oneWayClutch.stuck,oneWayClutch.locked,oneWayClutch.startForward,$PRE.oneWayClutch.startForward,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (31): * Single equations (assignments): 29 * Array equations: 0 * Algorithm blocks: 1 * 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 0.0001066/0.2944, allocations: 153 kB / 438.4 MB, free: 6.738 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.045e-05/0.2944, allocations: 26.86 kB / 438.4 MB, free: 6.723 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.519e-05/0.2945, allocations: 30.22 kB / 438.5 MB, free: 6.699 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.936e-06/0.2945, allocations: 2.469 kB / 438.5 MB, free: 6.699 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.996e-06/0.2945, allocations: 0 / 438.5 MB, free: 6.699 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.871e-06/0.2945, allocations: 3.984 kB / 438.5 MB, free: 6.699 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009901/0.2955, allocations: 0.6896 MB / 439.2 MB, free: 6.254 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.164e-06/0.2955, allocations: 0 / 439.2 MB, free: 6.254 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000215/0.2957, allocations: 39.94 kB / 439.2 MB, free: 6.254 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001326/0.2958, allocations: 57.61 kB / 439.3 MB, free: 6.227 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.154e-05/0.2958, allocations: 8.953 kB / 439.3 MB, free: 6.223 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001108/0.2969, allocations: 1.65 MB / 440.9 MB, free: 4.715 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.133e-06/0.2969, allocations: 4.062 kB / 440.9 MB, free: 4.711 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009077/0.2979, allocations: 0.5008 MB / 441.4 MB, free: 4.441 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.378e-05/0.2979, allocations: 122.3 kB / 441.5 MB, free: 4.32 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.721e-05/0.298, allocations: 14.89 kB / 441.6 MB, free: 4.309 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002388/0.2982, allocations: 25.91 kB / 441.6 MB, free: 4.309 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000157/0.2984, allocations: 75.16 kB / 441.7 MB, free: 4.293 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.124e-05/0.2984, allocations: 15.78 kB / 441.7 MB, free: 4.289 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001117/0.2985, allocations: 144.9 kB / 441.8 MB, free: 4.195 MB / 350.1 MB Notification: Performance of sort global known variables: time 1e-07/0.2985, allocations: 0 / 441.8 MB, free: 4.195 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.000397/0.2989, allocations: 77.08 kB / 441.9 MB, free: 4.184 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 4 (inertiaOut.phi,inertiaOut.w,oneWayClutch.phi_rel,oneWayClutch.w_rel) * Number of discrete variables: 7 ($whenCondition1,oneWayClutch.startForward,oneWayClutch.locked,oneWayClutch.stuck,oneWayClutch.free,signalEngagement.T_start,signalEngagement.count) * Number of discrete states: 3 (signalEngagement.count,oneWayClutch.stuck,oneWayClutch.startForward) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (21): * Single equations (assignments): 18 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * 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.002176/0.3011, allocations: 1.299 MB / 443.2 MB, free: 3.32 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0007664/0.3018, allocations: 435.1 kB / 443.6 MB, free: 3.059 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.923e-06/0.3018, allocations: 0 / 443.6 MB, free: 3.059 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003893/0.3022, allocations: 258 kB / 443.9 MB, free: 2.902 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003828/0.3026, allocations: 48.47 kB / 443.9 MB, free: 2.883 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003658/0.3063, allocations: 2.832 MB / 446.7 MB, free: 0.9375 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001696/0.3064, allocations: 0.7472 MB / 447.5 MB, free: 240 kB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001085/0.3066, allocations: 30.34 kB / 447.5 MB, free: 232 kB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001097/0.3067, allocations: 71.84 kB / 447.6 MB, free: 180 kB / 350.1 MB Notification: Performance of SimCode: time 4.51e-07/0.3067, allocations: 0 / 447.6 MB, free: 180 kB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.7284/1.035, allocations: 7.19 MB / 454.8 MB, free: 14.48 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.04/14.07, allocations: 7.891 kB / 454.8 MB, free: 14.48 MB / 366.1 MB " [Timeout remaining time 646] (rm -f Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.OneWayClutch.pipe ; mkfifo Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.OneWayClutch.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.OneWayClutch.pipe >> ../files/Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.OneWayClutch.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.OneWayClutch_res.mat --tempDir=temp_Modelica_4_1_0_Modelica_Mechanics_Rotational_Examples_OneWayClutch_fmu --startTime=0 --stopTime=2 --stepSize=0.001 --timeout=50 --tolerance=1e-06 Modelica_4_1_0_Modelica_Mechanics_Rotational_Examples_OneWayClutch.fmu > Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.OneWayClutch.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.OneWayClutch_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Mechanics/Rotational/Examples/OneWayClutch/OneWayClutch.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.OneWayClutch.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.519486153963953]