Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.SimpleGearShift.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.001936/0.001936, allocations: 109.6 kB / 21.18 MB, free: 0.5586 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.001523/0.001523, allocations: 211.4 kB / 24.49 MB, free: 3.91 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.446/1.446, allocations: 207.6 MB / 235.3 MB, free: 9.977 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.SimpleGearShift,fileNamePrefix="Modelica_3_2_3_Modelica_Mechanics_Rotational_Examples_SimpleGearShift",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.Rotational.Examples.SimpleGearShift,fileNamePrefix="Modelica_3_2_3_Modelica_Mechanics_Rotational_Examples_SimpleGearShift",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.001966/0.001966, allocations: 43.94 kB / 347.2 MB, free: 10.03 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2913/0.2932, allocations: 49.15 MB / 396.3 MB, free: 8.984 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.SimpleGearShift): time 0.003943/0.2972, allocations: 2.841 MB / 399.2 MB, free: 7.02 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.00178/0.299, allocations: 0.9492 MB / 400.1 MB, free: 6.348 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002241/0.2992, allocations: 8.156 kB / 400.1 MB, free: 6.344 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002405/0.2994, allocations: 59.16 kB / 400.2 MB, free: 6.309 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002717/0.2997, allocations: 108.4 kB / 400.3 MB, free: 6.234 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005821/0.3003, allocations: 222.5 kB / 400.5 MB, free: 6.117 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006382/0.3009, allocations: 0.5656 MB / 401.1 MB, free: 5.855 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001988/0.3011, allocations: 84.22 kB / 401.2 MB, free: 5.805 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000351/0.3015, allocations: 256.3 kB / 401.4 MB, free: 5.695 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003904/0.3019, allocations: 278.1 kB / 401.7 MB, free: 5.574 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 7.933e-05/0.3019, allocations: 43.94 kB / 401.7 MB, free: 5.574 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002013/0.3021, allocations: 97.69 kB / 401.8 MB, free: 5.559 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000133/0.3023, allocations: 123.5 kB / 401.9 MB, free: 5.477 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002111/0.3025, allocations: 218 kB / 402.2 MB, free: 5.344 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006981/0.3032, allocations: 0.542 MB / 402.7 MB, free: 5.129 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.719e-06/0.3032, allocations: 1.531 kB / 402.7 MB, free: 5.129 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.333e-06/0.3032, allocations: 0 / 402.7 MB, free: 5.129 MB / 318.1 MB Notification: Performance of Transformations before backend: time 9.457e-06/0.3032, allocations: 0.75 kB / 402.7 MB, free: 5.129 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: 84 * Number of variables: 84 Notification: Performance of Generate backend data structure: time 0.001326/0.3045, allocations: 0.6646 MB / 403.4 MB, free: 4.672 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.939e-05/0.3046, allocations: 12.8 kB / 403.4 MB, free: 4.668 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001329/0.3047, allocations: 83.2 kB / 403.5 MB, free: 4.602 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.965e-05/0.3048, allocations: 50.16 kB / 403.5 MB, free: 4.574 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003835/0.3052, allocations: 256.5 kB / 403.8 MB, free: 4.363 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.157e-05/0.3052, allocations: 28.72 kB / 403.8 MB, free: 4.352 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.991e-05/0.3053, allocations: 39.31 kB / 403.8 MB, free: 4.336 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000884/0.3062, allocations: 450.1 kB / 404.3 MB, free: 4.164 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.411e-05/0.3062, allocations: 2.031 kB / 404.3 MB, free: 4.164 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.199e-05/0.3063, allocations: 15.78 kB / 404.3 MB, free: 4.152 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.045e-05/0.3063, allocations: 8.438 kB / 404.3 MB, free: 4.152 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009565/0.3072, allocations: 459.5 kB / 404.7 MB, free: 4.023 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002258/0.3095, allocations: 1.206 MB / 405.9 MB, free: 3.348 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007808/0.3103, allocations: 344.6 kB / 406.3 MB, free: 3.219 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004472/0.3107, allocations: 229.4 kB / 406.5 MB, free: 3.133 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.625e-05/0.3108, allocations: 4.844 kB / 406.5 MB, free: 3.133 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.161e-05/0.3108, allocations: 37.89 kB / 406.5 MB, free: 3.09 MB / 318.1 MB Notification: Performance of pre-optimization done (n=45): time 1.613e-06/0.3108, allocations: 4 kB / 406.6 MB, free: 3.086 MB / 318.1 MB Notification: Performance of matching and sorting (n=49): time 0.004831/0.3156, allocations: 1.968 MB / 408.5 MB, free: 2.219 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.966e-05/0.3156, allocations: 56.69 kB / 408.6 MB, free: 2.156 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002748/0.3159, allocations: 248.7 kB / 408.8 MB, free: 2.016 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 4.752e-05/0.316, allocations: 44.45 kB / 408.9 MB, free: 1.973 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001004/0.3161, allocations: 175 kB / 409 MB, free: 1.82 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.00012/0.3162, allocations: 176.6 kB / 409.2 MB, free: 1.684 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001714/0.3164, allocations: 94.59 kB / 409.3 MB, free: 1.637 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 7.615e-05/0.3164, allocations: 349.8 kB / 409.6 MB, free: 1.297 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000453/0.3169, allocations: 231.3 kB / 409.9 MB, free: 1.188 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004869/0.3174, allocations: 306.5 kB / 410.2 MB, free: 1.008 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007155/0.3181, allocations: 423.5 kB / 410.6 MB, free: 0.7773 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.543e-06/0.3181, allocations: 0 / 410.6 MB, free: 0.7773 MB / 318.1 MB Notification: Performance of matching and sorting (n=65) (initialization): time 0.001431/0.3195, allocations: 0.7462 MB / 411.3 MB, free: 404 kB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.173e-05/0.3195, allocations: 6.656 kB / 411.3 MB, free: 404 kB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.056e-06/0.3196, allocations: 1.25 kB / 411.3 MB, free: 404 kB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001013/0.3206, allocations: 0.5479 MB / 411.9 MB, free: 136 kB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002709/0.3208, allocations: 73.23 kB / 411.9 MB, free: 116 kB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003261/0.3241, allocations: 3.451 MB / 415.4 MB, free: 12.78 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005223/0.3246, allocations: 79.8 kB / 415.5 MB, free: 12.74 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.719e-05/0.3247, allocations: 17.41 kB / 415.5 MB, free: 12.74 MB / 334.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 6 * Number of states: 0 () * Number of discrete variables: 16 (brake.mode,$PRE.brake.mode,brake.locked,brake.startBackward,$PRE.brake.startBackward,brake.startForward,$PRE.brake.startForward,brake.free,clutch.mode,$PRE.clutch.mode,clutch.locked,clutch.startBackward,$PRE.clutch.startBackward,clutch.startForward,$PRE.clutch.startForward,clutch.free) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (46): * Single equations (assignments): 43 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,1,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(2,16)} Notification: Performance of prepare postOptimizeDAE: time 0.00027/0.3249, allocations: 167.2 kB / 415.7 MB, free: 12.59 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.752e-05/0.325, allocations: 39.58 kB / 415.7 MB, free: 12.56 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001546/0.3266, allocations: 0.7077 MB / 416.4 MB, free: 12.16 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.773e-06/0.3266, allocations: 9.562 kB / 416.4 MB, free: 12.15 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.138e-06/0.3266, allocations: 1.156 kB / 416.4 MB, free: 12.15 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.184e-06/0.3266, allocations: 7.922 kB / 416.4 MB, free: 12.14 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002298/0.3289, allocations: 1.219 MB / 417.6 MB, free: 11.31 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.206e-06/0.3289, allocations: 7.938 kB / 417.7 MB, free: 11.3 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002725/0.3292, allocations: 58.5 kB / 417.7 MB, free: 11.29 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009938/0.3302, allocations: 0.5239 MB / 418.2 MB, free: 11.04 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.991e-05/0.3302, allocations: 20.09 kB / 418.3 MB, free: 11.03 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003153/0.3334, allocations: 3.425 MB / 421.7 MB, free: 7.711 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.703e-06/0.3334, allocations: 0 / 421.7 MB, free: 7.711 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001985/0.3353, allocations: 1.026 MB / 422.7 MB, free: 7.117 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002472/0.3356, allocations: 86.39 kB / 422.8 MB, free: 7.055 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.213e-05/0.3357, allocations: 21.59 kB / 422.8 MB, free: 7.039 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004483/0.3361, allocations: 69.69 kB / 422.9 MB, free: 7.008 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002332/0.3364, allocations: 94.81 kB / 423 MB, free: 6.941 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.269e-05/0.3364, allocations: 18.52 kB / 423 MB, free: 6.934 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.000203/0.3366, allocations: 180.2 kB / 423.2 MB, free: 6.809 MB / 334.1 MB Notification: Performance of sort global known variables: time 7.1e-08/0.3366, allocations: 0 / 423.2 MB, free: 6.809 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0006007/0.3372, allocations: 122.8 kB / 423.3 MB, free: 6.793 MB / 334.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 4 (load.w,quadraticSpeedDependentTorque.phi,clutch.phi_rel,clutch.w_rel) * Number of discrete variables: 10 (clutch.free,clutch.startForward,clutch.startBackward,clutch.locked,clutch.mode,brake.free,brake.startForward,brake.startBackward,brake.locked,brake.mode) * Number of discrete states: 6 (clutch.mode,clutch.startBackward,brake.mode,brake.startBackward,brake.startForward,clutch.startForward) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (31): * Single equations (assignments): 28 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,1,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(2,16)} Notification: Performance of Backend phase and start with SimCode phase: time 0.002461/0.3397, allocations: 1.593 MB / 424.9 MB, free: 5.652 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.001654/0.3413, allocations: 0.7725 MB / 425.6 MB, free: 5.008 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.806e-06/0.3413, allocations: 0 / 425.6 MB, free: 5.008 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009076/0.3422, allocations: 0.5177 MB / 426.2 MB, free: 4.469 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005439/0.3428, allocations: 60.45 kB / 426.2 MB, free: 4.41 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007654/0.3504, allocations: 4.366 MB / 430.6 MB, free: 15.91 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004614/0.3509, allocations: 0.7996 MB / 431.4 MB, free: 15.09 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001582/0.351, allocations: 35.28 kB / 431.4 MB, free: 15.05 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001768/0.3512, allocations: 111.4 kB / 431.5 MB, free: 14.95 MB / 350.1 MB Notification: Performance of SimCode: time 1.382e-06/0.3512, allocations: 0 / 431.5 MB, free: 14.95 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05847/0.4097, allocations: 13.93 MB / 445.5 MB, free: 0.9375 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.65/14.06, allocations: 7.812 kB / 445.5 MB, free: 0.9297 MB / 350.1 MB " [Timeout remaining time 646] (rm -f Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.SimpleGearShift.pipe ; mkfifo Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.SimpleGearShift.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.SimpleGearShift.pipe >> ../files/Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.SimpleGearShift.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.SimpleGearShift_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Mechanics_Rotational_Examples_SimpleGearShift_fmu --startTime=0 --stopTime=5 --stepSize=0.01 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Mechanics_Rotational_Examples_SimpleGearShift.fmu > Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.SimpleGearShift.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.SimpleGearShift_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Mechanics/Rotational/Examples/SimpleGearShift/SimpleGearShift.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.SimpleGearShift.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.47502228198573]