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.001301/0.001301, allocations: 112.5 kB / 20.43 MB, free: 1.312 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.001532/0.001532, allocations: 208 kB / 23.74 MB, free: 4.543 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.417/1.417, allocations: 230.5 MB / 257.4 MB, free: 8.012 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="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged,fileNamePrefix="Modelica_trunk_Modelica_Mechanics_Rotational_Examples_OneWayClutchDisengaged",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001986/0.001986, allocations: 71.89 kB / 377.8 MB, free: 3 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2745/0.2765, allocations: 53.4 MB / 431.2 MB, free: 6.676 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged): time 0.004412/0.2809, allocations: 2.357 MB / 433.5 MB, free: 4.309 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001661/0.2826, allocations: 0.8646 MB / 434.4 MB, free: 3.426 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001868/0.2828, allocations: 4 kB / 434.4 MB, free: 3.422 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002733/0.2831, allocations: 51.58 kB / 434.4 MB, free: 3.371 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003591/0.2834, allocations: 111.2 kB / 434.6 MB, free: 3.262 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002604/0.2837, allocations: 83.83 kB / 434.6 MB, free: 3.18 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004233/0.2841, allocations: 279.3 kB / 434.9 MB, free: 2.906 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001742/0.2843, allocations: 48.52 kB / 435 MB, free: 2.855 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003126/0.2846, allocations: 127.5 kB / 435.1 MB, free: 2.73 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002802/0.2849, allocations: 127.5 kB / 435.2 MB, free: 2.605 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 5.246e-05/0.2849, allocations: 28 kB / 435.2 MB, free: 2.578 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001927/0.2851, allocations: 83.97 kB / 435.3 MB, free: 2.496 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 8.224e-05/0.2852, allocations: 55.77 kB / 435.4 MB, free: 2.441 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001426/0.2853, allocations: 111.5 kB / 435.5 MB, free: 2.332 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004898/0.2858, allocations: 307.2 kB / 435.8 MB, free: 2.035 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.202e-06/0.2858, allocations: 7.938 kB / 435.8 MB, free: 2.027 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.753e-06/0.2858, allocations: 0 / 435.8 MB, free: 2.027 MB / 334.1 MB Notification: Performance of Transformations before backend: time 9.047e-06/0.2858, allocations: 0 / 435.8 MB, free: 2.027 MB / 334.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.0009434/0.2868, allocations: 485.2 kB / 436.3 MB, free: 1.52 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.085e-05/0.2868, allocations: 12.03 kB / 436.3 MB, free: 1.508 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.744e-05/0.2869, allocations: 50.73 kB / 436.3 MB, free: 1.449 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001761/0.2871, allocations: 36.78 kB / 436.4 MB, free: 1.414 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004006/0.2875, allocations: 194.9 kB / 436.5 MB, free: 1.199 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.489e-05/0.2875, allocations: 16.75 kB / 436.6 MB, free: 1.184 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.03e-05/0.2875, allocations: 24.33 kB / 436.6 MB, free: 1.16 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004592/0.288, allocations: 222.5 kB / 436.8 MB, free: 0.9297 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.069e-05/0.288, allocations: 4 kB / 436.8 MB, free: 0.9258 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.904e-05/0.288, allocations: 4 kB / 436.8 MB, free: 0.9219 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.083e-06/0.2881, allocations: 4 kB / 436.8 MB, free: 0.918 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003566/0.2884, allocations: 155.3 kB / 437 MB, free: 0.7695 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001239/0.2896, allocations: 0.7209 MB / 437.7 MB, free: 15.99 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003891/0.29, allocations: 138.7 kB / 437.8 MB, free: 15.85 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001507/0.2902, allocations: 64.83 kB / 437.9 MB, free: 15.78 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.161e-05/0.2902, allocations: 0 / 437.9 MB, free: 15.78 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.46e-05/0.2902, allocations: 42.91 kB / 437.9 MB, free: 15.73 MB / 350.1 MB Notification: Performance of pre-optimization done (n=19): time 1.363e-06/0.2902, allocations: 0 / 437.9 MB, free: 15.73 MB / 350.1 MB Notification: Performance of matching and sorting (n=21): time 0.001886/0.2921, allocations: 0.7657 MB / 438.7 MB, free: 14.91 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.336e-05/0.2922, allocations: 55.41 kB / 438.7 MB, free: 14.85 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002739/0.2925, allocations: 218.8 kB / 439 MB, free: 14.62 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.597e-05/0.2925, allocations: 33.7 kB / 439 MB, free: 14.59 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001129/0.2926, allocations: 136.5 kB / 439.1 MB, free: 14.45 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.433e-05/0.2927, allocations: 83.3 kB / 439.2 MB, free: 14.37 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.607e-05/0.2928, allocations: 53.7 kB / 439.3 MB, free: 14.31 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001738/0.2929, allocations: 334.8 kB / 439.6 MB, free: 13.97 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001618/0.2931, allocations: 67.97 kB / 439.7 MB, free: 13.91 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00018/0.2933, allocations: 103.4 kB / 439.8 MB, free: 13.79 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003106/0.2936, allocations: 163.9 kB / 439.9 MB, free: 13.62 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.403e-06/0.2936, allocations: 0 / 439.9 MB, free: 13.62 MB / 350.1 MB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0005125/0.2941, allocations: 278.1 kB / 440.2 MB, free: 13.34 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.866e-05/0.2941, allocations: 6.188 kB / 440.2 MB, free: 13.34 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.522e-06/0.2941, allocations: 0 / 440.2 MB, free: 13.34 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002187/0.2944, allocations: 56.89 kB / 440.3 MB, free: 13.28 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001538/0.2945, allocations: 43.91 kB / 440.3 MB, free: 13.23 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002057/0.2966, allocations: 1.707 MB / 442 MB, free: 11.41 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002088/0.2968, allocations: 24 kB / 442 MB, free: 11.39 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.96e-05/0.2968, allocations: 8 kB / 442 MB, free: 11.38 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 0.0001516/0.2969, allocations: 141.8 kB / 442.2 MB, free: 11.23 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.795e-05/0.297, allocations: 19.91 kB / 442.2 MB, free: 11.21 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.759e-05/0.2971, allocations: 29.95 kB / 442.2 MB, free: 11.18 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.568e-06/0.2971, allocations: 4 kB / 442.2 MB, free: 11.18 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.415e-06/0.2971, allocations: 0 / 442.2 MB, free: 11.18 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.627e-06/0.2971, allocations: 0 / 442.2 MB, free: 11.18 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009736/0.298, allocations: 0.586 MB / 442.8 MB, free: 10.53 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.565e-06/0.298, allocations: 0 / 442.8 MB, free: 10.53 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001724/0.2982, allocations: 31.98 kB / 442.8 MB, free: 10.5 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001632/0.2984, allocations: 56.81 kB / 442.9 MB, free: 10.44 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.301e-05/0.2984, allocations: 15.92 kB / 442.9 MB, free: 10.43 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0017/0.3001, allocations: 1.554 MB / 444.5 MB, free: 8.758 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.656e-06/0.3001, allocations: 8 kB / 444.5 MB, free: 8.75 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007165/0.3008, allocations: 414.3 kB / 444.9 MB, free: 8.32 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.59e-05/0.3009, allocations: 35.95 kB / 444.9 MB, free: 8.285 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.794e-05/0.3009, allocations: 15.94 kB / 444.9 MB, free: 8.27 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001853/0.3011, allocations: 23.97 kB / 445 MB, free: 8.246 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001513/0.3013, allocations: 63.88 kB / 445 MB, free: 8.184 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.326e-05/0.3013, allocations: 15.98 kB / 445 MB, free: 8.168 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001674/0.3015, allocations: 148.6 kB / 445.2 MB, free: 8.023 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.3015, allocations: 4 kB / 445.2 MB, free: 8.02 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0004035/0.3019, allocations: 64 kB / 445.2 MB, free: 7.957 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.002226/0.3041, allocations: 1.217 MB / 446.5 MB, free: 6.824 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0006557/0.3048, allocations: 306.4 kB / 446.8 MB, free: 6.512 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.595e-06/0.3048, allocations: 128 / 446.8 MB, free: 6.512 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003638/0.3051, allocations: 230.4 kB / 447 MB, free: 6.273 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004105/0.3055, allocations: 46.33 kB / 447 MB, free: 6.234 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003837/0.3094, allocations: 2.685 MB / 449.7 MB, free: 3.445 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000413/0.3098, allocations: 0.748 MB / 450.5 MB, free: 2.668 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001023/0.3099, allocations: 25.94 kB / 450.5 MB, free: 2.641 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000117/0.31, allocations: 67.41 kB / 450.6 MB, free: 2.574 MB / 350.1 MB Notification: Performance of SimCode: time 3.81e-07/0.31, allocations: 0 / 450.6 MB, free: 2.574 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04092/0.3509, allocations: 6.777 MB / 457.3 MB, free: 11.86 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.43/12.78, allocations: 5.312 kB / 457.3 MB, free: 11.86 MB / 366.1 MB " [Timeout remaining time 647] (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: 15.174249879084527]