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.0009793/0.0009793, allocations: 80.34 kB / 20.67 MB, free: 3.891 MB / 18.57 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.001133/0.001133, allocations: 156.9 kB / 23.95 MB, free: 0.6133 MB / 18.57 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 0.9052/0.9052, allocations: 177 MB / 204.1 MB, free: 5.754 MB / 186.7 MB " [Timeout remaining time 179] 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 1.312e-06/1.312e-06, allocations: 0 / 324.5 MB, free: 15.91 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.408e-05/1.539e-05, allocations: 3.266 kB / 324.5 MB, free: 15.91 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged): time 0.002638/0.002654, allocations: 2.246 MB / 326.7 MB, free: 13.64 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0008947/0.003548, allocations: 0.8139 MB / 327.6 MB, free: 12.82 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.976e-05/0.003638, allocations: 0 / 327.6 MB, free: 12.82 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002207/0.003859, allocations: 51.56 kB / 327.6 MB, free: 12.77 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002132/0.004072, allocations: 123.1 kB / 327.7 MB, free: 12.65 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.000155/0.004227, allocations: 79.77 kB / 327.8 MB, free: 12.57 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002237/0.004451, allocations: 291.2 kB / 328.1 MB, free: 12.29 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001238/0.004575, allocations: 48.52 kB / 328.1 MB, free: 12.24 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001964/0.004771, allocations: 167.6 kB / 328.3 MB, free: 12.08 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001398/0.004911, allocations: 103.7 kB / 328.4 MB, free: 11.98 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 2.808e-05/0.004939, allocations: 20 kB / 328.4 MB, free: 11.96 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001003/0.005039, allocations: 79.8 kB / 328.5 MB, free: 11.88 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 5.838e-05/0.005097, allocations: 55.81 kB / 328.6 MB, free: 11.82 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 6.037e-05/0.005158, allocations: 87.81 kB / 328.6 MB, free: 11.74 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002868/0.005445, allocations: 315 kB / 328.9 MB, free: 11.43 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.364e-06/0.005447, allocations: 0 / 328.9 MB, free: 11.43 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.082e-06/0.005448, allocations: 0 / 328.9 MB, free: 11.43 MB / 298.7 MB Notification: Performance of Transformations before backend: time 5.621e-06/0.005454, allocations: 4 kB / 329 MB, free: 11.43 MB / 298.7 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.0005622/0.006016, allocations: 481.2 kB / 329.4 MB, free: 10.92 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.773e-05/0.006054, allocations: 11.98 kB / 329.4 MB, free: 10.91 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.18e-05/0.006095, allocations: 50.73 kB / 329.5 MB, free: 10.85 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001052/0.006201, allocations: 40.78 kB / 329.5 MB, free: 10.81 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002565/0.006457, allocations: 181.4 kB / 329.7 MB, free: 10.61 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.284e-05/0.00648, allocations: 16.75 kB / 329.7 MB, free: 10.59 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.26e-05/0.006513, allocations: 24.33 kB / 329.7 MB, free: 10.57 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002696/0.006782, allocations: 215 kB / 330 MB, free: 10.35 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.371e-05/0.006796, allocations: 192 / 330 MB, free: 10.35 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.822e-05/0.006814, allocations: 16.06 kB / 330 MB, free: 10.33 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.231e-06/0.00682, allocations: 4 kB / 330 MB, free: 10.33 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000209/0.007029, allocations: 159.2 kB / 330.1 MB, free: 10.18 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008265/0.007856, allocations: 0.6665 MB / 330.8 MB, free: 9.457 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002763/0.008132, allocations: 146.6 kB / 330.9 MB, free: 9.305 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.454e-05/0.008217, allocations: 64.83 kB / 331 MB, free: 9.238 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.764e-05/0.008234, allocations: 352 / 331 MB, free: 9.238 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.173e-05/0.008256, allocations: 42.55 kB / 331 MB, free: 9.188 MB / 298.7 MB Notification: Performance of pre-optimization done (n=19): time 9.42e-07/0.008257, allocations: 0 / 331 MB, free: 9.188 MB / 298.7 MB Notification: Performance of matching and sorting (n=21): time 0.001125/0.009382, allocations: 0.7675 MB / 331.8 MB, free: 8.363 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.506e-05/0.009418, allocations: 51.41 kB / 331.9 MB, free: 8.301 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001721/0.00959, allocations: 222.8 kB / 332.1 MB, free: 8.074 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.58e-05/0.009605, allocations: 29.7 kB / 332.1 MB, free: 8.039 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.973e-05/0.009685, allocations: 144.5 kB / 332.2 MB, free: 7.895 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.377e-05/0.009729, allocations: 71.39 kB / 332.3 MB, free: 7.824 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.942e-05/0.009788, allocations: 49.69 kB / 332.4 MB, free: 7.77 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 0.0002955/0.01008, allocations: 330.8 kB / 332.7 MB, free: 7.438 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001017/0.01019, allocations: 71.95 kB / 332.8 MB, free: 7.367 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000125/0.01031, allocations: 103.4 kB / 332.9 MB, free: 7.254 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001942/0.0105, allocations: 163.3 kB / 333 MB, free: 7.082 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.704e-06/0.01051, allocations: 4 kB / 333 MB, free: 7.078 MB / 298.7 MB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0002893/0.0108, allocations: 270.1 kB / 333.3 MB, free: 6.805 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.454e-05/0.01081, allocations: 7.938 kB / 333.3 MB, free: 6.797 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.691e-06/0.01082, allocations: 4 kB / 333.3 MB, free: 6.793 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001621/0.01098, allocations: 60.81 kB / 333.4 MB, free: 6.73 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.124e-05/0.01106, allocations: 35.92 kB / 333.4 MB, free: 6.695 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001247/0.01231, allocations: 1.707 MB / 335.1 MB, free: 4.871 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.351e-05/0.0124, allocations: 23.97 kB / 335.1 MB, free: 4.848 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.27e-05/0.01241, allocations: 12 kB / 335.1 MB, free: 4.836 MB / 298.7 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.009e-05/0.0125, allocations: 137.9 kB / 335.3 MB, free: 4.691 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.891e-05/0.01253, allocations: 23.84 kB / 335.3 MB, free: 4.668 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.786e-05/0.01256, allocations: 25.97 kB / 335.3 MB, free: 4.648 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.836e-06/0.01256, allocations: 7.938 kB / 335.3 MB, free: 4.641 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.014e-06/0.01256, allocations: 3.938 kB / 335.3 MB, free: 4.637 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.168e-06/0.01257, allocations: 7.922 kB / 335.3 MB, free: 4.629 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005235/0.01309, allocations: 0.5425 MB / 335.9 MB, free: 4.027 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.953e-06/0.01309, allocations: 0 / 335.9 MB, free: 4.027 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.232e-05/0.01319, allocations: 47.97 kB / 335.9 MB, free: 3.98 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.831e-05/0.01328, allocations: 48.83 kB / 336 MB, free: 3.93 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.174e-05/0.0133, allocations: 8 kB / 336 MB, free: 3.922 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008809/0.01418, allocations: 1.546 MB / 337.5 MB, free: 2.258 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.272e-06/0.01418, allocations: 4.062 kB / 337.5 MB, free: 2.254 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003882/0.01457, allocations: 425.2 kB / 337.9 MB, free: 1.816 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.967e-05/0.01462, allocations: 31.92 kB / 338 MB, free: 1.785 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.834e-05/0.01463, allocations: 11.94 kB / 338 MB, free: 1.773 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.76e-05/0.01472, allocations: 15.98 kB / 338 MB, free: 1.758 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001051/0.01483, allocations: 75.81 kB / 338.1 MB, free: 1.684 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.847e-06/0.01484, allocations: 4 kB / 338.1 MB, free: 1.68 MB / 298.7 MB Notification: Performance of sorting global known variables: time 9.502e-05/0.01493, allocations: 168.5 kB / 338.2 MB, free: 1.516 MB / 298.7 MB Notification: Performance of sort global known variables: time 7e-08/0.01493, allocations: 0 / 338.2 MB, free: 1.516 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0002402/0.01517, allocations: 68 kB / 338.3 MB, free: 1.449 MB / 298.7 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.001112/0.01628, allocations: 1.213 MB / 339.5 MB, free: 336 kB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0003918/0.01667, allocations: 318.3 kB / 339.8 MB, free: 4 kB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 1.603e-06/0.01668, allocations: 0 / 339.8 MB, free: 4 kB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002556/0.01693, allocations: 222.9 kB / 340.1 MB, free: 15.77 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002721/0.0172, allocations: 43.77 kB / 340.1 MB, free: 15.73 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002383/0.01959, allocations: 2.584 MB / 342.7 MB, free: 13.03 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.932e-05/0.01968, allocations: 134.2 kB / 342.8 MB, free: 12.88 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 6.495e-05/0.01974, allocations: 29.94 kB / 342.8 MB, free: 12.84 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.413e-05/0.01983, allocations: 68.47 kB / 342.9 MB, free: 12.78 MB / 314.7 MB Notification: Performance of SimCode: time 5.01e-07/0.01983, allocations: 0 / 342.9 MB, free: 12.78 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02885/0.04867, allocations: 7.123 MB / 350 MB, free: 5.711 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.54/7.589, allocations: 3.266 kB / 350 MB, free: 5.711 MB / 314.7 MB " [Timeout remaining time 652] (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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Mechanics/Rotational/Examples/OneWayClutchDisengaged/OneWayClutchDisengaged.csv","/var/lib/jenkins/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: 9.304853910580277]