Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged,tolerance=1e-06,outputFormat="mat",numberOfIntervals=4000,variableFilter="time|inertiaIn.phi|inertiaIn.w|oneWayClutch.phi_rel|oneWayClutch.w_rel",fileNamePrefix="Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged") translateModel(Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged,tolerance=1e-06,outputFormat="mat",numberOfIntervals=4000,variableFilter="time|inertiaIn.phi|inertiaIn.w|oneWayClutch.phi_rel|oneWayClutch.w_rel",fileNamePrefix="Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001139/0.001145, allocations: 110.5 kB / 17.73 MB, free: 5.363 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001148/0.001148, allocations: 183.1 kB / 18.66 MB, free: 4.445 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.514/1.514, allocations: 205.1 MB / 224.5 MB, free: 12.24 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001202/0.001202, allocations: 55.92 kB / 328.5 MB, free: 3.312 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09784/0.09906, allocations: 46.61 MB / 375.1 MB, free: 4.59 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged): time 0.003356/0.1025, allocations: 2.213 MB / 377.3 MB, free: 2.363 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001369/0.1039, allocations: 0.7252 MB / 378.1 MB, free: 1.629 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001053/0.104, allocations: 8 kB / 378.1 MB, free: 1.621 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001755/0.1042, allocations: 35.66 kB / 378.1 MB, free: 1.586 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001595/0.1044, allocations: 63.47 kB / 378.2 MB, free: 1.523 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000326/0.1047, allocations: 99.75 kB / 378.3 MB, free: 1.426 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002931/0.105, allocations: 267.4 kB / 378.5 MB, free: 1.164 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001716/0.1052, allocations: 68.31 kB / 378.6 MB, free: 1.098 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001531/0.1054, allocations: 111.6 kB / 378.7 MB, free: 0.9883 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001971/0.1056, allocations: 119.5 kB / 378.8 MB, free: 0.8711 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 3.92e-05/0.1056, allocations: 20 kB / 378.8 MB, free: 0.8516 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001482/0.1058, allocations: 71.83 kB / 378.9 MB, free: 0.7812 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 7.106e-05/0.1059, allocations: 51.83 kB / 379 MB, free: 0.7305 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 9.815e-05/0.106, allocations: 111.5 kB / 379.1 MB, free: 0.6211 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003238/0.1063, allocations: 267.1 kB / 379.3 MB, free: 368 kB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.851e-06/0.1063, allocations: 0 / 379.3 MB, free: 368 kB / 318.1 MB Notification: Performance of FrontEnd: time 2.394e-06/0.1063, allocations: 0 / 379.3 MB, free: 368 kB / 318.1 MB Notification: Performance of Transformations before backend: time 8.666e-06/0.1063, allocations: 0 / 379.3 MB, free: 368 kB / 318.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 47 * Number of variables: 47 Notification: Performance of Generate backend data structure: time 0.214/0.3204, allocations: 0.5202 MB / 379.9 MB, free: 13.16 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.315e-05/0.3204, allocations: 8.969 kB / 379.9 MB, free: 13.16 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.273e-05/0.3205, allocations: 24.81 kB / 379.9 MB, free: 13.15 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003457/0.3208, allocations: 237.5 kB / 380.1 MB, free: 12.94 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.148e-05/0.3209, allocations: 11.81 kB / 380.1 MB, free: 12.94 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.356e-05/0.3209, allocations: 23.25 kB / 380.2 MB, free: 12.94 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004288/0.3214, allocations: 224.8 kB / 380.4 MB, free: 12.88 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.793e-05/0.3214, allocations: 1.891 kB / 380.4 MB, free: 12.88 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.443e-05/0.3214, allocations: 9.5 kB / 380.4 MB, free: 12.88 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.544e-06/0.3214, allocations: 5.328 kB / 380.4 MB, free: 12.88 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003492/0.3218, allocations: 167.6 kB / 380.6 MB, free: 12.88 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001012/0.3228, allocations: 0.7759 MB / 381.3 MB, free: 12.43 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003782/0.3232, allocations: 134.8 kB / 381.5 MB, free: 12.41 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001341/0.3234, allocations: 71.52 kB / 381.5 MB, free: 12.4 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.867e-05/0.3234, allocations: 4 kB / 381.5 MB, free: 12.4 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.611e-05/0.3234, allocations: 36.12 kB / 381.6 MB, free: 12.36 MB / 318.1 MB Notification: Performance of pre-optimization done (n=18): time 2.245e-06/0.3234, allocations: 1.375 kB / 381.6 MB, free: 12.36 MB / 318.1 MB Notification: Performance of matching and sorting (n=20): time 0.00186/0.3253, allocations: 0.9847 MB / 382.6 MB, free: 11.73 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.292e-05/0.3253, allocations: 55.11 kB / 382.6 MB, free: 11.67 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002454/0.3256, allocations: 206.5 kB / 382.8 MB, free: 11.54 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 1.993e-05/0.3256, allocations: 30.02 kB / 382.8 MB, free: 11.51 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001261/0.3257, allocations: 143 kB / 383 MB, free: 11.38 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.129e-05/0.3258, allocations: 73.58 kB / 383.1 MB, free: 11.33 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001162/0.326, allocations: 53.94 kB / 383.1 MB, free: 11.29 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 9.238e-05/0.3261, allocations: 337.1 kB / 383.4 MB, free: 10.97 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002101/0.3263, allocations: 77.7 kB / 383.5 MB, free: 10.95 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001953/0.3265, allocations: 118.5 kB / 383.6 MB, free: 10.88 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003333/0.3268, allocations: 173.5 kB / 383.8 MB, free: 10.79 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.707e-06/0.3268, allocations: 3.844 kB / 383.8 MB, free: 10.79 MB / 318.1 MB Notification: Performance of matching and sorting (n=32) (initialization): time 0.0008004/0.3276, allocations: 289.4 kB / 384.1 MB, free: 10.66 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.971e-05/0.3277, allocations: 6.812 kB / 384.1 MB, free: 10.66 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.698e-06/0.3277, allocations: 1.312 kB / 384.1 MB, free: 10.66 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003059/0.328, allocations: 70.45 kB / 384.2 MB, free: 10.63 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002015/0.3282, allocations: 35.91 kB / 384.2 MB, free: 10.63 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004596/0.3287, allocations: 0.6248 MB / 384.8 MB, free: 10.06 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002092/0.3289, allocations: 23.81 kB / 384.8 MB, free: 10.05 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.389e-05/0.329, allocations: 7.266 kB / 384.8 MB, free: 10.05 MB / 318.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 (26): * Single equations (assignments): 25 * 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.0001336/0.3291, allocations: 137.2 kB / 385 MB, free: 9.922 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.211e-05/0.3292, allocations: 21.73 kB / 385 MB, free: 9.91 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.977e-05/0.3292, allocations: 26.52 kB / 385 MB, free: 9.891 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.66e-06/0.3292, allocations: 6.281 kB / 385 MB, free: 9.887 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.117e-05/0.3293, allocations: 5.969 kB / 385 MB, free: 9.883 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.851e-06/0.3293, allocations: 0.7969 kB / 385 MB, free: 9.883 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009124/0.3302, allocations: 0.5959 MB / 385.6 MB, free: 9.449 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.116e-06/0.3302, allocations: 1.438 kB / 385.6 MB, free: 9.449 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001674/0.3304, allocations: 28.09 kB / 385.7 MB, free: 9.449 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001818/0.3306, allocations: 74.62 kB / 385.7 MB, free: 9.422 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.043e-05/0.3306, allocations: 6.859 kB / 385.7 MB, free: 9.418 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0003876/0.331, allocations: 0.617 MB / 386.4 MB, free: 8.852 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.154e-06/0.331, allocations: 1.281 kB / 386.4 MB, free: 8.852 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005931/0.3316, allocations: 417.7 kB / 386.8 MB, free: 8.594 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.343e-05/0.3317, allocations: 113 kB / 386.9 MB, free: 8.48 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.817e-05/0.3317, allocations: 7.062 kB / 386.9 MB, free: 8.477 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001834/0.3319, allocations: 19.69 kB / 386.9 MB, free: 8.473 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.58e-05/0.332, allocations: 27.03 kB / 386.9 MB, free: 8.469 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.36e-05/0.332, allocations: 10.58 kB / 386.9 MB, free: 8.465 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0001307/0.3322, allocations: 151.3 kB / 387.1 MB, free: 8.367 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.21e-07/0.3322, allocations: 3.938 kB / 387.1 MB, free: 8.363 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.000347/0.3325, allocations: 60.88 kB / 387.2 MB, free: 8.359 MB / 318.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 (14): * Single equations (assignments): 13 * 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.0001773/0.3327, allocations: 120.1 kB / 387.3 MB, free: 8.266 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0005078/0.3332, allocations: 207.9 kB / 387.5 MB, free: 8.199 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 2.906e-06/0.3333, allocations: 0 / 387.5 MB, free: 8.199 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002306/0.3335, allocations: 101.2 kB / 387.6 MB, free: 8.172 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003933/0.3339, allocations: 32.78 kB / 387.6 MB, free: 8.16 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001445/0.3353, allocations: 0.6633 MB / 388.3 MB, free: 7.734 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002246/0.3356, allocations: 0.7429 MB / 389 MB, free: 7.031 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 8.941e-05/0.3357, allocations: 24.61 kB / 389 MB, free: 7.023 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.733e-05/0.3357, allocations: 17.86 kB / 389.1 MB, free: 7.016 MB / 318.1 MB Notification: Performance of SimCode: time 3.31e-07/0.3357, allocations: 1.062 kB / 389.1 MB, free: 7.016 MB / 318.1 MB Notification: Performance of Templates: time 0.008662/0.3444, allocations: 3.23 MB / 392.3 MB, free: 6.781 MB / 318.1 MB make -j1 -f Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged.makefile (rm -f Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged.pipe ; mkfifo Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged.pipe >> ../files/Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged.sim & ./Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Mechanics/Rotational/Examples/OneWayClutchDisengaged/OneWayClutchDisengaged.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches