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.001224/0.001224, allocations: 111.1 kB / 20.44 MB, free: 1.176 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.001346/0.001346, allocations: 208.7 kB / 23.73 MB, free: 4.379 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.393/1.393, allocations: 230.6 MB / 257.5 MB, free: 7.805 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.001519/0.001519, allocations: 47.92 kB / 377.7 MB, free: 2.973 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2404/0.242, allocations: 53.37 MB / 431.1 MB, free: 6.645 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged): time 0.003956/0.2459, allocations: 2.232 MB / 433.3 MB, free: 4.402 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001512/0.2474, allocations: 0.8102 MB / 434.1 MB, free: 3.586 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001223/0.2475, allocations: 7.938 kB / 434.1 MB, free: 3.578 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002601/0.2478, allocations: 51.58 kB / 434.2 MB, free: 3.527 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000291/0.2481, allocations: 107.2 kB / 434.3 MB, free: 3.422 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002146/0.2483, allocations: 87.77 kB / 434.4 MB, free: 3.336 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003516/0.2487, allocations: 279.4 kB / 434.6 MB, free: 3.062 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001406/0.2488, allocations: 44.53 kB / 434.7 MB, free: 3.016 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002291/0.249, allocations: 119.6 kB / 434.8 MB, free: 2.898 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002201/0.2493, allocations: 135.5 kB / 434.9 MB, free: 2.766 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 3.852e-05/0.2493, allocations: 20 kB / 434.9 MB, free: 2.746 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001666/0.2495, allocations: 91.89 kB / 435 MB, free: 2.656 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 7.859e-05/0.2495, allocations: 47.84 kB / 435.1 MB, free: 2.609 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001091/0.2496, allocations: 99.58 kB / 435.2 MB, free: 2.512 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004198/0.2501, allocations: 312.5 kB / 435.5 MB, free: 2.207 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.707e-06/0.2501, allocations: 0 / 435.5 MB, free: 2.207 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.323e-06/0.2501, allocations: 0 / 435.5 MB, free: 2.207 MB / 334.1 MB Notification: Performance of Transformations before backend: time 5.961e-06/0.2501, allocations: 0 / 435.5 MB, free: 2.207 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.000859/0.2509, allocations: 493.1 kB / 436 MB, free: 1.691 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.799e-05/0.251, allocations: 8.031 kB / 436 MB, free: 1.684 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.357e-05/0.251, allocations: 54.73 kB / 436 MB, free: 1.621 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001617/0.2512, allocations: 36.78 kB / 436.1 MB, free: 1.586 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003746/0.2516, allocations: 190.1 kB / 436.3 MB, free: 1.375 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.04e-05/0.2516, allocations: 16.75 kB / 436.3 MB, free: 1.359 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.997e-05/0.2517, allocations: 24.33 kB / 436.3 MB, free: 1.336 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004235/0.2521, allocations: 214.5 kB / 436.5 MB, free: 1.113 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.727e-05/0.2521, allocations: 4 kB / 436.5 MB, free: 1.109 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.654e-05/0.2521, allocations: 12 kB / 436.5 MB, free: 1.098 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.674e-06/0.2521, allocations: 4 kB / 436.5 MB, free: 1.094 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003391/0.2525, allocations: 155.2 kB / 436.7 MB, free: 0.9453 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001149/0.2536, allocations: 0.6741 MB / 437.3 MB, free: 220 kB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003856/0.254, allocations: 134.8 kB / 437.5 MB, free: 76 kB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001381/0.2541, allocations: 72.77 kB / 437.5 MB, free: 0 / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.882e-05/0.2542, allocations: 4.391 kB / 437.6 MB, free: 15.99 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.768e-05/0.2542, allocations: 34.56 kB / 437.6 MB, free: 15.95 MB / 350.1 MB Notification: Performance of pre-optimization done (n=19): time 1.212e-06/0.2542, allocations: 0 / 437.6 MB, free: 15.95 MB / 350.1 MB Notification: Performance of matching and sorting (n=21): time 0.00184/0.256, allocations: 0.7752 MB / 438.4 MB, free: 15.12 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.822e-05/0.2561, allocations: 51.41 kB / 438.4 MB, free: 15.06 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002741/0.2564, allocations: 222.7 kB / 438.6 MB, free: 14.84 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.206e-05/0.2564, allocations: 29.7 kB / 438.7 MB, free: 14.8 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.887e-05/0.2565, allocations: 140.5 kB / 438.8 MB, free: 14.66 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.422e-05/0.2566, allocations: 79.36 kB / 438.9 MB, free: 14.58 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.87e-05/0.2567, allocations: 49.7 kB / 438.9 MB, free: 14.53 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001571/0.2568, allocations: 338.7 kB / 439.3 MB, free: 14.19 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001547/0.257, allocations: 67.97 kB / 439.3 MB, free: 14.12 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000187/0.2572, allocations: 107.4 kB / 439.4 MB, free: 14 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000292/0.2574, allocations: 155.3 kB / 439.6 MB, free: 13.84 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.192e-06/0.2574, allocations: 0 / 439.6 MB, free: 13.84 MB / 350.1 MB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0005059/0.258, allocations: 274.1 kB / 439.8 MB, free: 13.56 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.947e-05/0.258, allocations: 4 kB / 439.8 MB, free: 13.56 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.753e-06/0.258, allocations: 4 kB / 439.9 MB, free: 13.55 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002201/0.2582, allocations: 60.88 kB / 439.9 MB, free: 13.49 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001618/0.2584, allocations: 43.91 kB / 440 MB, free: 13.45 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001923/0.2603, allocations: 1.692 MB / 441.6 MB, free: 11.64 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001984/0.2605, allocations: 28.06 kB / 441.7 MB, free: 11.62 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.105e-05/0.2605, allocations: 12.06 kB / 441.7 MB, free: 11.61 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.0001514/0.2607, allocations: 138 kB / 441.8 MB, free: 11.46 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.928e-05/0.2607, allocations: 23.8 kB / 441.8 MB, free: 11.44 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.586e-05/0.2608, allocations: 29.89 kB / 441.9 MB, free: 11.41 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.657e-06/0.2608, allocations: 4 kB / 441.9 MB, free: 11.4 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.843e-06/0.2608, allocations: 48 / 441.9 MB, free: 11.4 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.779e-06/0.2608, allocations: 3.984 kB / 441.9 MB, free: 11.4 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009077/0.2617, allocations: 0.5471 MB / 442.4 MB, free: 10.79 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.414e-06/0.2617, allocations: 0 / 442.4 MB, free: 10.79 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001735/0.2619, allocations: 35.92 kB / 442.5 MB, free: 10.75 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001567/0.262, allocations: 56.81 kB / 442.5 MB, free: 10.7 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.985e-05/0.262, allocations: 7.938 kB / 442.5 MB, free: 10.69 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001634/0.2637, allocations: 1.554 MB / 444.1 MB, free: 9.02 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.243e-06/0.2637, allocations: 0 / 444.1 MB, free: 9.02 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007149/0.2644, allocations: 427.2 kB / 444.5 MB, free: 8.582 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.592e-05/0.2645, allocations: 35.92 kB / 444.5 MB, free: 8.547 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.646e-05/0.2645, allocations: 7.938 kB / 444.5 MB, free: 8.539 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001944/0.2647, allocations: 28.03 kB / 444.6 MB, free: 8.512 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001532/0.2649, allocations: 67.83 kB / 444.6 MB, free: 8.445 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.888e-05/0.2649, allocations: 11.98 kB / 444.6 MB, free: 8.434 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.000159/0.265, allocations: 152.6 kB / 444.8 MB, free: 8.285 MB / 350.1 MB Notification: Performance of sort global known variables: time 8e-08/0.265, allocations: 0 / 444.8 MB, free: 8.285 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0004094/0.2654, allocations: 68 kB / 444.9 MB, free: 8.219 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.002261/0.2677, allocations: 1.24 MB / 446.1 MB, free: 7.098 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0006482/0.2684, allocations: 314.4 kB / 446.4 MB, free: 6.777 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.963e-06/0.2684, allocations: 0 / 446.4 MB, free: 6.777 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000343/0.2687, allocations: 222.5 kB / 446.6 MB, free: 6.547 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004095/0.2691, allocations: 51.83 kB / 446.7 MB, free: 6.496 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003691/0.2728, allocations: 2.669 MB / 449.3 MB, free: 3.723 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001608/0.273, allocations: 138.2 kB / 449.5 MB, free: 3.562 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 9.7e-05/0.2731, allocations: 21.95 kB / 449.5 MB, free: 3.543 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001162/0.2732, allocations: 67.41 kB / 449.6 MB, free: 3.477 MB / 350.1 MB Notification: Performance of SimCode: time 6.81e-07/0.2732, allocations: 0 / 449.6 MB, free: 3.477 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03885/0.312, allocations: 7.034 MB / 456.6 MB, free: 12.54 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.97/12.28, allocations: 4.062 kB / 456.6 MB, free: 12.53 MB / 366.1 MB " [Timeout remaining time 648] (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: 14.687981461000163]