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.001199/0.001199, allocations: 122.8 kB / 17.79 MB, free: 5.277 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001328/0.001328, allocations: 202 kB / 18.73 MB, free: 4.34 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.285/1.285, allocations: 227.4 MB / 246.9 MB, free: 10.5 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001153/0.001153, allocations: 59.91 kB / 358.2 MB, free: 13.46 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2426/0.2438, allocations: 50.55 MB / 408.8 MB, free: 1.562 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.FirstGrounded): time 0.003234/0.2471, allocations: 2.363 MB / 411.1 MB, free: 15.2 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001006/0.2481, allocations: 0.6427 MB / 411.8 MB, free: 14.55 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001218/0.2483, allocations: 8 kB / 411.8 MB, free: 14.54 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001386/0.2484, allocations: 35.66 kB / 411.8 MB, free: 14.5 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001269/0.2486, allocations: 63.36 kB / 411.9 MB, free: 14.44 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002531/0.2488, allocations: 67.84 kB / 411.9 MB, free: 14.38 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002498/0.2491, allocations: 262.7 kB / 412.2 MB, free: 14.11 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001906/0.2493, allocations: 96.27 kB / 412.3 MB, free: 14.02 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001726/0.2495, allocations: 107.6 kB / 412.4 MB, free: 13.91 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001346/0.2496, allocations: 103.5 kB / 412.5 MB, free: 13.81 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 3.056e-05/0.2496, allocations: 20 kB / 412.5 MB, free: 13.79 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.308e-05/0.2497, allocations: 23.98 kB / 412.5 MB, free: 13.77 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 4.059e-05/0.2498, allocations: 47.78 kB / 412.6 MB, free: 13.72 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001012/0.2499, allocations: 119.4 kB / 412.7 MB, free: 13.6 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002554/0.2501, allocations: 244.8 kB / 412.9 MB, free: 13.36 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.288e-06/0.2501, allocations: 0 / 412.9 MB, free: 13.36 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.443e-06/0.2502, allocations: 4 kB / 412.9 MB, free: 13.36 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.06e-05/0.2502, allocations: 4 kB / 412.9 MB, free: 13.36 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: 50 * Number of variables: 50 Notification: Performance of Generate backend data structure: time 0.0006612/0.2508, allocations: 0.5145 MB / 413.5 MB, free: 12.79 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.363e-05/0.2509, allocations: 11.97 kB / 413.5 MB, free: 12.78 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.808e-05/0.2509, allocations: 58.67 kB / 413.5 MB, free: 12.71 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001471/0.2511, allocations: 36.64 kB / 413.6 MB, free: 12.68 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003446/0.2514, allocations: 244.6 kB / 413.8 MB, free: 12.4 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.763e-05/0.2515, allocations: 16.81 kB / 413.8 MB, free: 12.38 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.315e-05/0.2515, allocations: 20.38 kB / 413.8 MB, free: 12.36 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003224/0.2518, allocations: 210 kB / 414 MB, free: 12.15 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.041e-05/0.2519, allocations: 7.906 kB / 414 MB, free: 12.14 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.882e-05/0.2519, allocations: 8 kB / 414.1 MB, free: 12.13 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.472e-06/0.2519, allocations: 4 kB / 414.1 MB, free: 12.13 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002326/0.2521, allocations: 133.6 kB / 414.2 MB, free: 12 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009046/0.2531, allocations: 0.7015 MB / 414.9 MB, free: 11.24 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002424/0.2533, allocations: 146.5 kB / 415 MB, free: 11.09 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001139/0.2534, allocations: 72.77 kB / 415.1 MB, free: 11.02 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.065e-05/0.2535, allocations: 8 kB / 415.1 MB, free: 11.01 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.192e-05/0.2535, allocations: 34.56 kB / 415.1 MB, free: 10.96 MB / 334.1 MB Notification: Performance of pre-optimization done (n=20): time 1.322e-06/0.2535, allocations: 0 / 415.1 MB, free: 10.96 MB / 334.1 MB Notification: Performance of matching and sorting (n=24): time 0.00148/0.255, allocations: 0.8884 MB / 416 MB, free: 9.988 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.36e-05/0.255, allocations: 55.41 kB / 416.1 MB, free: 9.922 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001625/0.2552, allocations: 184.8 kB / 416.3 MB, free: 9.727 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 1.776e-05/0.2552, allocations: 29.7 kB / 416.3 MB, free: 9.691 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.865e-05/0.2553, allocations: 140.3 kB / 416.4 MB, free: 9.551 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.169e-05/0.2554, allocations: 86.73 kB / 416.5 MB, free: 9.465 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7e-05/0.2555, allocations: 49.7 kB / 416.6 MB, free: 9.41 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001144/0.2556, allocations: 330.8 kB / 416.9 MB, free: 9.078 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001125/0.2557, allocations: 55.97 kB / 416.9 MB, free: 9.023 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001316/0.2558, allocations: 104.2 kB / 417 MB, free: 8.906 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000254/0.2561, allocations: 168.2 kB / 417.2 MB, free: 8.727 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.113e-06/0.2561, allocations: 4 kB / 417.2 MB, free: 8.723 MB / 334.1 MB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0004076/0.2565, allocations: 250 kB / 417.5 MB, free: 8.469 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.713e-05/0.2565, allocations: 10.94 kB / 417.5 MB, free: 8.461 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.546e-06/0.2566, allocations: 4 kB / 417.5 MB, free: 8.457 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001849/0.2568, allocations: 36.77 kB / 417.5 MB, free: 8.418 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002121/0.257, allocations: 55.91 kB / 417.6 MB, free: 8.363 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001169/0.2582, allocations: 1.469 MB / 419 MB, free: 6.75 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001198/0.2583, allocations: 16.02 kB / 419 MB, free: 6.734 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.454e-05/0.2583, allocations: 8 kB / 419.1 MB, free: 6.727 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: 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.0001148/0.2584, allocations: 141.8 kB / 419.2 MB, free: 6.578 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.844e-05/0.2585, allocations: 15.81 kB / 419.2 MB, free: 6.562 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.801e-05/0.2585, allocations: 29.86 kB / 419.2 MB, free: 6.531 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.396e-06/0.2585, allocations: 3.938 kB / 419.2 MB, free: 6.527 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.507e-06/0.2585, allocations: 4 kB / 419.2 MB, free: 6.523 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.829e-06/0.2586, allocations: 3.938 kB / 419.3 MB, free: 6.52 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008447/0.2594, allocations: 0.648 MB / 419.9 MB, free: 5.801 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.635e-06/0.2594, allocations: 0 / 419.9 MB, free: 5.801 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002058/0.2596, allocations: 47.91 kB / 419.9 MB, free: 5.754 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001132/0.2598, allocations: 36.97 kB / 420 MB, free: 5.715 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.861e-05/0.2598, allocations: 7.984 kB / 420 MB, free: 5.707 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001078/0.2609, allocations: 1.481 MB / 421.5 MB, free: 4.086 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.393e-06/0.2609, allocations: 0 / 421.5 MB, free: 4.086 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005537/0.2614, allocations: 407.5 kB / 421.9 MB, free: 3.664 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.542e-05/0.2615, allocations: 92.92 kB / 422 MB, free: 3.555 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.38e-05/0.2615, allocations: 4 kB / 422 MB, free: 3.551 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001231/0.2617, allocations: 12.03 kB / 422 MB, free: 3.539 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.185e-05/0.2617, allocations: 23.92 kB / 422 MB, free: 3.516 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.088e-05/0.2618, allocations: 4 kB / 422 MB, free: 3.512 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.000107/0.2619, allocations: 128.1 kB / 422.1 MB, free: 3.387 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.2619, allocations: 0 / 422.1 MB, free: 3.387 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0003431/0.2622, allocations: 60 kB / 422.2 MB, free: 3.328 MB / 334.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.000821/0.2631, allocations: 0.9366 MB / 423.1 MB, free: 2.359 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0005132/0.2636, allocations: 302.6 kB / 423.4 MB, free: 2.051 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.275e-06/0.2636, allocations: 0 / 423.4 MB, free: 2.051 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002819/0.2639, allocations: 222.1 kB / 423.6 MB, free: 1.824 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004144/0.2643, allocations: 48.22 kB / 423.7 MB, free: 1.777 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002922/0.2672, allocations: 2.535 MB / 426.2 MB, free: 15.11 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002742/0.2675, allocations: 0.7404 MB / 427 MB, free: 14.34 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 7.888e-05/0.2676, allocations: 25.94 kB / 427 MB, free: 14.32 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.367e-05/0.2677, allocations: 63.42 kB / 427 MB, free: 14.26 MB / 350.1 MB Notification: Performance of SimCode: time 2.114e-06/0.2677, allocations: 0 / 427 MB, free: 14.26 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02406/0.2918, allocations: 4.847 MB / 431.9 MB, free: 9.547 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.345/9.636, allocations: 4 kB / 431.9 MB, free: 9.543 MB / 350.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