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.001343/0.001343, allocations: 113.6 kB / 17.78 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.001508/0.001508, allocations: 203.9 kB / 18.74 MB, free: 4.332 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.392/1.392, allocations: 227.4 MB / 247 MB, free: 10.44 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001758/0.001758, allocations: 59.89 kB / 358.3 MB, free: 13.38 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.242/0.2438, allocations: 50.55 MB / 408.8 MB, free: 1.469 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.FirstGrounded): time 0.003691/0.2475, allocations: 2.374 MB / 411.2 MB, free: 15.09 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001082/0.2487, allocations: 0.6427 MB / 411.8 MB, free: 14.44 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001195/0.2488, allocations: 7.938 kB / 411.8 MB, free: 14.43 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001439/0.2489, allocations: 35.66 kB / 411.9 MB, free: 14.4 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001378/0.2491, allocations: 71.33 kB / 411.9 MB, free: 14.33 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002368/0.2493, allocations: 63.86 kB / 412 MB, free: 14.26 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003073/0.2497, allocations: 262.7 kB / 412.3 MB, free: 14 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001831/0.2499, allocations: 92.28 kB / 412.4 MB, free: 13.91 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001861/0.25, allocations: 103.6 kB / 412.5 MB, free: 13.81 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001487/0.2502, allocations: 103.5 kB / 412.6 MB, free: 13.71 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 3.338e-05/0.2502, allocations: 20 kB / 412.6 MB, free: 13.69 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.178e-05/0.2503, allocations: 31.98 kB / 412.6 MB, free: 13.66 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 3.895e-05/0.2504, allocations: 35.86 kB / 412.6 MB, free: 13.62 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001269/0.2505, allocations: 127.3 kB / 412.8 MB, free: 13.5 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003099/0.2508, allocations: 246.1 kB / 413 MB, free: 13.26 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.951e-06/0.2508, allocations: 4 kB / 413 MB, free: 13.25 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.273e-06/0.2508, allocations: 4 kB / 413 MB, free: 13.25 MB / 334.1 MB Notification: Performance of Transformations before backend: time 5.279e-06/0.2509, allocations: 0 / 413 MB, free: 13.25 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.0007231/0.2516, allocations: 0.5182 MB / 413.5 MB, free: 12.68 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.873e-05/0.2516, allocations: 8.031 kB / 413.5 MB, free: 12.68 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.674e-05/0.2517, allocations: 54.73 kB / 413.6 MB, free: 12.61 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001513/0.2518, allocations: 36.78 kB / 413.6 MB, free: 12.58 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003302/0.2522, allocations: 256.6 kB / 413.9 MB, free: 12.29 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.426e-05/0.2522, allocations: 12.81 kB / 413.9 MB, free: 12.27 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.338e-05/0.2523, allocations: 20.38 kB / 413.9 MB, free: 12.25 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003581/0.2526, allocations: 210 kB / 414.1 MB, free: 12.04 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.879e-05/0.2526, allocations: 7.953 kB / 414.1 MB, free: 12.03 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.125e-05/0.2527, allocations: 11.98 kB / 414.1 MB, free: 12.02 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.873e-06/0.2527, allocations: 4 kB / 414.1 MB, free: 12.02 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002606/0.253, allocations: 141.5 kB / 414.3 MB, free: 11.88 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001011/0.254, allocations: 0.6978 MB / 415 MB, free: 11.12 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002649/0.2543, allocations: 146.5 kB / 415.1 MB, free: 10.97 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001279/0.2544, allocations: 72.83 kB / 415.2 MB, free: 10.9 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.674e-05/0.2544, allocations: 0 / 415.2 MB, free: 10.9 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.856e-05/0.2545, allocations: 34.56 kB / 415.2 MB, free: 10.86 MB / 334.1 MB Notification: Performance of pre-optimization done (n=20): time 1.112e-06/0.2545, allocations: 7.938 kB / 415.2 MB, free: 10.85 MB / 334.1 MB Notification: Performance of matching and sorting (n=24): time 0.001579/0.256, allocations: 0.8886 MB / 416.1 MB, free: 9.871 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.81e-05/0.2561, allocations: 51.41 kB / 416.2 MB, free: 9.809 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001794/0.2563, allocations: 180.9 kB / 416.3 MB, free: 9.617 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.103e-05/0.2563, allocations: 25.7 kB / 416.4 MB, free: 9.586 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001032/0.2564, allocations: 152.3 kB / 416.5 MB, free: 9.434 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.323e-05/0.2565, allocations: 83.28 kB / 416.6 MB, free: 9.352 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.399e-05/0.2566, allocations: 53.7 kB / 416.7 MB, free: 9.293 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001517/0.2567, allocations: 326.8 kB / 417 MB, free: 8.965 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001311/0.2569, allocations: 55.97 kB / 417 MB, free: 8.91 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001477/0.257, allocations: 100.2 kB / 417.1 MB, free: 8.797 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002874/0.2573, allocations: 176.1 kB / 417.3 MB, free: 8.609 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.132e-06/0.2573, allocations: 0 / 417.3 MB, free: 8.609 MB / 334.1 MB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0004487/0.2578, allocations: 250.1 kB / 417.5 MB, free: 8.355 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.612e-05/0.2578, allocations: 11.09 kB / 417.6 MB, free: 8.348 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.993e-06/0.2578, allocations: 4 kB / 417.6 MB, free: 8.344 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001578/0.258, allocations: 32.83 kB / 417.6 MB, free: 8.309 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002134/0.2582, allocations: 59.84 kB / 417.6 MB, free: 8.25 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001341/0.2596, allocations: 1.485 MB / 419.1 MB, free: 6.621 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001114/0.2597, allocations: 11.98 kB / 419.1 MB, free: 6.609 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.381e-05/0.2597, allocations: 8 kB / 419.2 MB, free: 6.602 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.0001356/0.2599, allocations: 137.8 kB / 419.3 MB, free: 6.457 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.276e-05/0.2599, allocations: 19.86 kB / 419.3 MB, free: 6.438 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.777e-05/0.26, allocations: 29.86 kB / 419.3 MB, free: 6.406 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.551e-06/0.26, allocations: 11.88 kB / 419.3 MB, free: 6.395 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.918e-06/0.26, allocations: 0 / 419.3 MB, free: 6.395 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.188e-06/0.26, allocations: 0 / 419.3 MB, free: 6.395 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009528/0.261, allocations: 0.6442 MB / 420 MB, free: 5.68 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.574e-06/0.261, allocations: 0 / 420 MB, free: 5.68 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002171/0.2612, allocations: 43.97 kB / 420 MB, free: 5.637 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001216/0.2613, allocations: 36.78 kB / 420.1 MB, free: 5.598 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.732e-05/0.2613, allocations: 7.984 kB / 420.1 MB, free: 5.59 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001305/0.2627, allocations: 1.485 MB / 421.6 MB, free: 3.965 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.342e-06/0.2627, allocations: 0 / 421.6 MB, free: 3.965 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005953/0.2633, allocations: 403.7 kB / 422 MB, free: 3.547 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.644e-05/0.2634, allocations: 96.97 kB / 422.1 MB, free: 3.434 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.476e-05/0.2634, allocations: 7.938 kB / 422.1 MB, free: 3.426 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001206/0.2635, allocations: 16.03 kB / 422.1 MB, free: 3.41 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.249e-05/0.2636, allocations: 19.92 kB / 422.1 MB, free: 3.391 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.326e-05/0.2636, allocations: 8 kB / 422.1 MB, free: 3.383 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0001155/0.2637, allocations: 128.1 kB / 422.2 MB, free: 3.258 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.01e-07/0.2637, allocations: 0 / 422.2 MB, free: 3.258 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0003352/0.2641, allocations: 60 kB / 422.3 MB, free: 3.199 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.0008941/0.265, allocations: 0.9406 MB / 423.2 MB, free: 2.227 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0005438/0.2655, allocations: 298.7 kB / 423.5 MB, free: 1.922 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 1.903e-06/0.2655, allocations: 0 / 423.5 MB, free: 1.922 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000325/0.2659, allocations: 218.1 kB / 423.7 MB, free: 1.699 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004086/0.2663, allocations: 51.52 kB / 423.8 MB, free: 1.652 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003273/0.2696, allocations: 2.542 MB / 426.3 MB, free: 14.98 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003932/0.27, allocations: 0.7404 MB / 427.1 MB, free: 14.21 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 8.223e-05/0.2701, allocations: 25.92 kB / 427.1 MB, free: 14.19 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000107/0.2702, allocations: 67.42 kB / 427.2 MB, free: 14.12 MB / 350.1 MB Notification: Performance of SimCode: time 2.1e-07/0.2702, allocations: 0 / 427.2 MB, free: 14.12 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0322/0.3024, allocations: 4.759 MB / 431.9 MB, free: 9.496 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.84/10.14, allocations: 6.625 kB / 431.9 MB, free: 9.492 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.1.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