Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Rotational.TestSpeed.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.TestSpeed,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Rotational_TestSpeed",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Rotational.TestSpeed,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Rotational_TestSpeed",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001219/0.001218, allocations: 122.8 kB / 17.79 MB, free: 5.258 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001371/0.001371, allocations: 197.2 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.404/1.404, 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.2239/0.2239, allocations: 46.1 MB / 344.3 MB, free: 11.52 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001639/0.001639, allocations: 63.89 kB / 480.8 MB, free: 4.621 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3148/0.3165, allocations: 62.44 MB / 0.5305 GB, free: 13.42 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.TestSpeed): time 0.004016/0.3205, allocations: 2.629 MB / 0.5331 GB, free: 11.36 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.00148/0.322, allocations: 0.7252 MB / 0.5338 GB, free: 10.77 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002887/0.3223, allocations: 10.41 kB / 0.5338 GB, free: 10.76 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002056/0.3226, allocations: 42.83 kB / 0.5338 GB, free: 10.72 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002784/0.3229, allocations: 89.36 kB / 0.5339 GB, free: 10.64 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003726/0.3233, allocations: 101.6 kB / 0.534 GB, free: 10.56 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004963/0.3238, allocations: 337.2 kB / 0.5343 GB, free: 10.36 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002273/0.324, allocations: 79.06 kB / 0.5344 GB, free: 10.31 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003503/0.3244, allocations: 141.2 kB / 0.5345 GB, free: 10.23 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002509/0.3246, allocations: 128.6 kB / 0.5347 GB, free: 10.14 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 5.285e-05/0.3247, allocations: 22 kB / 0.5347 GB, free: 10.14 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001285/0.3248, allocations: 28.75 kB / 0.5347 GB, free: 10.14 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 5.24e-05/0.3249, allocations: 51.91 kB / 0.5347 GB, free: 10.09 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001832/0.3251, allocations: 154.8 kB / 0.5349 GB, free: 9.988 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004596/0.3255, allocations: 309 kB / 0.5352 GB, free: 9.77 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.458e-06/0.3256, allocations: 4 kB / 0.5352 GB, free: 9.766 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.392e-06/0.3256, allocations: 0 / 0.5352 GB, free: 9.766 MB / 398.1 MB Notification: Performance of Transformations before backend: time 1.423e-05/0.3256, allocations: 1.281 kB / 0.5352 GB, free: 9.766 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: 60 * Number of variables: 60 Notification: Performance of Generate backend data structure: time 0.001101/0.3267, allocations: 0.5832 MB / 0.5358 GB, free: 9.238 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.853e-05/0.3268, allocations: 13.09 kB / 0.5358 GB, free: 9.234 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.04e-05/0.3268, allocations: 59.05 kB / 0.5358 GB, free: 9.176 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002896/0.3271, allocations: 51.25 kB / 0.5359 GB, free: 9.152 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004854/0.3276, allocations: 281.1 kB / 0.5362 GB, free: 8.875 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.293e-05/0.3277, allocations: 18.75 kB / 0.5362 GB, free: 8.867 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.958e-05/0.3277, allocations: 26.47 kB / 0.5362 GB, free: 8.859 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004856/0.3282, allocations: 280.4 kB / 0.5365 GB, free: 8.656 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.75e-05/0.3283, allocations: 14.48 kB / 0.5365 GB, free: 8.645 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.709e-05/0.3283, allocations: 9.438 kB / 0.5365 GB, free: 8.637 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.788e-06/0.3283, allocations: 6.969 kB / 0.5365 GB, free: 8.637 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004186/0.3287, allocations: 179.2 kB / 0.5367 GB, free: 8.559 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001803/0.3306, allocations: 1.315 MB / 0.5379 GB, free: 7.332 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004347/0.331, allocations: 246.5 kB / 0.5382 GB, free: 7.156 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002035/0.3312, allocations: 108 kB / 0.5383 GB, free: 7.082 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.06e-05/0.3313, allocations: 7.438 kB / 0.5383 GB, free: 7.078 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.498e-05/0.3313, allocations: 37.09 kB / 0.5383 GB, free: 7.035 MB / 398.1 MB Notification: Performance of pre-optimization done (n=26): time 2.054e-06/0.3313, allocations: 0 / 0.5383 GB, free: 7.035 MB / 398.1 MB Notification: Performance of matching and sorting (n=32): time 0.002649/0.334, allocations: 1.573 MB / 0.5399 GB, free: 5.629 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.807e-05/0.334, allocations: 135.5 kB / 0.54 GB, free: 5.469 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002592/0.3343, allocations: 225 kB / 0.5402 GB, free: 5.305 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 2.989e-05/0.3343, allocations: 31.64 kB / 0.5402 GB, free: 5.27 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001197/0.3345, allocations: 177.9 kB / 0.5404 GB, free: 5.105 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.871e-05/0.3346, allocations: 119.9 kB / 0.5405 GB, free: 5 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001094/0.3347, allocations: 71.88 kB / 0.5406 GB, free: 4.949 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001358/0.3348, allocations: 341.7 kB / 0.5409 GB, free: 4.613 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002501/0.3351, allocations: 100.2 kB / 0.541 GB, free: 4.57 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003308/0.3354, allocations: 239.2 kB / 0.5412 GB, free: 4.352 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006187/0.3361, allocations: 367.7 kB / 0.5416 GB, free: 4.062 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.3e-06/0.3361, allocations: 2.219 kB / 0.5416 GB, free: 4.062 MB / 398.1 MB Notification: Performance of matching and sorting (n=48) (initialization): time 0.0008136/0.3369, allocations: 397.1 kB / 0.542 GB, free: 3.859 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.854e-05/0.3369, allocations: 7.125 kB / 0.542 GB, free: 3.859 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.125e-05/0.3369, allocations: 4.562 kB / 0.542 GB, free: 3.859 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.375e-05/0.337, allocations: 7.094 kB / 0.542 GB, free: 3.859 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003947/0.3374, allocations: 110.2 kB / 0.5421 GB, free: 3.824 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.516e-05/0.3374, allocations: 7 kB / 0.5421 GB, free: 3.824 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002431/0.3376, allocations: 29.88 kB / 0.5421 GB, free: 3.809 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.848e-05/0.3377, allocations: 17.38 kB / 0.5421 GB, free: 3.805 MB / 398.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 20 * 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 (48): * Single equations (assignments): 48 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001848/0.3379, allocations: 161.6 kB / 0.5423 GB, free: 3.652 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001109/0.338, allocations: 28.86 kB / 0.5423 GB, free: 3.637 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.826e-05/0.3381, allocations: 32.12 kB / 0.5424 GB, free: 3.609 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.481e-06/0.3381, allocations: 4.531 kB / 0.5424 GB, free: 3.609 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.817e-06/0.3381, allocations: 1.312 kB / 0.5424 GB, free: 3.609 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.903e-06/0.3381, allocations: 5.516 kB / 0.5424 GB, free: 3.605 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001521/0.3396, allocations: 0.9755 MB / 0.5433 GB, free: 2.789 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.258e-06/0.3396, allocations: 1.594 kB / 0.5433 GB, free: 2.789 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003637/0.34, allocations: 86.44 kB / 0.5434 GB, free: 2.762 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.839e-06/0.34, allocations: 6.406 kB / 0.5434 GB, free: 2.758 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.613e-05/0.3401, allocations: 11.44 kB / 0.5434 GB, free: 2.75 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.074e-06/0.3401, allocations: 2.375 kB / 0.5434 GB, free: 2.75 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.735e-06/0.3401, allocations: 2.375 kB / 0.5434 GB, free: 2.75 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001011/0.3411, allocations: 0.7216 MB / 0.5441 GB, free: 2.207 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001004/0.3412, allocations: 109.6 kB / 0.5442 GB, free: 2.09 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.003e-05/0.3413, allocations: 19.27 kB / 0.5443 GB, free: 2.074 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003114/0.3416, allocations: 18.36 kB / 0.5443 GB, free: 2.066 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.26e-05/0.3417, allocations: 23.16 kB / 0.5443 GB, free: 2.055 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.702e-05/0.3417, allocations: 6.906 kB / 0.5443 GB, free: 2.055 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0001519/0.3419, allocations: 162.2 kB / 0.5445 GB, free: 1.934 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.8e-07/0.3419, allocations: 4.938 kB / 0.5445 GB, free: 1.93 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0005813/0.3425, allocations: 64.66 kB / 0.5445 GB, free: 1.922 MB / 398.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 6 * Number of states: 6 (speed4.s,speed3.s,speed3.v,speed1.phi,speed1.w,speed2.phi) * 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 (32): * Single equations (assignments): 32 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001245/0.3437, allocations: 1.274 MB / 0.5458 GB, free: 0.832 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0006646/0.3444, allocations: 279.6 kB / 0.546 GB, free: 0.7188 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 3.426e-06/0.3444, allocations: 0 / 0.546 GB, free: 0.7188 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003069/0.3447, allocations: 131 kB / 0.5462 GB, free: 0.668 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007497/0.3455, allocations: 44.88 kB / 0.5462 GB, free: 0.6406 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004698/0.3502, allocations: 3.506 MB / 0.5496 GB, free: 13.15 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003867/0.3506, allocations: 0.7642 MB / 0.5504 GB, free: 12.36 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0001726/0.3508, allocations: 38.94 kB / 0.5504 GB, free: 12.32 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001688/0.351, allocations: 99.41 kB / 0.5505 GB, free: 12.22 MB / 414.1 MB Notification: Performance of SimCode: time 7.31e-07/0.351, allocations: 3.938 kB / 0.5505 GB, free: 12.22 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02505/0.376, allocations: 5.447 MB / 0.5558 GB, free: 6.848 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.002/8.378, allocations: 18.66 kB / 0.5558 GB, free: 6.836 MB / 414.1 MB (rm -f ModelicaTest_trunk_ModelicaTest.Rotational.TestSpeed.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Rotational.TestSpeed.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Rotational.TestSpeed.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Rotational.TestSpeed.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_trunk_ModelicaTest.Rotational.TestSpeed_res.mat --tempDir=temp_ModelicaTest_trunk_ModelicaTest_Rotational_TestSpeed_fmu --startTime=0 --stopTime=1.1 --timeout=50 --tolerance=1e-06 ModelicaTest_trunk_ModelicaTest_Rotational_TestSpeed.fmu > ModelicaTest_trunk_ModelicaTest.Rotational.TestSpeed.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_ModelicaTest.Rotational.TestSpeed_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Rotational/TestSpeed/TestSpeed.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_trunk_ModelicaTest.Rotational.TestSpeed.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) "" Variables in the reference:time,speed1.phi,speed1.w,speed2.phi,speed3.s,speed3.v,speed4.s Variables in the result:der(inertia2.w),der(mass1.s),der(mass1.v),der(mass2.s),der(mass2.v),der(speed1.phi),der(speed1.w),der(speed2.phi),der(speed3.s),der(speed3.v),der(speed4.s),der(speed4.v),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,mass1.L,mass1.a,mass1.flange_a.f,mass1.flange_a.s,mass1.flange_b.f,mass1.flange_b.s,mass1.m,mass1.s,mass1.stateSelect,mass1.v,mass2.L,mass2.a,mass2.flange_a.f,mass2.flange_a.s,mass2.flange_b.f,mass2.flange_b.s,mass2.m,mass2.s,mass2.stateSelect,mass2.v,sine2.amplitude,sine2.continuous,sine2.f,sine2.offset,sine2.phase,sine2.startTime,sine2.y,sine4.amplitude,sine4.continuous,sine4.f,sine4.offset,sine4.phase,sine4.startTime,sine4.y,speed1.a,speed1.exact,speed1.f_crit,speed1.flange.phi,speed1.flange.tau,speed1.phi,speed1.useSupport,speed1.w,speed1.w_ref,speed2.a,speed2.exact,speed2.f_crit,speed2.flange.phi,speed2.flange.tau,speed2.phi,speed2.useSupport,speed2.w,speed2.w_ref,speed3.a,speed3.exact,speed3.f_crit,speed3.flange.f,speed3.flange.s,speed3.s,speed3.useSupport,speed3.v,speed3.v_ref,speed4.a,speed4.exact,speed4.f_crit,speed4.flange.f,speed4.flange.s,speed4.s,speed4.useSupport,speed4.v,speed4.v_ref,step.height,step.offset,step.startTime,step.y,step1.height,step1.offset,step1.startTime,step1.y,time