Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Mechanics.Rotational.Examples.FirstGrounded.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.FirstGrounded,fileNamePrefix="Modelica_trunk_Modelica_Mechanics_Rotational_Examples_FirstGrounded",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.Rotational.Examples.FirstGrounded,fileNamePrefix="Modelica_trunk_Modelica_Mechanics_Rotational_Examples_FirstGrounded",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008531/0.0008532, allocations: 97.97 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.001046/0.001046, allocations: 200.5 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.222/1.222, allocations: 227.7 MB / 246.8 MB, free: 9.676 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0001877/0.0001877, allocations: 8 kB / 307.8 MB, free: 0.5234 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07986/0.08007, allocations: 51.53 MB / 359.4 MB, free: 13 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.FirstGrounded): time 0.002385/0.08251, allocations: 2.044 MB / 361.4 MB, free: 10.94 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.0008897/0.08342, allocations: 0.6389 MB / 362 MB, free: 10.3 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.118e-05/0.08352, allocations: 8 kB / 362 MB, free: 10.29 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001034/0.08363, allocations: 23.78 kB / 362.1 MB, free: 10.27 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001208/0.08376, allocations: 67.45 kB / 362.1 MB, free: 10.2 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001991/0.08397, allocations: 51.94 kB / 362.2 MB, free: 10.15 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002825/0.08426, allocations: 250.7 kB / 362.4 MB, free: 9.902 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001648/0.08443, allocations: 72.73 kB / 362.5 MB, free: 9.828 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001614/0.0846, allocations: 91.66 kB / 362.6 MB, free: 9.738 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001409/0.08475, allocations: 107.4 kB / 362.7 MB, free: 9.633 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 2.508e-05/0.08478, allocations: 12 kB / 362.7 MB, free: 9.621 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.219e-05/0.08484, allocations: 12 kB / 362.7 MB, free: 9.609 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 2.954e-05/0.08488, allocations: 31.86 kB / 362.8 MB, free: 9.578 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001045/0.08499, allocations: 129.1 kB / 362.9 MB, free: 9.445 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002195/0.08521, allocations: 235.3 kB / 363.1 MB, free: 9.215 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.996e-06/0.08522, allocations: 0 / 363.1 MB, free: 9.215 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.302e-06/0.08523, allocations: 4 kB / 363.1 MB, free: 9.211 MB / 302.1 MB Notification: Performance of Transformations before backend: time 4.539e-06/0.08524, allocations: 0 / 363.1 MB, free: 9.211 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: 50 * Number of variables: 50 Notification: Performance of Generate backend data structure: time 0.000549/0.0858, allocations: 487.1 kB / 363.6 MB, free: 8.684 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.11e-05/0.08584, allocations: 11.97 kB / 363.6 MB, free: 8.672 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.117e-05/0.08589, allocations: 58.72 kB / 363.7 MB, free: 8.605 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001426/0.08604, allocations: 40.66 kB / 363.7 MB, free: 8.566 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000233/0.08628, allocations: 240.6 kB / 363.9 MB, free: 8.289 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.521e-05/0.0863, allocations: 12.81 kB / 363.9 MB, free: 8.277 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.777e-05/0.08635, allocations: 32.2 kB / 364 MB, free: 8.246 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003249/0.08668, allocations: 214 kB / 364.2 MB, free: 8.023 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.466e-05/0.0867, allocations: 3.938 kB / 364.2 MB, free: 8.02 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.929e-05/0.08673, allocations: 12 kB / 364.2 MB, free: 8.008 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.613e-06/0.08674, allocations: 4 kB / 364.2 MB, free: 8.004 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002374/0.08698, allocations: 137.7 kB / 364.3 MB, free: 7.871 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008673/0.08786, allocations: 0.7054 MB / 365 MB, free: 7.109 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002327/0.0881, allocations: 157 kB / 365.2 MB, free: 6.949 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001218/0.08823, allocations: 72.83 kB / 365.3 MB, free: 6.875 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.338e-05/0.08825, allocations: 0 / 365.3 MB, free: 6.875 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.915e-05/0.08828, allocations: 38.56 kB / 365.3 MB, free: 6.828 MB / 302.1 MB Notification: Performance of pre-optimization done (n=20): time 1.022e-06/0.08828, allocations: 0 / 365.3 MB, free: 6.828 MB / 302.1 MB Notification: Performance of matching and sorting (n=24): time 0.001375/0.08966, allocations: 0.9005 MB / 366.2 MB, free: 5.84 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.05e-05/0.08971, allocations: 51.41 kB / 366.3 MB, free: 5.777 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001393/0.08985, allocations: 180.3 kB / 366.4 MB, free: 5.586 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 1.821e-05/0.08988, allocations: 29.7 kB / 366.5 MB, free: 5.551 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.92e-05/0.08995, allocations: 148.2 kB / 366.6 MB, free: 5.402 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.574e-05/0.09001, allocations: 86.75 kB / 366.7 MB, free: 5.316 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.508e-05/0.09006, allocations: 25.7 kB / 366.7 MB, free: 5.285 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 9.326e-05/0.09015, allocations: 330.8 kB / 367 MB, free: 4.953 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001211/0.09028, allocations: 63.91 kB / 367.1 MB, free: 4.891 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001303/0.09042, allocations: 100.2 kB / 367.2 MB, free: 4.777 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002478/0.09067, allocations: 168.8 kB / 367.4 MB, free: 4.598 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.152e-06/0.09068, allocations: 4 kB / 367.4 MB, free: 4.594 MB / 302.1 MB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0003938/0.09108, allocations: 258 kB / 367.6 MB, free: 4.332 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.24e-05/0.0911, allocations: 4 kB / 367.6 MB, free: 4.328 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.749e-06/0.09111, allocations: 0 / 367.6 MB, free: 4.328 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001351/0.09125, allocations: 40.95 kB / 367.7 MB, free: 4.285 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001865/0.09145, allocations: 51.92 kB / 367.7 MB, free: 4.234 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009747/0.09243, allocations: 1.374 MB / 369.1 MB, free: 2.723 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001107/0.09255, allocations: 11.94 kB / 369.1 MB, free: 2.711 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.333e-05/0.09258, allocations: 8 kB / 369.1 MB, free: 2.703 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: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (28): * Single equations (assignments): 27 * 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): 1 system {(1,3,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0001053/0.09269, allocations: 141.7 kB / 369.2 MB, free: 2.555 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.741e-05/0.09273, allocations: 15.81 kB / 369.3 MB, free: 2.539 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.655e-05/0.09278, allocations: 25.81 kB / 369.3 MB, free: 2.516 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.035e-06/0.09279, allocations: 4 kB / 369.3 MB, free: 2.512 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.375e-06/0.0928, allocations: 4.062 kB / 369.3 MB, free: 2.508 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.422e-06/0.09281, allocations: 11.86 kB / 369.3 MB, free: 2.496 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008121/0.09362, allocations: 0.6598 MB / 370 MB, free: 1.766 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.354e-06/0.09364, allocations: 0 / 370 MB, free: 1.766 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001944/0.09384, allocations: 47.92 kB / 370 MB, free: 1.719 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001003/0.09395, allocations: 32.83 kB / 370 MB, free: 1.684 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.618e-05/0.09397, allocations: 8 kB / 370.1 MB, free: 1.676 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008988/0.09488, allocations: 1.378 MB / 371.4 MB, free: 172 kB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.056e-06/0.09489, allocations: 3.938 kB / 371.4 MB, free: 168 kB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.1309/0.2258, allocations: 408.6 kB / 371.8 MB, free: 18.78 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.603e-05/0.2259, allocations: 94.14 kB / 371.9 MB, free: 18.69 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.475e-05/0.2259, allocations: 6.406 kB / 371.9 MB, free: 18.69 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001183/0.226, allocations: 8.875 kB / 371.9 MB, free: 18.69 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.648e-05/0.2261, allocations: 19.91 kB / 372 MB, free: 18.69 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.17e-05/0.2261, allocations: 6.5 kB / 372 MB, free: 18.69 MB / 302.1 MB Notification: Performance of sorting global known variables: time 8.793e-05/0.2262, allocations: 127.9 kB / 372.1 MB, free: 18.61 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.2262, allocations: 0 / 372.1 MB, free: 18.61 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003226/0.2265, allocations: 58.53 kB / 372.2 MB, free: 18.61 MB / 302.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 4 (inertia3.phi,inertia3.w,damper.phi_rel,damper.w_rel) * Number of discrete variables: 0 () * Number of discrete states: 0 () * 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): 1 system {(1,3,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0006477/0.2272, allocations: 0.9499 MB / 373.1 MB, free: 17.93 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0004414/0.2276, allocations: 301.9 kB / 373.4 MB, free: 17.82 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.064e-06/0.2277, allocations: 0 / 373.4 MB, free: 17.82 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000255/0.2279, allocations: 219.1 kB / 373.6 MB, free: 17.71 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003879/0.2283, allocations: 42 kB / 373.7 MB, free: 17.71 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002516/0.2308, allocations: 2.711 MB / 376.4 MB, free: 16.06 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000145/0.231, allocations: 0.7473 MB / 377.1 MB, free: 15.36 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 6.66e-05/0.2311, allocations: 18.09 kB / 377.1 MB, free: 15.36 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.973e-05/0.2312, allocations: 67.05 kB / 377.2 MB, free: 15.35 MB / 302.1 MB Notification: Performance of SimCode: time 3.41e-07/0.2312, allocations: 0 / 377.2 MB, free: 15.35 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01413/0.2453, allocations: 4.341 MB / 381.5 MB, free: 14.99 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001436/0.2455, allocations: 227.9 kB / 381.8 MB, free: 14.73 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.711/1.957, allocations: 0 / 381.8 MB, free: 14.73 MB / 302.1 MB (rm -f Modelica_trunk_Modelica.Mechanics.Rotational.Examples.FirstGrounded.pipe ; mkfifo Modelica_trunk_Modelica.Mechanics.Rotational.Examples.FirstGrounded.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Mechanics.Rotational.Examples.FirstGrounded.pipe >> ../files/Modelica_trunk_Modelica.Mechanics.Rotational.Examples.FirstGrounded.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_trunk_Modelica.Mechanics.Rotational.Examples.FirstGrounded_res.mat --tempDir=temp_Modelica_trunk_Modelica_Mechanics_Rotational_Examples_FirstGrounded_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Mechanics_Rotational_Examples_FirstGrounded.fmu > Modelica_trunk_Modelica.Mechanics.Rotational.Examples.FirstGrounded.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Mechanics.Rotational.Examples.FirstGrounded_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/Rotational/Examples/FirstGrounded/FirstGrounded.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Mechanics.Rotational.Examples.FirstGrounded.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) "" Variables in the reference:time,damper.phi_rel,damper.w_rel,inertia3.phi,inertia3.w Variables in the result:Jload,Jmotor,amplitude,damper.a_rel,damper.d,damper.flange_a.phi,damper.flange_a.tau,damper.flange_b.phi,damper.flange_b.tau,damper.lossPower,damper.phi_nominal,damper.phi_rel,damper.stateSelect,damper.tau,damper.useHeatPort,damper.w_rel,damping,der(damper.phi_rel),der(damper.w_rel),der(inertia1.phi),der(inertia1.w),der(inertia2.phi),der(inertia2.w),der(inertia3.phi),der(inertia3.w),f,fixed.flange.phi,fixed.flange.tau,fixed.phi0,idealGear.flange_a.phi,idealGear.flange_a.tau,idealGear.flange_b.phi,idealGear.flange_b.tau,idealGear.phi_a,idealGear.phi_b,idealGear.ratio,idealGear.useSupport,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,inertia3.J,inertia3.a,inertia3.flange_a.phi,inertia3.flange_a.tau,inertia3.flange_b.phi,inertia3.flange_b.tau,inertia3.phi,inertia3.stateSelect,inertia3.w,ratio,sine.amplitude,sine.continuous,sine.f,sine.offset,sine.phase,sine.startTime,sine.y,spring.c,spring.flange_a.phi,spring.flange_a.tau,spring.flange_b.phi,spring.flange_b.tau,spring.phi_rel,spring.phi_rel0,spring.tau,time,torque.flange.phi,torque.flange.tau,torque.tau,torque.useSupport