Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain.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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo) 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(ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Rotational_ForUsersGuide_SimpleDriveTrain",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Rotational_ForUsersGuide_SimpleDriveTrain",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001492/0.001492, allocations: 118.8 kB / 17.79 MB, free: 5.262 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.00174/0.00174, allocations: 202 kB / 18.73 MB, free: 4.32 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.384/1.384, allocations: 227.4 MB / 246.9 MB, free: 10.46 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2166/0.2166, allocations: 46.09 MB / 344.3 MB, free: 11.5 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001553/0.001553, allocations: 75.88 kB / 480.8 MB, free: 4.59 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3126/0.3142, allocations: 62.43 MB / 0.5305 GB, free: 13.42 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain): time 0.003131/0.3174, allocations: 1.93 MB / 0.5324 GB, free: 11.91 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.001025/0.3184, allocations: 0.5536 MB / 0.5329 GB, free: 11.47 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001161/0.3186, allocations: 4.062 kB / 0.5329 GB, free: 11.47 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001405/0.3187, allocations: 21.11 kB / 0.5329 GB, free: 11.45 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001078/0.3189, allocations: 44.89 kB / 0.533 GB, free: 11.41 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002699/0.3191, allocations: 47.92 kB / 0.533 GB, free: 11.37 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002059/0.3194, allocations: 149.5 kB / 0.5332 GB, free: 11.28 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001791/0.3195, allocations: 61.45 kB / 0.5332 GB, free: 11.25 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001775/0.3197, allocations: 70.89 kB / 0.5333 GB, free: 11.2 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001154/0.3199, allocations: 63.39 kB / 0.5334 GB, free: 11.16 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 2.697e-05/0.3199, allocations: 12.06 kB / 0.5334 GB, free: 11.16 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.559e-05/0.32, allocations: 13.44 kB / 0.5334 GB, free: 11.16 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 3.609e-05/0.32, allocations: 35.22 kB / 0.5334 GB, free: 11.13 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 8.189e-05/0.3201, allocations: 74.17 kB / 0.5335 GB, free: 11.08 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002518/0.3203, allocations: 156.2 kB / 0.5336 GB, free: 10.97 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.631e-06/0.3204, allocations: 0 / 0.5336 GB, free: 10.97 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.884e-06/0.3204, allocations: 0 / 0.5336 GB, free: 10.97 MB / 398.1 MB Notification: Performance of Transformations before backend: time 1.224e-05/0.3204, allocations: 1.031 kB / 0.5336 GB, free: 10.97 MB / 398.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 32 * Number of variables: 32 Notification: Performance of Generate backend data structure: time 0.0006111/0.321, allocations: 438.5 kB / 0.5341 GB, free: 10.54 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.471e-05/0.3211, allocations: 9.75 kB / 0.5341 GB, free: 10.54 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.385e-05/0.3211, allocations: 45.86 kB / 0.5341 GB, free: 10.49 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001602/0.3213, allocations: 18.38 kB / 0.5341 GB, free: 10.48 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003226/0.3216, allocations: 217.4 kB / 0.5343 GB, free: 10.25 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.652e-05/0.3216, allocations: 10.19 kB / 0.5343 GB, free: 10.24 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.783e-05/0.3217, allocations: 12.59 kB / 0.5344 GB, free: 10.24 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003019/0.322, allocations: 135 kB / 0.5345 GB, free: 10.14 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.531e-05/0.322, allocations: 5.062 kB / 0.5345 GB, free: 10.14 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.623e-05/0.322, allocations: 5.188 kB / 0.5345 GB, free: 10.14 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.065e-05/0.3221, allocations: 3.875 kB / 0.5345 GB, free: 10.14 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001898/0.3223, allocations: 80.48 kB / 0.5346 GB, free: 10.1 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007123/0.323, allocations: 460.1 kB / 0.535 GB, free: 9.684 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002509/0.3232, allocations: 129.5 kB / 0.5351 GB, free: 9.605 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001146/0.3234, allocations: 57.7 kB / 0.5352 GB, free: 9.574 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.145e-05/0.3234, allocations: 1.375 kB / 0.5352 GB, free: 9.574 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.623e-05/0.3234, allocations: 39.94 kB / 0.5352 GB, free: 9.527 MB / 398.1 MB Notification: Performance of pre-optimization done (n=13): time 1.563e-06/0.3234, allocations: 0 / 0.5352 GB, free: 9.527 MB / 398.1 MB Notification: Performance of matching and sorting (n=19): time 0.001537/0.325, allocations: 0.8069 MB / 0.536 GB, free: 8.859 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.068e-05/0.325, allocations: 53.81 kB / 0.5361 GB, free: 8.797 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001634/0.3252, allocations: 145.7 kB / 0.5362 GB, free: 8.672 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 2.509e-05/0.3252, allocations: 34.95 kB / 0.5362 GB, free: 8.633 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.789e-05/0.3253, allocations: 114.8 kB / 0.5364 GB, free: 8.52 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.232e-05/0.3254, allocations: 65.5 kB / 0.5364 GB, free: 8.461 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.896e-05/0.3255, allocations: 41.61 kB / 0.5365 GB, free: 8.426 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001204/0.3256, allocations: 326.1 kB / 0.5368 GB, free: 8.102 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.958e-05/0.3257, allocations: 39.14 kB / 0.5368 GB, free: 8.086 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001242/0.3258, allocations: 83.84 kB / 0.5369 GB, free: 8.023 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002516/0.3261, allocations: 136.4 kB / 0.537 GB, free: 7.934 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.533e-06/0.3261, allocations: 1.188 kB / 0.537 GB, free: 7.934 MB / 398.1 MB Notification: Performance of matching and sorting (n=22) (initialization): time 0.000423/0.3265, allocations: 201.2 kB / 0.5372 GB, free: 7.816 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.476e-05/0.3266, allocations: 9.5 kB / 0.5372 GB, free: 7.812 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.265e-06/0.3266, allocations: 9.062 kB / 0.5372 GB, free: 7.805 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001883/0.3268, allocations: 42.77 kB / 0.5373 GB, free: 7.781 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001903/0.327, allocations: 38.66 kB / 0.5373 GB, free: 7.77 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001491/0.3285, allocations: 1.734 MB / 0.539 GB, free: 6.059 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001053/0.3286, allocations: 7.094 kB / 0.539 GB, free: 6.055 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.704e-05/0.3286, allocations: 9.094 kB / 0.539 GB, free: 6.051 MB / 398.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * 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 (17): * Single equations (assignments): 16 * 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,5,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0001254/0.3288, allocations: 132.6 kB / 0.5391 GB, free: 5.918 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.213e-05/0.3288, allocations: 14.66 kB / 0.5392 GB, free: 5.91 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.174e-05/0.3289, allocations: 19.61 kB / 0.5392 GB, free: 5.898 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.847e-06/0.3289, allocations: 5.25 kB / 0.5392 GB, free: 5.895 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.531e-06/0.3289, allocations: 1.125 kB / 0.5392 GB, free: 5.895 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.657e-06/0.3289, allocations: 1 kB / 0.5392 GB, free: 5.895 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008072/0.3297, allocations: 0.5524 MB / 0.5397 GB, free: 5.406 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.715e-06/0.3297, allocations: 1.031 kB / 0.5397 GB, free: 5.406 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001764/0.3299, allocations: 38.94 kB / 0.5398 GB, free: 5.395 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001195/0.33, allocations: 28.31 kB / 0.5398 GB, free: 5.379 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.657e-05/0.3301, allocations: 6.125 kB / 0.5398 GB, free: 5.375 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001107/0.3312, allocations: 1.473 MB / 0.5412 GB, free: 3.879 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.694e-06/0.3312, allocations: 0 / 0.5412 GB, free: 3.879 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005198/0.3317, allocations: 351.5 kB / 0.5416 GB, free: 3.625 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.965e-05/0.3318, allocations: 92.2 kB / 0.5417 GB, free: 3.52 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.062e-05/0.3318, allocations: 2.75 kB / 0.5417 GB, free: 3.52 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.98e-05/0.3319, allocations: 5.312 kB / 0.5417 GB, free: 3.516 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.165e-05/0.332, allocations: 19.08 kB / 0.5417 GB, free: 3.504 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.274e-05/0.332, allocations: 11.72 kB / 0.5417 GB, free: 3.496 MB / 398.1 MB Notification: Performance of sorting global known variables: time 8.199e-05/0.3321, allocations: 107.7 kB / 0.5418 GB, free: 3.41 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.3321, allocations: 0 / 0.5418 GB, free: 3.41 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0003832/0.3325, allocations: 42.31 kB / 0.5418 GB, free: 3.402 MB / 398.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 2 (J1.phi,J1.w) * 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 (16): * Single equations (assignments): 15 * 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.0007863/0.3333, allocations: 0.8904 MB / 0.5427 GB, free: 2.602 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0005516/0.3338, allocations: 255.8 kB / 0.5429 GB, free: 2.426 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 3.526e-06/0.3339, allocations: 0 / 0.5429 GB, free: 2.426 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002695/0.3341, allocations: 200.2 kB / 0.5431 GB, free: 2.27 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003761/0.3345, allocations: 27 kB / 0.5432 GB, free: 2.254 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002684/0.3372, allocations: 2.055 MB / 0.5452 GB, free: 0.5195 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003021/0.3375, allocations: 0.7205 MB / 0.5459 GB, free: 15.8 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 6.85e-05/0.3376, allocations: 12.11 kB / 0.5459 GB, free: 15.8 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.498e-05/0.3377, allocations: 39.11 kB / 0.5459 GB, free: 15.77 MB / 414.1 MB Notification: Performance of SimCode: time 1.393e-06/0.3377, allocations: 0 / 0.5459 GB, free: 15.77 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02879/0.3665, allocations: 3.503 MB / 0.5493 GB, free: 13.71 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.809/10.18, allocations: 15.44 kB / 0.5494 GB, free: 13.7 MB / 414.1 MB (rm -f ModelicaTest_trunk_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_trunk_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain_res.mat --tempDir=temp_ModelicaTest_trunk_ModelicaTest_Rotational_ForUsersGuide_SimpleDriveTrain_fmu --startTime=0 --stopTime=1.1 --timeout=50 --tolerance=1e-06 ModelicaTest_trunk_ModelicaTest_Rotational_ForUsersGuide_SimpleDriveTrain.fmu > ModelicaTest_trunk_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Rotational/ForUsersGuide/SimpleDriveTrain/SimpleDriveTrain.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_trunk_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) "" Variables in the reference:time,J2.phi,J2.w Variables in the result:J1.J,J1.a,J1.flange_a.phi,J1.flange_a.tau,J1.flange_b.phi,J1.flange_b.tau,J1.phi,J1.stateSelect,J1.w,J2.J,J2.a,J2.flange_a.phi,J2.flange_a.tau,J2.flange_b.phi,J2.flange_b.tau,J2.phi,J2.stateSelect,J2.w,der(J1.phi),der(J1.w),der(J2.phi),der(J2.w),der(der(gear.phi_a)),der(der(gear.phi_b)),der(gear.phi_a),der(gear.phi_b),fixed.flange.phi,fixed.flange.tau,fixed.phi0,gear.flange_a.phi,gear.flange_a.tau,gear.flange_b.phi,gear.flange_b.tau,gear.phi_a,gear.phi_b,gear.ratio,gear.support.phi,gear.support.tau,gear.useSupport,sine.amplitude,sine.continuous,sine.f,sine.offset,sine.phase,sine.startTime,sine.y,time,torque.flange.phi,torque.flange.tau,torque.support.phi,torque.support.tau,torque.tau,torque.useSupport