Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_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.00151/0.00151, allocations: 109.2 kB / 20.43 MB, free: 1.473 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.001796/0.001796, allocations: 208.4 kB / 23.74 MB, free: 4.691 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.445/1.445, allocations: 230.6 MB / 257.5 MB, free: 7.98 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.LossyGearDemo3,fileNamePrefix="Modelica_4_1_0_Modelica_Mechanics_Rotational_Examples_LossyGearDemo3",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.Rotational.Examples.LossyGearDemo3,fileNamePrefix="Modelica_4_1_0_Modelica_Mechanics_Rotational_Examples_LossyGearDemo3",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001648/0.001648, allocations: 51.92 kB / 377.8 MB, free: 3.129 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2546/0.2562, allocations: 53.37 MB / 431.1 MB, free: 6.828 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.LossyGearDemo3): time 0.003815/0.26, allocations: 2.48 MB / 433.6 MB, free: 4.344 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001926/0.2619, allocations: 1.08 MB / 434.7 MB, free: 3.258 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001939/0.2621, allocations: 4 kB / 434.7 MB, free: 3.254 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003113/0.2625, allocations: 63.5 kB / 434.8 MB, free: 3.191 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004632/0.2629, allocations: 151.8 kB / 434.9 MB, free: 3.047 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004482/0.2634, allocations: 171.6 kB / 435.1 MB, free: 2.879 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005847/0.2639, allocations: 470.7 kB / 435.5 MB, free: 2.418 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001529/0.2641, allocations: 48.91 kB / 435.6 MB, free: 2.367 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002732/0.2644, allocations: 207.5 kB / 435.8 MB, free: 2.164 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003596/0.2647, allocations: 247.2 kB / 436 MB, free: 1.922 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 7.213e-05/0.2648, allocations: 40 kB / 436.1 MB, free: 1.883 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002702/0.2651, allocations: 131.9 kB / 436.2 MB, free: 1.754 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001397/0.2652, allocations: 103.7 kB / 436.3 MB, free: 1.652 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001754/0.2654, allocations: 179.2 kB / 436.5 MB, free: 1.477 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006577/0.266, allocations: 0.4921 MB / 437 MB, free: 0.9844 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.474e-06/0.2661, allocations: 8 kB / 437 MB, free: 0.9766 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.092e-06/0.2661, allocations: 0 / 437 MB, free: 0.9766 MB / 334.1 MB Notification: Performance of Transformations before backend: time 7.945e-06/0.2661, allocations: 0 / 437 MB, free: 0.9766 MB / 334.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.001241/0.2673, allocations: 0.5984 MB / 437.6 MB, free: 356 kB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.938e-05/0.2673, allocations: 8.031 kB / 437.6 MB, free: 348 kB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.234e-05/0.2674, allocations: 70.72 kB / 437.6 MB, free: 268 kB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003157/0.2678, allocations: 48.73 kB / 437.7 MB, free: 220 kB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005403/0.2683, allocations: 239.8 kB / 437.9 MB, free: 15.95 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001684/0.2685, allocations: 140 kB / 438.1 MB, free: 15.79 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.184e-05/0.2685, allocations: 32.31 kB / 438.1 MB, free: 15.76 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007222/0.2692, allocations: 386.6 kB / 438.5 MB, free: 15.37 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.531e-05/0.2693, allocations: 7.953 kB / 438.5 MB, free: 15.36 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.484e-05/0.2693, allocations: 12 kB / 438.5 MB, free: 15.35 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.524e-06/0.2693, allocations: 4 kB / 438.5 MB, free: 15.34 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008696/0.2702, allocations: 418.2 kB / 438.9 MB, free: 14.93 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002235/0.2724, allocations: 1.208 MB / 440.1 MB, free: 13.67 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007057/0.2731, allocations: 318.5 kB / 440.4 MB, free: 13.35 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003882/0.2735, allocations: 168.7 kB / 440.6 MB, free: 13.18 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.038e-05/0.2736, allocations: 12.14 kB / 440.6 MB, free: 13.17 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.656e-05/0.2736, allocations: 39.2 kB / 440.6 MB, free: 13.12 MB / 350.1 MB Notification: Performance of pre-optimization done (n=43): time 1.593e-06/0.2736, allocations: 4 kB / 440.6 MB, free: 13.12 MB / 350.1 MB Notification: Performance of matching and sorting (n=45): time 0.004856/0.2784, allocations: 1.664 MB / 442.3 MB, free: 11.39 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.71e-05/0.2785, allocations: 88.86 kB / 442.4 MB, free: 11.29 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003284/0.2788, allocations: 251.3 kB / 442.6 MB, free: 11.04 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 5.157e-05/0.2789, allocations: 37.7 kB / 442.7 MB, free: 10.99 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001056/0.279, allocations: 136.8 kB / 442.8 MB, free: 10.85 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001445/0.2791, allocations: 158.7 kB / 443 MB, free: 10.7 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001477/0.2793, allocations: 90.06 kB / 443 MB, free: 10.6 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001567/0.2794, allocations: 334.8 kB / 443.4 MB, free: 10.27 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003866/0.2798, allocations: 168.8 kB / 443.5 MB, free: 10.1 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00043/0.2803, allocations: 229.9 kB / 443.8 MB, free: 9.859 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007074/0.281, allocations: 335.2 kB / 444.1 MB, free: 9.52 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.134e-06/0.281, allocations: 0 / 444.1 MB, free: 9.52 MB / 350.1 MB Notification: Performance of matching and sorting (n=52) (initialization): time 0.001163/0.2821, allocations: 0.5358 MB / 444.6 MB, free: 8.973 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.987e-05/0.2822, allocations: 8 kB / 444.6 MB, free: 8.965 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.247e-06/0.2822, allocations: 4 kB / 444.6 MB, free: 8.961 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008333/0.283, allocations: 296.6 kB / 444.9 MB, free: 8.668 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002507/0.2832, allocations: 55.89 kB / 445 MB, free: 8.613 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004171/0.2874, allocations: 2.794 MB / 447.8 MB, free: 5.703 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002794/0.2877, allocations: 23.97 kB / 447.8 MB, free: 5.68 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.68e-05/0.2877, allocations: 24.05 kB / 447.8 MB, free: 5.656 MB / 350.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.0001983/0.2879, allocations: 153.7 kB / 448 MB, free: 5.496 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.06e-05/0.288, allocations: 31.81 kB / 448 MB, free: 5.465 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001038/0.2881, allocations: 46.92 kB / 448.1 MB, free: 5.418 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.478e-06/0.2881, allocations: 4 kB / 448.1 MB, free: 5.414 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.445e-06/0.2881, allocations: 0 / 448.1 MB, free: 5.414 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.194e-06/0.2881, allocations: 3.984 kB / 448.1 MB, free: 5.41 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002008/0.2902, allocations: 1.081 MB / 449.1 MB, free: 4.277 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.116e-06/0.2902, allocations: 0 / 449.1 MB, free: 4.277 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000234/0.2904, allocations: 43.97 kB / 449.2 MB, free: 4.234 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000749/0.2911, allocations: 280.7 kB / 449.5 MB, free: 3.957 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.937e-05/0.2912, allocations: 19.92 kB / 449.5 MB, free: 3.938 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003976/0.2952, allocations: 2.757 MB / 452.2 MB, free: 1.066 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.572e-06/0.2952, allocations: 0 / 452.2 MB, free: 1.066 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001608/0.2968, allocations: 0.7845 MB / 453 MB, free: 272 kB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001727/0.2969, allocations: 71.77 kB / 453.1 MB, free: 200 kB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.126e-05/0.297, allocations: 15.94 kB / 453.1 MB, free: 184 kB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002659/0.2973, allocations: 28.09 kB / 453.1 MB, free: 156 kB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001848/0.2974, allocations: 67.81 kB / 453.2 MB, free: 88 kB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.585e-05/0.2975, allocations: 19.98 kB / 453.2 MB, free: 68 kB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002546/0.2977, allocations: 180.5 kB / 453.4 MB, free: 15.89 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.21e-07/0.2977, allocations: 4 kB / 453.4 MB, free: 15.89 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0006277/0.2984, allocations: 132 kB / 453.5 MB, free: 15.76 MB / 366.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.003351/0.3017, allocations: 1.655 MB / 455.2 MB, free: 14.21 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001515/0.3032, allocations: 0.5899 MB / 455.8 MB, free: 13.6 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.036e-06/0.3032, allocations: 4.25 kB / 455.8 MB, free: 13.6 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008856/0.3041, allocations: 413.9 kB / 456.2 MB, free: 13.18 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004636/0.3046, allocations: 39.75 kB / 456.2 MB, free: 13.14 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005596/0.3102, allocations: 3.419 MB / 459.6 MB, free: 9.605 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004425/0.3106, allocations: 0.7801 MB / 460.4 MB, free: 8.801 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0002369/0.3109, allocations: 74.92 kB / 460.5 MB, free: 8.73 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001776/0.311, allocations: 87.39 kB / 460.6 MB, free: 8.645 MB / 366.1 MB Notification: Performance of SimCode: time 9.12e-07/0.311, allocations: 0 / 460.6 MB, free: 8.645 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05314/0.3642, allocations: 11.05 MB / 471.6 MB, free: 13.68 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.85/13.21, allocations: 11.48 kB / 471.6 MB, free: 13.67 MB / 382.1 MB " [Timeout remaining time 647] (rm -f Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.pipe ; mkfifo Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.pipe >> ../files/Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3_res.mat --tempDir=temp_Modelica_4_1_0_Modelica_Mechanics_Rotational_Examples_LossyGearDemo3_fmu --startTime=0 --stopTime=1 --stepSize=0.001 --timeout=50 --tolerance=1e-06 Modelica_4_1_0_Modelica_Mechanics_Rotational_Examples_LossyGearDemo3.fmu > Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Mechanics/Rotational/Examples/LossyGearDemo3/LossyGearDemo3.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_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.680993086891249]