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.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.001518/0.001518, allocations: 122.2 kB / 18.45 MB, free: 4.457 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.001542/0.001542, allocations: 190.9 kB / 21.39 MB, free: 1.52 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.403/1.403, allocations: 207.6 MB / 231.8 MB, free: 3.988 MB / 174.1 MB " [Timeout remaining time 179] 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.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.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.0.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.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001701/0.001701, allocations: 56.25 kB / 342.2 MB, free: 10.02 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0888/0.0905, allocations: 49.13 MB / 391.4 MB, free: 8.727 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.LossyGearDemo3): time 0.003598/0.0941, allocations: 2.349 MB / 393.7 MB, free: 6.367 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001716/0.09582, allocations: 0.9722 MB / 394.7 MB, free: 5.387 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001221/0.09594, allocations: 4 kB / 394.7 MB, free: 5.383 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001968/0.09614, allocations: 43.58 kB / 394.7 MB, free: 5.34 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004554/0.09659, allocations: 135.3 kB / 394.9 MB, free: 5.207 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003392/0.09693, allocations: 179.6 kB / 395 MB, free: 5.031 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004331/0.09736, allocations: 422.7 kB / 395.5 MB, free: 4.617 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001353/0.0975, allocations: 52.64 kB / 395.5 MB, free: 4.562 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002067/0.09771, allocations: 183.5 kB / 395.7 MB, free: 4.383 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002848/0.09799, allocations: 227.2 kB / 395.9 MB, free: 4.16 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 5.352e-05/0.09804, allocations: 32 kB / 395.9 MB, free: 4.129 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001983/0.09824, allocations: 127.8 kB / 396.1 MB, free: 4.004 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001351/0.09838, allocations: 95.72 kB / 396.2 MB, free: 3.91 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001555/0.09853, allocations: 163.2 kB / 396.3 MB, free: 3.75 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004979/0.09903, allocations: 442.5 kB / 396.8 MB, free: 3.316 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.467e-06/0.09903, allocations: 0 / 396.8 MB, free: 3.316 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.232e-06/0.09904, allocations: 0 / 396.8 MB, free: 3.316 MB / 318.1 MB Notification: Performance of Transformations before backend: time 5.691e-06/0.09904, allocations: 0 / 396.8 MB, free: 3.316 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.00114/0.1002, allocations: 0.6544 MB / 397.4 MB, free: 2.613 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.02e-05/0.1002, allocations: 12.03 kB / 397.4 MB, free: 2.602 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.829e-05/0.1003, allocations: 58.73 kB / 397.5 MB, free: 2.535 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002818/0.1006, allocations: 52.72 kB / 397.5 MB, free: 2.484 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005147/0.1011, allocations: 307.8 kB / 397.8 MB, free: 2.145 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001267/0.1012, allocations: 92.52 kB / 397.9 MB, free: 2.043 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.769e-05/0.1013, allocations: 28.38 kB / 397.9 MB, free: 2.016 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006831/0.102, allocations: 377.2 kB / 398.3 MB, free: 1.629 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.838e-05/0.102, allocations: 4 kB / 398.3 MB, free: 1.625 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.287e-05/0.102, allocations: 11.94 kB / 398.3 MB, free: 1.613 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.378e-06/0.102, allocations: 8 kB / 398.3 MB, free: 1.605 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008316/0.1029, allocations: 421.9 kB / 398.7 MB, free: 1.191 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002078/0.1049, allocations: 1.234 MB / 400 MB, free: 15.89 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006563/0.1056, allocations: 326.5 kB / 400.3 MB, free: 15.56 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003586/0.1059, allocations: 168.8 kB / 400.5 MB, free: 15.39 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.894e-05/0.106, allocations: 8.656 kB / 400.5 MB, free: 15.39 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.924e-05/0.106, allocations: 38.56 kB / 400.5 MB, free: 15.34 MB / 334.1 MB Notification: Performance of pre-optimization done (n=43): time 1.834e-06/0.106, allocations: 0 / 400.5 MB, free: 15.34 MB / 334.1 MB Notification: Performance of matching and sorting (n=45): time 0.004651/0.1107, allocations: 1.926 MB / 402.4 MB, free: 13.3 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.879e-05/0.1107, allocations: 84.86 kB / 402.5 MB, free: 13.2 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003142/0.1111, allocations: 246.1 kB / 402.8 MB, free: 12.95 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 4.029e-05/0.1111, allocations: 33.7 kB / 402.8 MB, free: 12.91 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000117/0.1112, allocations: 140.8 kB / 402.9 MB, free: 12.77 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001322/0.1113, allocations: 154.7 kB / 403.1 MB, free: 12.61 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001464/0.1115, allocations: 78.12 kB / 403.2 MB, free: 12.53 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001701/0.1117, allocations: 342.8 kB / 403.5 MB, free: 12.19 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000382/0.112, allocations: 168.8 kB / 403.7 MB, free: 12.02 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004287/0.1125, allocations: 229.9 kB / 403.9 MB, free: 11.78 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006947/0.1132, allocations: 343.2 kB / 404.2 MB, free: 11.43 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.767e-06/0.1132, allocations: 4 kB / 404.2 MB, free: 11.42 MB / 334.1 MB Notification: Performance of matching and sorting (n=52) (initialization): time 0.001111/0.1143, allocations: 0.5474 MB / 404.8 MB, free: 10.87 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.042e-05/0.1143, allocations: 11.91 kB / 404.8 MB, free: 10.86 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.911e-06/0.1143, allocations: 0 / 404.8 MB, free: 10.86 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007221/0.115, allocations: 256.6 kB / 405 MB, free: 10.6 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002261/0.1153, allocations: 47.97 kB / 405.1 MB, free: 10.55 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004087/0.1193, allocations: 2.891 MB / 408 MB, free: 7.527 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002592/0.1196, allocations: 28.03 kB / 408 MB, free: 7.5 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.004e-05/0.1196, allocations: 16 kB / 408 MB, free: 7.484 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.0002035/0.1198, allocations: 161.7 kB / 408.2 MB, free: 7.316 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.626e-05/0.1199, allocations: 23.86 kB / 408.2 MB, free: 7.293 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.688e-05/0.12, allocations: 42.98 kB / 408.2 MB, free: 7.25 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.689e-06/0.12, allocations: 4 kB / 408.2 MB, free: 7.246 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.388e-06/0.12, allocations: 0 / 408.2 MB, free: 7.246 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.611e-06/0.12, allocations: 7.984 kB / 408.2 MB, free: 7.238 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001908/0.1219, allocations: 1.078 MB / 409.3 MB, free: 6.102 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.895e-06/0.1219, allocations: 0 / 409.3 MB, free: 6.102 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002128/0.1222, allocations: 47.91 kB / 409.4 MB, free: 6.055 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006451/0.1228, allocations: 240.9 kB / 409.6 MB, free: 5.816 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.064e-05/0.1228, allocations: 11.92 kB / 409.6 MB, free: 5.805 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00392/0.1267, allocations: 2.843 MB / 412.5 MB, free: 2.816 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.833e-06/0.1268, allocations: 0 / 412.5 MB, free: 2.816 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00149/0.1282, allocations: 0.8195 MB / 413.3 MB, free: 1.98 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001742/0.1284, allocations: 136.9 kB / 413.4 MB, free: 1.828 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.083e-05/0.1285, allocations: 12.06 kB / 413.4 MB, free: 1.816 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002425/0.1287, allocations: 31.97 kB / 413.5 MB, free: 1.785 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001404/0.1288, allocations: 59.91 kB / 413.5 MB, free: 1.727 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.732e-05/0.1289, allocations: 11.98 kB / 413.5 MB, free: 1.715 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0002157/0.1291, allocations: 184.3 kB / 413.7 MB, free: 1.535 MB / 334.1 MB Notification: Performance of sort global known variables: time 9e-08/0.1291, allocations: 0 / 413.7 MB, free: 1.535 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0005621/0.1297, allocations: 139.9 kB / 413.8 MB, free: 1.398 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.002082/0.1317, allocations: 1.417 MB / 415.3 MB, free: 15.95 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001269/0.133, allocations: 0.5978 MB / 415.9 MB, free: 15.34 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.014e-06/0.133, allocations: 0 / 415.9 MB, free: 15.34 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007153/0.1337, allocations: 417.7 kB / 416.3 MB, free: 14.92 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003797/0.1341, allocations: 31.98 kB / 416.3 MB, free: 14.89 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005295/0.1394, allocations: 3.427 MB / 419.7 MB, free: 11.34 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004734/0.1399, allocations: 0.7761 MB / 420.5 MB, free: 10.54 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001944/0.1401, allocations: 58.92 kB / 420.6 MB, free: 10.48 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000147/0.1402, allocations: 87.41 kB / 420.6 MB, free: 10.4 MB / 350.1 MB Notification: Performance of SimCode: time 6.01e-07/0.1402, allocations: 0 / 420.6 MB, free: 10.4 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04301/0.1832, allocations: 9.948 MB / 430.6 MB, free: 396 kB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.49/12.67, allocations: 4 kB / 430.6 MB, free: 392 kB / 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_2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Mechanics/Rotational/Examples/LossyGearDemo3/LossyGearDemo3.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/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: 15.059125717263669]