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.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.001546/0.001546, allocations: 107.6 kB / 21.18 MB, free: 452 kB / 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.002451/0.002451, allocations: 215 kB / 24.47 MB, free: 3.777 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.46/1.46, allocations: 207.7 MB / 235.3 MB, free: 9.793 MB / 190.1 MB " [Timeout remaining time 178] 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.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_3_2_3_Modelica_Mechanics_Rotational_Examples_OneWayClutchDisengaged",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged,fileNamePrefix="Modelica_3_2_3_Modelica_Mechanics_Rotational_Examples_OneWayClutchDisengaged",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Modelica requested package Complex of version 3.2.3. Complex 4.1.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.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002059/0.002059, allocations: 52.39 kB / 347.2 MB, free: 9.895 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2514/0.2535, allocations: 49.15 MB / 396.3 MB, free: 9.082 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged): time 0.003599/0.2571, allocations: 2.122 MB / 398.5 MB, free: 7.656 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001149/0.2583, allocations: 0.6967 MB / 399.2 MB, free: 7.18 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000126/0.2584, allocations: 3.188 kB / 399.2 MB, free: 7.18 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002041/0.2586, allocations: 37.78 kB / 399.2 MB, free: 7.156 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001879/0.2588, allocations: 65.42 kB / 399.3 MB, free: 7.113 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003875/0.2592, allocations: 108.8 kB / 399.4 MB, free: 7.059 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003102/0.2595, allocations: 265.3 kB / 399.6 MB, free: 6.93 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001535/0.2596, allocations: 50.56 kB / 399.7 MB, free: 6.906 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001889/0.2598, allocations: 114.4 kB / 399.8 MB, free: 6.855 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001899/0.26, allocations: 107.2 kB / 399.9 MB, free: 6.812 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 3.561e-05/0.26, allocations: 19.34 kB / 399.9 MB, free: 6.812 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000134/0.2602, allocations: 68.38 kB / 400 MB, free: 6.801 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 7.432e-05/0.2602, allocations: 43.66 kB / 400 MB, free: 6.773 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 9.794e-05/0.2603, allocations: 103.3 kB / 400.1 MB, free: 6.715 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003603/0.2607, allocations: 281.5 kB / 400.4 MB, free: 6.605 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.036e-06/0.2607, allocations: 4 kB / 400.4 MB, free: 6.602 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.153e-06/0.2607, allocations: 1.531 kB / 400.4 MB, free: 6.602 MB / 318.1 MB Notification: Performance of Transformations before backend: time 6.462e-06/0.2607, allocations: 0.75 kB / 400.4 MB, free: 6.602 MB / 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.0006703/0.2614, allocations: 452.4 kB / 400.8 MB, free: 6.238 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.321e-05/0.2614, allocations: 12.73 kB / 400.9 MB, free: 6.234 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.681e-05/0.2615, allocations: 54 kB / 400.9 MB, free: 6.184 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.62e-05/0.2615, allocations: 24.17 kB / 400.9 MB, free: 6.172 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002594/0.2618, allocations: 181.7 kB / 401.1 MB, free: 6.004 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.249e-05/0.2618, allocations: 17 kB / 401.1 MB, free: 5.996 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.04e-05/0.2619, allocations: 21.78 kB / 401.1 MB, free: 5.988 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003719/0.2622, allocations: 227.1 kB / 401.4 MB, free: 5.867 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.728e-05/0.2622, allocations: 1.906 kB / 401.4 MB, free: 5.867 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.926e-05/0.2623, allocations: 5.219 kB / 401.4 MB, free: 5.863 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.686e-06/0.2623, allocations: 4.781 kB / 401.4 MB, free: 5.863 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000314/0.2626, allocations: 163.5 kB / 401.5 MB, free: 5.816 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000964/0.2636, allocations: 0.6813 MB / 402.2 MB, free: 5.305 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003225/0.2639, allocations: 133.9 kB / 402.3 MB, free: 5.238 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001213/0.264, allocations: 62.83 kB / 402.4 MB, free: 5.211 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.894e-05/0.264, allocations: 5.516 kB / 402.4 MB, free: 5.211 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.292e-05/0.264, allocations: 36.06 kB / 402.5 MB, free: 5.168 MB / 318.1 MB Notification: Performance of pre-optimization done (n=18): time 1.303e-06/0.264, allocations: 3.938 kB / 402.5 MB, free: 5.164 MB / 318.1 MB Notification: Performance of matching and sorting (n=20): time 0.001652/0.2657, allocations: 0.7537 MB / 403.2 MB, free: 4.707 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.181e-05/0.2657, allocations: 54.22 kB / 403.3 MB, free: 4.645 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001841/0.2659, allocations: 214.1 kB / 403.5 MB, free: 4.5 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 1.523e-05/0.2659, allocations: 31.58 kB / 403.5 MB, free: 4.465 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.342e-05/0.266, allocations: 142.7 kB / 403.6 MB, free: 4.34 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.481e-05/0.266, allocations: 78.69 kB / 403.7 MB, free: 4.277 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.444e-05/0.2661, allocations: 54.3 kB / 403.8 MB, free: 4.242 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 4.77e-05/0.2661, allocations: 333.4 kB / 404.1 MB, free: 3.918 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00015/0.2663, allocations: 76 kB / 404.2 MB, free: 3.895 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000155/0.2664, allocations: 117.4 kB / 404.3 MB, free: 3.832 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002455/0.2667, allocations: 172.2 kB / 404.5 MB, free: 3.738 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.144e-06/0.2667, allocations: 1.156 kB / 404.5 MB, free: 3.738 MB / 318.1 MB Notification: Performance of matching and sorting (n=32) (initialization): time 0.0004311/0.2671, allocations: 287 kB / 404.7 MB, free: 3.605 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.411e-05/0.2671, allocations: 5.844 kB / 404.7 MB, free: 3.605 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.53e-06/0.2671, allocations: 2.125 kB / 404.7 MB, free: 3.605 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002319/0.2674, allocations: 70.41 kB / 404.8 MB, free: 3.578 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001536/0.2675, allocations: 42.58 kB / 404.9 MB, free: 3.57 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0003786/0.2679, allocations: 0.6191 MB / 405.5 MB, free: 3.004 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001986/0.2681, allocations: 25.8 kB / 405.5 MB, free: 2.996 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.818e-05/0.2681, allocations: 7.531 kB / 405.5 MB, free: 2.996 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.0001005/0.2682, allocations: 134.8 kB / 405.6 MB, free: 2.867 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.376e-05/0.2683, allocations: 16.91 kB / 405.7 MB, free: 2.859 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.555e-05/0.2683, allocations: 33.31 kB / 405.7 MB, free: 2.832 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.856e-06/0.2683, allocations: 1.25 kB / 405.7 MB, free: 2.832 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.13e-06/0.2683, allocations: 1.281 kB / 405.7 MB, free: 2.832 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.309e-06/0.2683, allocations: 1.312 kB / 405.7 MB, free: 2.832 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007333/0.2691, allocations: 0.5457 MB / 406.2 MB, free: 2.43 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.477e-06/0.2691, allocations: 1.984 kB / 406.2 MB, free: 2.43 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000165/0.2692, allocations: 32.75 kB / 406.3 MB, free: 2.426 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001642/0.2694, allocations: 69.48 kB / 406.3 MB, free: 2.398 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.861e-05/0.2694, allocations: 8.234 kB / 406.3 MB, free: 2.395 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0003632/0.2698, allocations: 0.6123 MB / 407 MB, free: 1.832 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.196e-06/0.2698, allocations: 10.11 kB / 407 MB, free: 1.824 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006117/0.2704, allocations: 421.7 kB / 407.4 MB, free: 1.559 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.514e-05/0.2705, allocations: 32.62 kB / 407.4 MB, free: 1.543 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.646e-05/0.2705, allocations: 2.641 kB / 407.4 MB, free: 1.543 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001862/0.2707, allocations: 21.42 kB / 407.4 MB, free: 1.539 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.941e-05/0.2708, allocations: 24.52 kB / 407.5 MB, free: 1.535 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.509e-05/0.2708, allocations: 9.234 kB / 407.5 MB, free: 1.531 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0001276/0.2709, allocations: 160.8 kB / 407.6 MB, free: 1.426 MB / 318.1 MB Notification: Performance of sort global known variables: time 8e-08/0.2709, allocations: 0 / 407.6 MB, free: 1.426 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0003761/0.2713, allocations: 59.19 kB / 407.7 MB, free: 1.422 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.0007948/0.2721, allocations: 0.9638 MB / 408.6 MB, free: 0.6211 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0004756/0.2726, allocations: 190.4 kB / 408.8 MB, free: 0.5664 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 3.066e-06/0.2726, allocations: 8.125 kB / 408.8 MB, free: 0.5586 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002204/0.2728, allocations: 93.41 kB / 408.9 MB, free: 0.5352 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004037/0.2732, allocations: 44.17 kB / 409 MB, free: 0.5117 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003774/0.277, allocations: 2.656 MB / 411.6 MB, free: 14.6 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001649/0.2771, allocations: 131.6 kB / 411.8 MB, free: 14.52 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0001014/0.2772, allocations: 19.77 kB / 411.8 MB, free: 14.51 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001075/0.2773, allocations: 64.19 kB / 411.8 MB, free: 14.46 MB / 334.1 MB Notification: Performance of SimCode: time 8.01e-07/0.2773, allocations: 4 kB / 411.8 MB, free: 14.46 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04301/0.3204, allocations: 5.793 MB / 417.6 MB, free: 11.51 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.93/13.26, allocations: 2.125 kB / 417.6 MB, free: 11.51 MB / 334.1 MB " [Timeout remaining time 647] (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 & python3 -m fmpy simulate --output-file Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged_res.csv --start-time 0 --stop-time 2 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.001 Modelica_3_2_3_Modelica_Mechanics_Rotational_Examples_OneWayClutchDisengaged.fmu > Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Mechanics/Rotational/Examples/OneWayClutchDisengaged/OneWayClutchDisengaged.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "Error: Could not read variable inertiaIn.phi in file Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged_res.csv. Warning: Get data of variable inertiaIn.phi from file Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged_res.csv failed! Error: Could not read variable inertiaIn.w in file Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged_res.csv. Warning: Get data of variable inertiaIn.w from file Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged_res.csv failed! " [Timeout remaining time 660] "" Variables in the reference:time,inertiaIn.phi,inertiaIn.w,oneWayClutch.phi_rel,oneWayClutch.w_rel Variables in the result:time,inertiaOut.w,oneWayClutch.phi_rel,oneWayClutch.w_rel,torqueLoad.phi [Calling sys.exit(0), Time elapsed: 15.839542326051742]