Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_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) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001216/0.001216, allocations: 113.5 kB / 20.43 MB, free: 1.297 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001348/0.001348, allocations: 188.9 kB / 23.72 MB, free: 4.539 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.397/1.397, allocations: 225.6 MB / 252.5 MB, free: 13.02 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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: "" <> buildModelFMU(Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged,fileNamePrefix="Modelica_4_0_0_Modelica_Mechanics_Rotational_Examples_OneWayClutchDisengaged",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged,fileNamePrefix="Modelica_4_0_0_Modelica_Mechanics_Rotational_Examples_OneWayClutchDisengaged",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001527/0.001527, allocations: 47.92 kB / 370.4 MB, free: 9.871 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2371/0.2386, allocations: 52.19 MB / 422.6 MB, free: 14.61 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged): time 0.003361/0.2419, allocations: 2.239 MB / 424.9 MB, free: 12.36 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001171/0.2431, allocations: 0.6934 MB / 425.6 MB, free: 11.66 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001019/0.2432, allocations: 7.938 kB / 425.6 MB, free: 11.65 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001671/0.2434, allocations: 31.66 kB / 425.6 MB, free: 11.62 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001688/0.2436, allocations: 67.47 kB / 425.7 MB, free: 11.55 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003164/0.2439, allocations: 107.8 kB / 425.8 MB, free: 11.45 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003071/0.2442, allocations: 259.4 kB / 426 MB, free: 11.2 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001345/0.2443, allocations: 44.58 kB / 426.1 MB, free: 11.15 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001674/0.2445, allocations: 115.6 kB / 426.2 MB, free: 11.04 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001919/0.2447, allocations: 111.5 kB / 426.3 MB, free: 10.93 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 3.933e-05/0.2447, allocations: 20 kB / 426.3 MB, free: 10.91 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001373/0.2449, allocations: 87.8 kB / 426.4 MB, free: 10.82 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 6.785e-05/0.2449, allocations: 47.84 kB / 426.4 MB, free: 10.77 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001075/0.245, allocations: 103.5 kB / 426.5 MB, free: 10.67 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003474/0.2454, allocations: 287.3 kB / 426.8 MB, free: 10.39 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.436e-06/0.2454, allocations: 3.938 kB / 426.8 MB, free: 10.39 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.022e-06/0.2454, allocations: 0 / 426.8 MB, free: 10.39 MB / 334.1 MB Notification: Performance of Transformations before backend: time 5.681e-06/0.2454, allocations: 0 / 426.8 MB, free: 10.39 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: 47 * Number of variables: 47 Notification: Performance of Generate backend data structure: time 0.0007761/0.2462, allocations: 461.5 kB / 427.3 MB, free: 9.91 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.713e-05/0.2462, allocations: 8.031 kB / 427.3 MB, free: 9.902 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.711e-05/0.2463, allocations: 54.73 kB / 427.3 MB, free: 9.84 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.909e-05/0.2463, allocations: 24.8 kB / 427.4 MB, free: 9.816 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002876/0.2466, allocations: 178.1 kB / 427.5 MB, free: 9.617 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.842e-05/0.2466, allocations: 12.81 kB / 427.5 MB, free: 9.605 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.384e-05/0.2467, allocations: 20.38 kB / 427.6 MB, free: 9.586 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003891/0.247, allocations: 225.8 kB / 427.8 MB, free: 9.348 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.849e-05/0.2471, allocations: 7.938 kB / 427.8 MB, free: 9.34 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.02e-05/0.2471, allocations: 8 kB / 427.8 MB, free: 9.332 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.803e-06/0.2471, allocations: 4 kB / 427.8 MB, free: 9.328 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000322/0.2474, allocations: 165 kB / 428 MB, free: 9.168 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001104/0.2485, allocations: 0.7266 MB / 428.7 MB, free: 8.387 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003278/0.2488, allocations: 122.5 kB / 428.8 MB, free: 8.258 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001348/0.249, allocations: 68.83 kB / 428.9 MB, free: 8.188 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.736e-05/0.249, allocations: 0 / 428.9 MB, free: 8.188 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.204e-05/0.249, allocations: 30.56 kB / 428.9 MB, free: 8.148 MB / 334.1 MB Notification: Performance of pre-optimization done (n=18): time 1.102e-06/0.249, allocations: 0 / 428.9 MB, free: 8.148 MB / 334.1 MB Notification: Performance of matching and sorting (n=20): time 0.001745/0.2508, allocations: 0.7725 MB / 429.7 MB, free: 7.324 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.019e-05/0.2508, allocations: 55.39 kB / 429.7 MB, free: 7.258 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002207/0.251, allocations: 200.8 kB / 429.9 MB, free: 7.055 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.526e-05/0.251, allocations: 33.7 kB / 430 MB, free: 7.016 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001059/0.2512, allocations: 148.4 kB / 430.1 MB, free: 6.867 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.056e-05/0.2512, allocations: 71.38 kB / 430.2 MB, free: 6.797 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.191e-05/0.2513, allocations: 53.7 kB / 430.2 MB, free: 6.738 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001549/0.2515, allocations: 334.8 kB / 430.6 MB, free: 6.402 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001582/0.2516, allocations: 75.97 kB / 430.6 MB, free: 6.328 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001876/0.2518, allocations: 119.6 kB / 430.8 MB, free: 6.195 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002908/0.2521, allocations: 170.1 kB / 430.9 MB, free: 6.02 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.052e-06/0.2521, allocations: 0 / 430.9 MB, free: 6.02 MB / 334.1 MB Notification: Performance of matching and sorting (n=32) (initialization): time 0.0004825/0.2526, allocations: 284.6 kB / 431.2 MB, free: 5.734 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.382e-05/0.2526, allocations: 4 kB / 431.2 MB, free: 5.73 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.053e-06/0.2526, allocations: 12 kB / 431.2 MB, free: 5.719 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002345/0.2528, allocations: 72.81 kB / 431.3 MB, free: 5.645 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001503/0.253, allocations: 35.97 kB / 431.3 MB, free: 5.609 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0005789/0.2536, allocations: 0.6225 MB / 431.9 MB, free: 4.961 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001859/0.2538, allocations: 32.03 kB / 432 MB, free: 4.93 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.001e-05/0.2538, allocations: 8 kB / 432 MB, free: 4.922 MB / 334.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.0001332/0.2539, allocations: 133.8 kB / 432.1 MB, free: 4.781 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.345e-05/0.2539, allocations: 15.91 kB / 432.1 MB, free: 4.766 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.106e-05/0.254, allocations: 33.73 kB / 432.2 MB, free: 4.734 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.898e-06/0.254, allocations: 7.938 kB / 432.2 MB, free: 4.727 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.147e-06/0.254, allocations: 0 / 432.2 MB, free: 4.727 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.246e-06/0.254, allocations: 0 / 432.2 MB, free: 4.727 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008646/0.2549, allocations: 0.57 MB / 432.7 MB, free: 4.098 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.884e-06/0.2549, allocations: 0 / 432.7 MB, free: 4.098 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001506/0.255, allocations: 27.98 kB / 432.8 MB, free: 4.07 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001703/0.2552, allocations: 76.88 kB / 432.8 MB, free: 3.992 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.596e-05/0.2552, allocations: 4 kB / 432.8 MB, free: 3.988 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.000489/0.2557, allocations: 0.6186 MB / 433.5 MB, free: 3.344 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.476e-06/0.2557, allocations: 4.031 kB / 433.5 MB, free: 3.34 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006104/0.2563, allocations: 413.8 kB / 433.9 MB, free: 2.91 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.513e-05/0.2564, allocations: 32.06 kB / 433.9 MB, free: 2.879 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.689e-05/0.2564, allocations: 8 kB / 433.9 MB, free: 2.871 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001739/0.2566, allocations: 15.97 kB / 433.9 MB, free: 2.855 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.202e-05/0.2567, allocations: 35.94 kB / 434 MB, free: 2.82 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.504e-05/0.2567, allocations: 8 kB / 434 MB, free: 2.812 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0001405/0.2568, allocations: 155.2 kB / 434.1 MB, free: 2.66 MB / 334.1 MB Notification: Performance of sort global known variables: time 8e-08/0.2568, allocations: 0 / 434.1 MB, free: 2.66 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0003204/0.2572, allocations: 56 kB / 434.2 MB, free: 2.605 MB / 334.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.00098/0.2581, allocations: 0.9669 MB / 435.1 MB, free: 1.602 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.000458/0.2586, allocations: 195.8 kB / 435.3 MB, free: 1.41 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 1.954e-06/0.2586, allocations: 0 / 435.3 MB, free: 1.41 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002267/0.2588, allocations: 96.02 kB / 435.4 MB, free: 1.316 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000363/0.2592, allocations: 45.92 kB / 435.5 MB, free: 1.277 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00347/0.2627, allocations: 2.654 MB / 438.1 MB, free: 14.5 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000363/0.263, allocations: 0.744 MB / 438.9 MB, free: 13.73 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 7.164e-05/0.2631, allocations: 13.95 kB / 438.9 MB, free: 13.72 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.412e-05/0.2632, allocations: 67.41 kB / 438.9 MB, free: 13.66 MB / 350.1 MB Notification: Performance of SimCode: time 2.9e-07/0.2632, allocations: 0 / 438.9 MB, free: 13.66 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03616/0.2993, allocations: 5.763 MB / 444.7 MB, free: 8.047 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.19/12.49, allocations: 7.359 kB / 444.7 MB, free: 8.043 MB / 350.1 MB " [Timeout remaining time 647] (rm -f Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged.pipe ; mkfifo Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged.pipe >> ../files/Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Mechanics_Rotational_Examples_OneWayClutchDisengaged_fmu --startTime=0 --stopTime=2 --stepSize=0.001 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Mechanics_Rotational_Examples_OneWayClutchDisengaged.fmu > Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/Rotational/Examples/OneWayClutchDisengaged/OneWayClutchDisengaged.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.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.819819194963202]