Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.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.001371/0.001371, allocations: 124.5 kB / 17.79 MB, free: 5.227 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.001478/0.001478, allocations: 207.2 kB / 20.75 MB, free: 2.273 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.434/1.434, allocations: 230.6 MB / 254.1 MB, free: 15.09 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+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.LossyGearDemo1,fileNamePrefix="Modelica_4_1_0_Modelica_Mechanics_Rotational_Examples_LossyGearDemo1",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.Rotational.Examples.LossyGearDemo1,fileNamePrefix="Modelica_4_1_0_Modelica_Mechanics_Rotational_Examples_LossyGearDemo1",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001495/0.001495, allocations: 43.94 kB / 373 MB, free: 10.23 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09888/0.1004, allocations: 53.33 MB / 426.3 MB, free: 4.812 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.LossyGearDemo1): time 0.004034/0.1044, allocations: 2.552 MB / 428.9 MB, free: 2.246 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001928/0.1063, allocations: 1.139 MB / 430 MB, free: 1.098 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001236/0.1065, allocations: 7.938 kB / 430 MB, free: 1.09 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002824/0.1067, allocations: 63.44 kB / 430.1 MB, free: 1.027 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000457/0.1072, allocations: 175.4 kB / 430.2 MB, free: 0.8594 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004048/0.1076, allocations: 179.6 kB / 430.4 MB, free: 0.6836 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005452/0.1081, allocations: 0.5219 MB / 430.9 MB, free: 164 kB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000155/0.1083, allocations: 64.89 kB / 431 MB, free: 96 kB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.1909/0.2992, allocations: 237.2 kB / 431.2 MB, free: 7.707 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004261/0.2997, allocations: 275 kB / 431.5 MB, free: 7.703 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 8.332e-05/0.2997, allocations: 42.44 kB / 431.5 MB, free: 7.703 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002967/0.3, allocations: 138.5 kB / 431.7 MB, free: 7.703 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001256/0.3002, allocations: 118.5 kB / 431.8 MB, free: 7.691 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001694/0.3003, allocations: 202.8 kB / 432 MB, free: 7.641 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000587/0.3009, allocations: 0.55 MB / 432.5 MB, free: 7.566 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.997e-06/0.3009, allocations: 0.9688 kB / 432.5 MB, free: 7.566 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.242e-06/0.3009, allocations: 1.312 kB / 432.5 MB, free: 7.566 MB / 350.1 MB Notification: Performance of Transformations before backend: time 7.373e-06/0.3009, allocations: 0 / 432.5 MB, free: 7.566 MB / 350.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 76 * Number of variables: 76 Notification: Performance of Generate backend data structure: time 0.001161/0.3021, allocations: 0.7102 MB / 433.2 MB, free: 7.086 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.591e-05/0.3021, allocations: 10.53 kB / 433.3 MB, free: 7.086 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.74e-05/0.3022, allocations: 71 kB / 433.3 MB, free: 7.047 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003812/0.3026, allocations: 69.92 kB / 433.4 MB, free: 7.027 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004395/0.303, allocations: 319.5 kB / 433.7 MB, free: 6.805 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001072/0.3031, allocations: 93.42 kB / 433.8 MB, free: 6.742 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.55e-05/0.3032, allocations: 33.61 kB / 433.8 MB, free: 6.738 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007387/0.3039, allocations: 418 kB / 434.2 MB, free: 6.68 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.876e-05/0.304, allocations: 2.734 kB / 434.2 MB, free: 6.68 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.875e-05/0.304, allocations: 15.16 kB / 434.3 MB, free: 6.68 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.478e-06/0.304, allocations: 8.188 kB / 434.3 MB, free: 6.68 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009936/0.305, allocations: 470.7 kB / 434.7 MB, free: 6.68 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001629/0.3066, allocations: 0.9975 MB / 435.7 MB, free: 6.332 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008177/0.3074, allocations: 367.8 kB / 436.1 MB, free: 6.305 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004449/0.3079, allocations: 203.6 kB / 436.3 MB, free: 6.297 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.977e-05/0.3079, allocations: 5.969 kB / 436.3 MB, free: 6.297 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.708e-05/0.3079, allocations: 40.34 kB / 436.3 MB, free: 6.258 MB / 350.1 MB Notification: Performance of pre-optimization done (n=49): time 1.673e-06/0.3079, allocations: 0 / 436.3 MB, free: 6.258 MB / 350.1 MB Notification: Performance of matching and sorting (n=55): time 0.00521/0.3132, allocations: 2.142 MB / 438.5 MB, free: 5.445 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.99e-05/0.3132, allocations: 84.73 kB / 438.5 MB, free: 5.352 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003229/0.3135, allocations: 270.5 kB / 438.8 MB, free: 5.191 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.913e-05/0.3136, allocations: 37.5 kB / 438.9 MB, free: 5.152 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.75e-05/0.3136, allocations: 150 kB / 439 MB, free: 5.02 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001154/0.3137, allocations: 191.8 kB / 439.2 MB, free: 4.871 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001608/0.3139, allocations: 92.73 kB / 439.3 MB, free: 4.824 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 6.558e-05/0.314, allocations: 339.5 kB / 439.6 MB, free: 4.5 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004463/0.3144, allocations: 192.2 kB / 439.8 MB, free: 4.438 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004725/0.3149, allocations: 245.9 kB / 440 MB, free: 4.332 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008014/0.3157, allocations: 380.6 kB / 440.4 MB, free: 4.176 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.593e-06/0.3157, allocations: 0 / 440.4 MB, free: 4.176 MB / 350.1 MB Notification: Performance of matching and sorting (n=59) (initialization): time 0.001369/0.3171, allocations: 0.6027 MB / 441 MB, free: 3.93 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.026e-05/0.3171, allocations: 14.88 kB / 441 MB, free: 3.922 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.813e-06/0.3171, allocations: 0.6562 kB / 441 MB, free: 3.922 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008243/0.3179, allocations: 300.8 kB / 441.3 MB, free: 3.848 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003286/0.3182, allocations: 73.33 kB / 441.4 MB, free: 3.844 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003528/0.3218, allocations: 2.944 MB / 444.3 MB, free: 1.648 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003621/0.3221, allocations: 28.83 kB / 444.4 MB, free: 1.641 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.22e-05/0.3222, allocations: 25.38 kB / 444.4 MB, free: 1.633 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * 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 (33): * Single equations (assignments): 32 * 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,25)} Notification: Performance of prepare postOptimizeDAE: time 0.0001929/0.3224, allocations: 154.4 kB / 444.5 MB, free: 1.496 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.487e-05/0.3225, allocations: 35.75 kB / 444.6 MB, free: 1.477 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001111/0.3226, allocations: 52.58 kB / 444.6 MB, free: 1.434 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.611e-06/0.3226, allocations: 5.781 kB / 444.6 MB, free: 1.434 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.26e-06/0.3226, allocations: 0 / 444.6 MB, free: 1.434 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.945e-06/0.3226, allocations: 5.125 kB / 444.6 MB, free: 1.434 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002209/0.3248, allocations: 1.285 MB / 445.9 MB, free: 0.7461 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.32e-06/0.3248, allocations: 1.969 kB / 445.9 MB, free: 0.7461 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003369/0.3251, allocations: 71 kB / 446 MB, free: 0.7422 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007355/0.3259, allocations: 288.7 kB / 446.3 MB, free: 0.668 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.688e-05/0.3259, allocations: 17.2 kB / 446.3 MB, free: 0.6602 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003942/0.3299, allocations: 2.863 MB / 449.2 MB, free: 14.54 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.124e-06/0.3299, allocations: 0 / 449.2 MB, free: 14.54 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002079/0.332, allocations: 0.9429 MB / 450.1 MB, free: 14.07 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002512/0.3322, allocations: 159.4 kB / 450.2 MB, free: 13.93 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.081e-05/0.3323, allocations: 14.94 kB / 450.3 MB, free: 13.92 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003155/0.3326, allocations: 28.5 kB / 450.3 MB, free: 13.91 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001986/0.3328, allocations: 77.61 kB / 450.4 MB, free: 13.9 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.318e-05/0.3328, allocations: 19 kB / 450.4 MB, free: 13.89 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0002895/0.3331, allocations: 203.5 kB / 450.6 MB, free: 13.78 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.3331, allocations: 1.094 kB / 450.6 MB, free: 13.78 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0007219/0.3338, allocations: 150 kB / 450.7 MB, free: 13.75 MB / 366.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * 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 (31): * Single equations (assignments): 30 * 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.003717/0.3376, allocations: 1.782 MB / 452.5 MB, free: 12.7 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001629/0.3392, allocations: 0.6636 MB / 453.2 MB, free: 12.39 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.695e-06/0.3392, allocations: 3.938 kB / 453.2 MB, free: 12.38 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009452/0.3401, allocations: 467.6 kB / 453.6 MB, free: 12.14 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005108/0.3406, allocations: 44.91 kB / 453.7 MB, free: 12.12 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006781/0.3474, allocations: 3.805 MB / 457.5 MB, free: 9.852 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005207/0.348, allocations: 0.7963 MB / 458.3 MB, free: 9.145 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0002866/0.3482, allocations: 78.27 kB / 458.4 MB, free: 9.121 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002325/0.3485, allocations: 112.3 kB / 458.5 MB, free: 9.047 MB / 366.1 MB Notification: Performance of SimCode: time 8.82e-07/0.3485, allocations: 0 / 458.5 MB, free: 9.047 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04423/0.3927, allocations: 11.74 MB / 470.2 MB, free: 3.691 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.15/12.54, allocations: 11.88 kB / 470.2 MB, free: 3.68 MB / 366.1 MB " [Timeout remaining time 647] (rm -f Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.pipe ; mkfifo Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.pipe >> ../files/Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1_res.mat --tempDir=temp_Modelica_4_1_0_Modelica_Mechanics_Rotational_Examples_LossyGearDemo1_fmu --startTime=0 --stopTime=0.5 --stepSize=0.001 --timeout=50 --tolerance=1e-06 Modelica_4_1_0_Modelica_Mechanics_Rotational_Examples_LossyGearDemo1.fmu > Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Mechanics/Rotational/Examples/LossyGearDemo1/LossyGearDemo1.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.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: 15.170252108946443]