Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001305/0.001305, allocations: 114 kB / 20.43 MB, free: 1.457 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001482/0.001482, allocations: 214.2 kB / 23.74 MB, free: 4.672 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.383/1.383, allocations: 230.5 MB / 257.4 MB, free: 7.984 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Mechanics.Rotational.Examples.LossyGearDemo1,fileNamePrefix="Modelica_trunk_Modelica_Mechanics_Rotational_Examples_LossyGearDemo1",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.Rotational.Examples.LossyGearDemo1,fileNamePrefix="Modelica_trunk_Modelica_Mechanics_Rotational_Examples_LossyGearDemo1",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002675/0.002675, allocations: 63.91 kB / 377.8 MB, free: 2.988 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.27/0.2727, allocations: 53.42 MB / 431.2 MB, free: 6.648 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.LossyGearDemo1): time 0.004121/0.2768, allocations: 2.567 MB / 433.7 MB, free: 4.074 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002014/0.2788, allocations: 1.158 MB / 434.9 MB, free: 2.91 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001431/0.279, allocations: 4 kB / 434.9 MB, free: 2.906 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002953/0.2793, allocations: 67.42 kB / 435 MB, free: 2.84 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004707/0.2798, allocations: 170.6 kB / 435.1 MB, free: 2.676 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004307/0.2802, allocations: 179.6 kB / 435.3 MB, free: 2.5 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006064/0.2808, allocations: 0.5219 MB / 435.8 MB, free: 1.977 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001735/0.281, allocations: 65.08 kB / 435.9 MB, free: 1.906 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003932/0.2814, allocations: 243.4 kB / 436.1 MB, free: 1.668 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003867/0.2817, allocations: 279.1 kB / 436.4 MB, free: 1.395 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 7.148e-05/0.2818, allocations: 44 kB / 436.5 MB, free: 1.352 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002681/0.2821, allocations: 135.9 kB / 436.6 MB, free: 1.219 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001519/0.2822, allocations: 127.6 kB / 436.7 MB, free: 1.094 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000207/0.2824, allocations: 199.1 kB / 436.9 MB, free: 0.8984 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006939/0.2831, allocations: 0.5414 MB / 437.4 MB, free: 368 kB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.839e-06/0.2831, allocations: 0 / 437.4 MB, free: 368 kB / 334.1 MB Notification: Performance of FrontEnd: time 1.573e-06/0.2831, allocations: 0 / 437.4 MB, free: 368 kB / 334.1 MB Notification: Performance of Transformations before backend: time 7.564e-06/0.2832, allocations: 4 kB / 437.5 MB, free: 364 kB / 334.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.001367/0.2845, allocations: 0.6452 MB / 438.1 MB, free: 15.68 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.574e-05/0.2846, allocations: 8.031 kB / 438.1 MB, free: 15.67 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.006e-05/0.2847, allocations: 66.73 kB / 438.2 MB, free: 15.6 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003979/0.2851, allocations: 64.67 kB / 438.2 MB, free: 15.54 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005802/0.2856, allocations: 258.6 kB / 438.5 MB, free: 15.26 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001797/0.2858, allocations: 148 kB / 438.6 MB, free: 15.09 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.354e-05/0.2859, allocations: 36.33 kB / 438.7 MB, free: 15.05 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008428/0.2867, allocations: 424.8 kB / 439.1 MB, free: 14.63 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.728e-05/0.2867, allocations: 0 / 439.1 MB, free: 14.63 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.77e-05/0.2868, allocations: 12 kB / 439.1 MB, free: 14.62 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.061e-05/0.2868, allocations: 15.94 kB / 439.1 MB, free: 14.6 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001011/0.2878, allocations: 478.2 kB / 439.6 MB, free: 14.14 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001801/0.2896, allocations: 0.9243 MB / 440.5 MB, free: 13.17 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008346/0.2904, allocations: 371.5 kB / 440.9 MB, free: 12.8 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004613/0.2909, allocations: 210.1 kB / 441.1 MB, free: 12.59 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.343e-05/0.2909, allocations: 12.42 kB / 441.1 MB, free: 12.58 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.356e-05/0.291, allocations: 35 kB / 441.1 MB, free: 12.54 MB / 350.1 MB Notification: Performance of pre-optimization done (n=49): time 1.723e-06/0.291, allocations: 0 / 441.1 MB, free: 12.54 MB / 350.1 MB Notification: Performance of matching and sorting (n=55): time 0.005255/0.2962, allocations: 1.921 MB / 443 MB, free: 10.56 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.38e-05/0.2963, allocations: 85.61 kB / 443.1 MB, free: 10.46 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003717/0.2967, allocations: 268.9 kB / 443.4 MB, free: 10.18 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 4.821e-05/0.2967, allocations: 37.7 kB / 443.4 MB, free: 10.14 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001012/0.2968, allocations: 137.2 kB / 443.6 MB, free: 10 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000175/0.297, allocations: 206.3 kB / 443.8 MB, free: 9.797 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001698/0.2972, allocations: 90.17 kB / 443.8 MB, free: 9.703 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001693/0.2973, allocations: 342.8 kB / 444.2 MB, free: 9.359 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000451/0.2978, allocations: 188.9 kB / 444.4 MB, free: 9.176 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004891/0.2983, allocations: 243.9 kB / 444.6 MB, free: 8.93 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008476/0.2991, allocations: 387.3 kB / 445 MB, free: 8.551 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.393e-06/0.2991, allocations: 0 / 445 MB, free: 8.551 MB / 350.1 MB Notification: Performance of matching and sorting (n=59) (initialization): time 0.001293/0.3004, allocations: 0.6004 MB / 445.6 MB, free: 7.938 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.227e-05/0.3004, allocations: 11.92 kB / 445.6 MB, free: 7.926 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.084e-05/0.3005, allocations: 4 kB / 445.6 MB, free: 7.922 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008279/0.3013, allocations: 298.5 kB / 445.9 MB, free: 7.629 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003152/0.3016, allocations: 71.88 kB / 446 MB, free: 7.559 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004242/0.3058, allocations: 2.837 MB / 448.8 MB, free: 4.605 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003089/0.3061, allocations: 27.97 kB / 448.8 MB, free: 4.578 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.822e-05/0.3062, allocations: 20 kB / 448.8 MB, free: 4.559 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.0002383/0.3064, allocations: 169.2 kB / 449 MB, free: 4.387 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.944e-05/0.3065, allocations: 31.81 kB / 449 MB, free: 4.355 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001105/0.3066, allocations: 55.61 kB / 449.1 MB, free: 4.305 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.119e-06/0.3066, allocations: 4 kB / 449.1 MB, free: 4.301 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.506e-06/0.3066, allocations: 0 / 449.1 MB, free: 4.301 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.063e-06/0.3067, allocations: 4 kB / 449.1 MB, free: 4.297 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002431/0.3091, allocations: 1.253 MB / 450.3 MB, free: 2.988 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.071e-06/0.3091, allocations: 4 kB / 450.4 MB, free: 2.984 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003199/0.3094, allocations: 63.95 kB / 450.4 MB, free: 2.922 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007273/0.3101, allocations: 297.2 kB / 450.7 MB, free: 2.629 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.089e-05/0.3102, allocations: 15.98 kB / 450.7 MB, free: 2.613 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004023/0.3142, allocations: 2.735 MB / 453.5 MB, free: 15.77 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.104e-06/0.3142, allocations: 0 / 453.5 MB, free: 15.77 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002024/0.3162, allocations: 0.9525 MB / 454.4 MB, free: 14.79 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002239/0.3164, allocations: 83.75 kB / 454.5 MB, free: 14.71 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.307e-05/0.3165, allocations: 15.94 kB / 454.5 MB, free: 14.69 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003143/0.3168, allocations: 23.97 kB / 454.5 MB, free: 14.67 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002015/0.317, allocations: 76.3 kB / 454.6 MB, free: 14.59 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.418e-05/0.3171, allocations: 19.98 kB / 454.6 MB, free: 14.57 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0002916/0.3174, allocations: 200.5 kB / 454.8 MB, free: 14.38 MB / 366.1 MB Notification: Performance of sort global known variables: time 9e-08/0.3174, allocations: 0 / 454.8 MB, free: 14.38 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.000676/0.3181, allocations: 152 kB / 455 MB, free: 14.23 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.003687/0.3217, allocations: 1.787 MB / 456.8 MB, free: 12.53 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001609/0.3234, allocations: 0.6635 MB / 457.4 MB, free: 11.86 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.936e-06/0.3234, allocations: 0 / 457.4 MB, free: 11.86 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009224/0.3243, allocations: 460.2 kB / 457.9 MB, free: 11.39 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004909/0.3248, allocations: 48.41 kB / 457.9 MB, free: 11.35 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006885/0.3317, allocations: 3.796 MB / 461.7 MB, free: 7.449 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005008/0.3322, allocations: 0.8045 MB / 462.5 MB, free: 6.613 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0002803/0.3324, allocations: 82.88 kB / 462.6 MB, free: 6.531 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002288/0.3327, allocations: 103.4 kB / 462.7 MB, free: 6.43 MB / 366.1 MB Notification: Performance of SimCode: time 7.92e-07/0.3327, allocations: 4 kB / 462.7 MB, free: 6.426 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05108/0.3837, allocations: 12.21 MB / 474.9 MB, free: 10.27 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.78/13.17, allocations: 10.25 kB / 474.9 MB, free: 10.27 MB / 382.1 MB " [Timeout remaining time 647] (rm -f Modelica_trunk_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.pipe ; mkfifo Modelica_trunk_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.pipe >> ../files/Modelica_trunk_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_trunk_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1_res.mat --tempDir=temp_Modelica_trunk_Modelica_Mechanics_Rotational_Examples_LossyGearDemo1_fmu --startTime=0 --stopTime=0.5 --stepSize=0.001 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Mechanics_Rotational_Examples_LossyGearDemo1.fmu > Modelica_trunk_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_trunk_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_trunk_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.4731085319072]