Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.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.001521/0.001521, allocations: 103.6 kB / 21.18 MB, free: 332 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.001683/0.001683, allocations: 209.4 kB / 24.47 MB, free: 3.547 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.368/1.368, allocations: 207.7 MB / 235.3 MB, free: 9.801 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.LossyGearDemo3,fileNamePrefix="Modelica_3_2_3_Modelica_Mechanics_Rotational_Examples_LossyGearDemo3",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.Rotational.Examples.LossyGearDemo3,fileNamePrefix="Modelica_3_2_3_Modelica_Mechanics_Rotational_Examples_LossyGearDemo3",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.001717/0.001717, allocations: 56.34 kB / 347.2 MB, free: 9.906 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2393/0.241, allocations: 49.15 MB / 396.3 MB, free: 9.09 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.LossyGearDemo3): time 0.003635/0.2447, allocations: 2.228 MB / 398.6 MB, free: 7.594 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001741/0.2464, allocations: 0.9371 MB / 399.5 MB, free: 6.949 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001392/0.2465, allocations: 7.625 kB / 399.5 MB, free: 6.945 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002178/0.2468, allocations: 43.5 kB / 399.5 MB, free: 6.922 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005091/0.2473, allocations: 128.6 kB / 399.7 MB, free: 6.855 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003742/0.2476, allocations: 188.5 kB / 399.9 MB, free: 6.762 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005133/0.2482, allocations: 415.4 kB / 400.3 MB, free: 6.582 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001599/0.2483, allocations: 44.2 kB / 400.3 MB, free: 6.562 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002563/0.2486, allocations: 191.8 kB / 400.5 MB, free: 6.484 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000355/0.2489, allocations: 211.5 kB / 400.7 MB, free: 6.41 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 7.551e-05/0.249, allocations: 32.94 kB / 400.7 MB, free: 6.41 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002732/0.2493, allocations: 115.8 kB / 400.8 MB, free: 6.387 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001573/0.2494, allocations: 97.12 kB / 400.9 MB, free: 6.332 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001803/0.2496, allocations: 144.5 kB / 401.1 MB, free: 6.25 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006976/0.2503, allocations: 451.6 kB / 401.5 MB, free: 6.086 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.099e-06/0.2503, allocations: 1.031 kB / 401.5 MB, free: 6.086 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.474e-06/0.2503, allocations: 0 / 401.5 MB, free: 6.086 MB / 318.1 MB Notification: Performance of Transformations before backend: time 8.656e-06/0.2503, allocations: 3.938 kB / 401.5 MB, free: 6.082 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: 67 * Number of variables: 67 Notification: Performance of Generate backend data structure: time 0.001132/0.2515, allocations: 0.5625 MB / 402.1 MB, free: 5.668 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.465e-05/0.2515, allocations: 14.45 kB / 402.1 MB, free: 5.664 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.192e-05/0.2516, allocations: 65.64 kB / 402.2 MB, free: 5.605 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003782/0.252, allocations: 49.75 kB / 402.2 MB, free: 5.59 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005215/0.2525, allocations: 246.2 kB / 402.5 MB, free: 5.402 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001422/0.2526, allocations: 141.1 kB / 402.6 MB, free: 5.266 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.587e-05/0.2527, allocations: 31.58 kB / 402.6 MB, free: 5.254 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007287/0.2534, allocations: 406.1 kB / 403 MB, free: 5.047 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.968e-05/0.2534, allocations: 5.047 kB / 403 MB, free: 5.043 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.608e-05/0.2535, allocations: 15.5 kB / 403 MB, free: 5.031 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.419e-05/0.2535, allocations: 6.75 kB / 403 MB, free: 5.031 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000961/0.2545, allocations: 410.4 kB / 403.4 MB, free: 4.93 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002216/0.2567, allocations: 1.108 MB / 404.6 MB, free: 4.223 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007972/0.2575, allocations: 337.2 kB / 404.9 MB, free: 4.098 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004191/0.2579, allocations: 169.8 kB / 405.1 MB, free: 4.035 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.025e-05/0.2579, allocations: 5.672 kB / 405.1 MB, free: 4.035 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.282e-05/0.258, allocations: 37.81 kB / 405.1 MB, free: 3.992 MB / 318.1 MB Notification: Performance of pre-optimization done (n=43): time 2.315e-06/0.258, allocations: 5.469 kB / 405.1 MB, free: 3.988 MB / 318.1 MB Notification: Performance of matching and sorting (n=45): time 0.004663/0.2626, allocations: 1.676 MB / 406.8 MB, free: 3.234 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.681e-05/0.2627, allocations: 86.97 kB / 406.9 MB, free: 3.137 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002773/0.2629, allocations: 244.9 kB / 407.1 MB, free: 2.992 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 3.482e-05/0.263, allocations: 41.58 kB / 407.1 MB, free: 2.949 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.834e-05/0.263, allocations: 141.2 kB / 407.3 MB, free: 2.824 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.811e-05/0.2631, allocations: 155.4 kB / 407.4 MB, free: 2.703 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001307/0.2633, allocations: 81.34 kB / 407.5 MB, free: 2.66 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 6.551e-05/0.2633, allocations: 336.4 kB / 407.8 MB, free: 2.336 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003677/0.2637, allocations: 166.5 kB / 408 MB, free: 2.281 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003973/0.2641, allocations: 256.9 kB / 408.3 MB, free: 2.137 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006453/0.2647, allocations: 345.1 kB / 408.6 MB, free: 1.977 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.593e-06/0.2648, allocations: 1.125 kB / 408.6 MB, free: 1.977 MB / 318.1 MB Notification: Performance of matching and sorting (n=52) (initialization): time 0.001043/0.2658, allocations: 0.5457 MB / 409.1 MB, free: 1.75 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.078e-05/0.2658, allocations: 6.5 kB / 409.1 MB, free: 1.75 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.717e-06/0.2658, allocations: 6.172 kB / 409.1 MB, free: 1.746 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007173/0.2665, allocations: 254.3 kB / 409.4 MB, free: 1.668 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000234/0.2668, allocations: 50.16 kB / 409.4 MB, free: 1.664 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003566/0.2703, allocations: 2.749 MB / 412.2 MB, free: 15.58 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002659/0.2706, allocations: 27.69 kB / 412.2 MB, free: 15.56 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.439e-05/0.2707, allocations: 19.88 kB / 412.2 MB, free: 15.55 MB / 334.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 7 (gear.ideal,gear.mode,$PRE.gear.mode,gear.locked,gear.startBackward,gear.startForward,gear.tau_aPos) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (27): * Single equations (assignments): 26 * 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 {(2,24)} Notification: Performance of prepare postOptimizeDAE: time 0.0002082/0.2709, allocations: 152.4 kB / 412.4 MB, free: 15.41 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.466e-05/0.2709, allocations: 25.36 kB / 412.4 MB, free: 15.4 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.666e-05/0.271, allocations: 38.81 kB / 412.5 MB, free: 15.37 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.619e-06/0.271, allocations: 5.406 kB / 412.5 MB, free: 15.37 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.907e-06/0.271, allocations: 0 / 412.5 MB, free: 15.37 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.653e-06/0.271, allocations: 3.984 kB / 412.5 MB, free: 15.37 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001937/0.273, allocations: 1.003 MB / 413.5 MB, free: 14.68 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.49e-06/0.273, allocations: 4 kB / 413.5 MB, free: 14.68 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002158/0.2732, allocations: 44.59 kB / 413.5 MB, free: 14.67 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006763/0.2739, allocations: 239 kB / 413.7 MB, free: 14.56 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.779e-05/0.2739, allocations: 20.73 kB / 413.8 MB, free: 14.54 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003991/0.2779, allocations: 2.691 MB / 416.5 MB, free: 12.37 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.493e-06/0.2779, allocations: 0 / 416.5 MB, free: 12.37 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001583/0.2795, allocations: 0.8119 MB / 417.3 MB, free: 11.89 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001742/0.2797, allocations: 70.55 kB / 417.3 MB, free: 11.84 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.888e-05/0.2797, allocations: 11.41 kB / 417.3 MB, free: 11.83 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002605/0.28, allocations: 18.3 kB / 417.4 MB, free: 11.82 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001548/0.2801, allocations: 67.84 kB / 417.4 MB, free: 11.78 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.513e-05/0.2802, allocations: 20.02 kB / 417.4 MB, free: 11.77 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0002306/0.2804, allocations: 179.1 kB / 417.6 MB, free: 11.65 MB / 334.1 MB Notification: Performance of sort global known variables: time 9e-08/0.2804, allocations: 1.219 kB / 417.6 MB, free: 11.65 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0006406/0.281, allocations: 140.5 kB / 417.8 MB, free: 11.62 MB / 334.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 2 (Inertia2.phi,Inertia2.w) * Number of discrete variables: 5 (gear.tau_aPos,gear.startForward,gear.startBackward,gear.locked,gear.mode) * Number of discrete states: 1 (gear.mode) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (21): * Single equations (assignments): 20 * 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 {(2,23)} Notification: Performance of Backend phase and start with SimCode phase: time 0.002149/0.2832, allocations: 1.424 MB / 419.2 MB, free: 10.57 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.001369/0.2846, allocations: 0.585 MB / 419.8 MB, free: 10.23 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 3.096e-06/0.2846, allocations: 1.188 kB / 419.8 MB, free: 10.23 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007813/0.2853, allocations: 423 kB / 420.2 MB, free: 9.953 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004217/0.2858, allocations: 32.05 kB / 420.2 MB, free: 9.934 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005961/0.2917, allocations: 3.427 MB / 423.6 MB, free: 7.164 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002365/0.292, allocations: 175.8 kB / 423.8 MB, free: 6.965 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0002133/0.2922, allocations: 62.94 kB / 423.9 MB, free: 6.902 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001635/0.2923, allocations: 83.39 kB / 424 MB, free: 6.82 MB / 334.1 MB Notification: Performance of SimCode: time 7.91e-07/0.2923, allocations: 0 / 424 MB, free: 6.82 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04577/0.3381, allocations: 9.763 MB / 433.7 MB, free: 13 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.97/13.31, allocations: 11.8 kB / 433.7 MB, free: 12.98 MB / 350.1 MB " [Timeout remaining time 647] (rm -f Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.pipe ; mkfifo Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.pipe >> ../files/Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Mechanics_Rotational_Examples_LossyGearDemo3_fmu --startTime=0 --stopTime=1 --stepSize=0.001 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Mechanics_Rotational_Examples_LossyGearDemo3.fmu > Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Mechanics/Rotational/Examples/LossyGearDemo3/LossyGearDemo3.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.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: 16.15647106198594]