Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) 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.LossyGearDemo3,fileNamePrefix="Modelica_trunk_Modelica_Mechanics_Rotational_Examples_LossyGearDemo3",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.Rotational.Examples.LossyGearDemo3,fileNamePrefix="Modelica_trunk_Modelica_Mechanics_Rotational_Examples_LossyGearDemo3",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008141/0.0008142, allocations: 95.69 kB / 17.35 MB, free: 6.027 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0009424/0.0009424, allocations: 200.1 kB / 18.28 MB, free: 5.367 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.197/1.197, allocations: 227.7 MB / 246.8 MB, free: 11.39 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002173/0.0002174, allocations: 7.938 kB / 307.8 MB, free: 0.7148 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07819/0.07842, allocations: 51.52 MB / 359.4 MB, free: 13.19 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.LossyGearDemo3): time 0.002358/0.08081, allocations: 2.131 MB / 361.5 MB, free: 11.05 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001469/0.0823, allocations: 1.034 MB / 362.5 MB, free: 10.01 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001296/0.08245, allocations: 4 kB / 362.5 MB, free: 10 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002332/0.08269, allocations: 59.67 kB / 362.6 MB, free: 9.945 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000335/0.08304, allocations: 128.2 kB / 362.7 MB, free: 9.816 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003069/0.08336, allocations: 143.8 kB / 362.9 MB, free: 9.676 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004074/0.08377, allocations: 442.7 kB / 363.3 MB, free: 9.242 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001315/0.08391, allocations: 60.7 kB / 363.3 MB, free: 9.184 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002086/0.08413, allocations: 183.4 kB / 363.5 MB, free: 9.004 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002629/0.0844, allocations: 223.2 kB / 363.7 MB, free: 8.785 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 5.16e-05/0.08446, allocations: 20 kB / 363.8 MB, free: 8.766 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001902/0.08465, allocations: 107.9 kB / 363.9 MB, free: 8.66 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001099/0.08477, allocations: 91.69 kB / 364 MB, free: 8.57 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001426/0.08492, allocations: 176.9 kB / 364.1 MB, free: 8.391 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004447/0.08537, allocations: 478.7 kB / 364.6 MB, free: 7.922 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.186e-06/0.08539, allocations: 4 kB / 364.6 MB, free: 7.918 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.383e-06/0.08539, allocations: 0 / 364.6 MB, free: 7.918 MB / 302.1 MB Notification: Performance of Transformations before backend: time 8.926e-06/0.08541, allocations: 0 / 364.6 MB, free: 7.918 MB / 302.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.0009662/0.08638, allocations: 0.5928 MB / 365.2 MB, free: 7.277 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.317e-05/0.08642, allocations: 12.03 kB / 365.2 MB, free: 7.266 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.515e-05/0.0865, allocations: 66.72 kB / 365.3 MB, free: 7.191 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002711/0.08678, allocations: 48.55 kB / 365.3 MB, free: 7.145 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003687/0.08715, allocations: 305.3 kB / 365.6 MB, free: 6.805 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001117/0.08728, allocations: 88.52 kB / 365.7 MB, free: 6.707 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.809e-05/0.08734, allocations: 36.36 kB / 365.7 MB, free: 6.672 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006506/0.088, allocations: 385.2 kB / 366.1 MB, free: 6.277 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.548e-05/0.08802, allocations: 7.906 kB / 366.1 MB, free: 6.27 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.769e-05/0.08807, allocations: 8 kB / 366.1 MB, free: 6.262 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.993e-06/0.08808, allocations: 8 kB / 366.1 MB, free: 6.254 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007952/0.08888, allocations: 433.9 kB / 366.6 MB, free: 5.828 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001824/0.09072, allocations: 1.28 MB / 367.8 MB, free: 4.473 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006306/0.09136, allocations: 344.6 kB / 368.2 MB, free: 4.129 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003684/0.09174, allocations: 192.8 kB / 368.4 MB, free: 3.938 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.803e-05/0.09178, allocations: 12.08 kB / 368.4 MB, free: 3.926 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.02e-05/0.0918, allocations: 34.56 kB / 368.4 MB, free: 3.883 MB / 302.1 MB Notification: Performance of pre-optimization done (n=43): time 1.423e-06/0.09181, allocations: 4 kB / 368.4 MB, free: 3.879 MB / 302.1 MB Notification: Performance of matching and sorting (n=45): time 0.004447/0.09626, allocations: 1.957 MB / 370.4 MB, free: 1.809 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.204e-05/0.09632, allocations: 88.86 kB / 370.5 MB, free: 1.703 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000266/0.09659, allocations: 246.1 kB / 370.7 MB, free: 1.449 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 4.177e-05/0.09664, allocations: 37.7 kB / 370.7 MB, free: 1.406 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.948e-05/0.09672, allocations: 132.7 kB / 370.9 MB, free: 1.273 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001058/0.09683, allocations: 149.8 kB / 371 MB, free: 1.125 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.26e-05/0.0969, allocations: 45.69 kB / 371.1 MB, free: 1.074 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 9.432e-05/0.097, allocations: 334.8 kB / 371.4 MB, free: 0.7383 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003608/0.09736, allocations: 168.8 kB / 371.5 MB, free: 0.5742 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003799/0.09775, allocations: 225.9 kB / 371.8 MB, free: 344 kB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.1392/0.2369, allocations: 344.5 kB / 372.1 MB, free: 19.16 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.486e-06/0.237, allocations: 0 / 372.1 MB, free: 19.16 MB / 302.1 MB Notification: Performance of matching and sorting (n=52) (initialization): time 0.001292/0.2383, allocations: 0.5588 MB / 372.7 MB, free: 19.12 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.755e-05/0.2383, allocations: 7.172 kB / 372.7 MB, free: 19.12 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.684e-06/0.2383, allocations: 1.156 kB / 372.7 MB, free: 19.12 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007514/0.2391, allocations: 293.8 kB / 373 MB, free: 19.11 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002326/0.2393, allocations: 57.39 kB / 373 MB, free: 19.11 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003228/0.2425, allocations: 2.668 MB / 375.7 MB, free: 17.77 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002588/0.2428, allocations: 30.59 kB / 375.7 MB, free: 17.77 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.524e-05/0.2429, allocations: 23.03 kB / 375.7 MB, free: 17.76 MB / 302.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.0001654/0.243, allocations: 160.4 kB / 375.9 MB, free: 17.64 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.524e-05/0.2431, allocations: 29.38 kB / 375.9 MB, free: 17.63 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001039/0.2432, allocations: 44.86 kB / 376 MB, free: 17.62 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.819e-06/0.2432, allocations: 4.281 kB / 376 MB, free: 17.62 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.328e-06/0.2432, allocations: 0.5 kB / 376 MB, free: 17.62 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.869e-06/0.2433, allocations: 3.438 kB / 376 MB, free: 17.62 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00172/0.245, allocations: 1.123 MB / 377.1 MB, free: 17.01 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.214e-06/0.245, allocations: 0 / 377.1 MB, free: 17.01 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002158/0.2452, allocations: 56.66 kB / 377.1 MB, free: 17.01 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006827/0.2459, allocations: 280.2 kB / 377.4 MB, free: 16.94 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.358e-05/0.246, allocations: 20.28 kB / 377.4 MB, free: 16.93 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002774/0.2487, allocations: 2.613 MB / 380.1 MB, free: 14.98 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.432e-06/0.2487, allocations: 0 / 380.1 MB, free: 14.98 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001377/0.2501, allocations: 0.8216 MB / 380.9 MB, free: 14.57 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001262/0.2503, allocations: 154.6 kB / 381 MB, free: 14.45 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.079e-05/0.2503, allocations: 12.39 kB / 381 MB, free: 14.44 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002585/0.2506, allocations: 32.59 kB / 381.1 MB, free: 14.43 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001608/0.2508, allocations: 68.17 kB / 381.1 MB, free: 14.41 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.092e-05/0.2508, allocations: 13.19 kB / 381.2 MB, free: 14.41 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001865/0.251, allocations: 184.4 kB / 381.3 MB, free: 14.31 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.31e-07/0.251, allocations: 0 / 381.3 MB, free: 14.31 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0005365/0.2515, allocations: 139.7 kB / 381.5 MB, free: 14.29 MB / 302.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.002218/0.2538, allocations: 1.66 MB / 383.1 MB, free: 13.25 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001077/0.2549, allocations: 0.6305 MB / 383.8 MB, free: 12.95 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.424e-06/0.2549, allocations: 1.438 kB / 383.8 MB, free: 12.95 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006112/0.2555, allocations: 431.8 kB / 384.2 MB, free: 12.71 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003952/0.2559, allocations: 40.86 kB / 384.2 MB, free: 12.7 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004371/0.2603, allocations: 3.605 MB / 387.8 MB, free: 10.39 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001934/0.2605, allocations: 0.7776 MB / 388.6 MB, free: 9.695 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.000211/0.2607, allocations: 76.48 kB / 388.7 MB, free: 9.664 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000144/0.2608, allocations: 86.62 kB / 388.8 MB, free: 9.609 MB / 302.1 MB Notification: Performance of SimCode: time 3.01e-07/0.2609, allocations: 0 / 388.8 MB, free: 9.609 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02691/0.2878, allocations: 9.539 MB / 398.3 MB, free: 5.992 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000164/0.288, allocations: 282.5 kB / 398.6 MB, free: 5.613 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.886/2.174, allocations: 3.938 kB / 398.6 MB, free: 5.609 MB / 302.1 MB (rm -f Modelica_trunk_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.pipe ; mkfifo Modelica_trunk_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.pipe >> ../files/Modelica_trunk_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_trunk_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3_res.mat --tempDir=temp_Modelica_trunk_Modelica_Mechanics_Rotational_Examples_LossyGearDemo3_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Mechanics_Rotational_Examples_LossyGearDemo3.fmu > Modelica_trunk_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/Rotational/Examples/LossyGearDemo3/LossyGearDemo3.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) "" Variables in the reference:time,Inertia2.phi,Inertia2.w,gear.mode Variables in the result:Inertia1.J,Inertia1.a,Inertia1.flange_a.phi,Inertia1.flange_a.tau,Inertia1.flange_b.phi,Inertia1.flange_b.tau,Inertia1.phi,Inertia1.stateSelect,Inertia1.w,Inertia2.J,Inertia2.a,Inertia2.flange_a.phi,Inertia2.flange_a.tau,Inertia2.flange_b.phi,Inertia2.flange_b.tau,Inertia2.phi,Inertia2.stateSelect,Inertia2.w,der(Inertia1.w),der(Inertia2.phi),der(Inertia2.w),der(gear.phi_a),gear.a_a,gear.eta_mf1,gear.eta_mf2,gear.flange_a.phi,gear.flange_a.tau,gear.flange_b.phi,gear.flange_b.tau,gear.ideal,gear.interpolation_result[1,1],gear.interpolation_result[1,2],gear.interpolation_result[1,3],gear.interpolation_result[1,4],gear.locked,gear.lossPower,gear.lossTable[1,1],gear.lossTable[1,2],gear.lossTable[1,3],gear.lossTable[1,4],gear.lossTable[1,5],gear.mode,gear.phi_a,gear.phi_b,gear.quadrant1,gear.quadrant1_p,gear.quadrant2,gear.quadrant2_p,gear.quadrant3,gear.quadrant3_m,gear.quadrant4,gear.quadrant4_m,gear.ratio,gear.sa,gear.smoothness,gear.startBackward,gear.startForward,gear.tauLoss,gear.tauLossMax,gear.tauLossMax_p,gear.tauLossMin,gear.tauLossMin_m,gear.tau_aPos,gear.tau_bf1,gear.tau_bf2,gear.tau_bf_a,gear.tau_eta,gear.tau_etaPos,gear.tau_eta_m,gear.tau_eta_p,gear.useHeatPort,gear.useSupport,gear.w_a,step.height,step.offset,step.startTime,step.y,step1.height,step1.offset,step1.startTime,step1.y,time,torque1.flange.phi,torque1.flange.tau,torque1.tau,torque1.useSupport,torque2.flange.phi,torque2.flange.tau,torque2.tau,torque2.useSupport