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.001418/0.001418, 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.001639/0.001639, 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.393/1.393, 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.2041/0.2041, allocations: 46.11 MB / 344.3 MB, free: 11.5 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001387/0.001387, allocations: 79.86 kB / 480.8 MB, free: 4.605 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2926/0.294, allocations: 62.43 MB / 0.5305 GB, free: 13.43 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.TestSpeed): time 0.003464/0.2975, allocations: 2.638 MB / 0.5331 GB, free: 11.37 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.001171/0.2987, allocations: 0.7279 MB / 0.5338 GB, free: 10.77 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001417/0.2989, allocations: 5.531 kB / 0.5338 GB, free: 10.77 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001435/0.299, allocations: 39.94 kB / 0.5338 GB, free: 10.73 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001658/0.2992, allocations: 85.23 kB / 0.5339 GB, free: 10.66 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003018/0.2995, allocations: 107.2 kB / 0.534 GB, free: 10.57 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003489/0.2999, allocations: 335.7 kB / 0.5343 GB, free: 10.37 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001678/0.3001, allocations: 79.06 kB / 0.5344 GB, free: 10.32 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002222/0.3003, allocations: 141.2 kB / 0.5345 GB, free: 10.24 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001708/0.3005, allocations: 132.6 kB / 0.5347 GB, free: 10.15 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 3.501e-05/0.3005, allocations: 22 kB / 0.5347 GB, free: 10.15 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.158e-05/0.3006, allocations: 24.75 kB / 0.5347 GB, free: 10.15 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 4.542e-05/0.3007, allocations: 59.95 kB / 0.5348 GB, free: 10.1 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001187/0.3008, allocations: 146 kB / 0.5349 GB, free: 10 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003228/0.3011, allocations: 314.3 kB / 0.5352 GB, free: 9.777 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.987e-06/0.3011, allocations: 0 / 0.5352 GB, free: 9.777 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.343e-06/0.3011, allocations: 4 kB / 0.5352 GB, free: 9.773 MB / 398.1 MB Notification: Performance of Transformations before backend: time 7.293e-06/0.3012, allocations: 0 / 0.5352 GB, free: 9.773 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.0008714/0.302, allocations: 0.5836 MB / 0.5358 GB, free: 9.246 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.804e-05/0.3021, allocations: 9.844 kB / 0.5358 GB, free: 9.246 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.809e-05/0.3021, allocations: 59.11 kB / 0.5358 GB, free: 9.188 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002365/0.3024, allocations: 55.69 kB / 0.5359 GB, free: 9.16 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003786/0.3028, allocations: 280.8 kB / 0.5362 GB, free: 8.883 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.637e-05/0.3028, allocations: 19.19 kB / 0.5362 GB, free: 8.875 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.046e-05/0.3029, allocations: 33.55 kB / 0.5362 GB, free: 8.859 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004943/0.3034, allocations: 283.6 kB / 0.5365 GB, free: 8.652 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.094e-05/0.3034, allocations: 6.188 kB / 0.5365 GB, free: 8.648 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.413e-05/0.3034, allocations: 11.47 kB / 0.5365 GB, free: 8.641 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.147e-06/0.3034, allocations: 5.75 kB / 0.5365 GB, free: 8.641 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004204/0.3039, allocations: 188 kB / 0.5367 GB, free: 8.559 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001595/0.3055, allocations: 1.31 MB / 0.538 GB, free: 7.336 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000417/0.3059, allocations: 246.6 kB / 0.5382 GB, free: 7.16 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000203/0.3061, allocations: 99.98 kB / 0.5383 GB, free: 7.094 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.551e-05/0.3061, allocations: 11.48 kB / 0.5383 GB, free: 7.086 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.51e-05/0.3062, allocations: 40.66 kB / 0.5383 GB, free: 7.039 MB / 398.1 MB Notification: Performance of pre-optimization done (n=26): time 1.733e-06/0.3062, allocations: 0 / 0.5383 GB, free: 7.039 MB / 398.1 MB Notification: Performance of matching and sorting (n=32): time 0.002545/0.3087, allocations: 1.561 MB / 0.5399 GB, free: 5.645 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.217e-05/0.3088, allocations: 141.1 kB / 0.54 GB, free: 5.48 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000206/0.309, allocations: 228.2 kB / 0.5402 GB, free: 5.312 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 2.819e-05/0.3091, allocations: 31.64 kB / 0.5402 GB, free: 5.277 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.5e-05/0.3092, allocations: 173.7 kB / 0.5404 GB, free: 5.117 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.766e-05/0.3093, allocations: 116.6 kB / 0.5405 GB, free: 5.016 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.768e-05/0.3094, allocations: 72 kB / 0.5406 GB, free: 4.965 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001062/0.3095, allocations: 336.4 kB / 0.5409 GB, free: 4.633 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002503/0.3097, allocations: 109.7 kB / 0.541 GB, free: 4.582 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003175/0.3101, allocations: 242.6 kB / 0.5412 GB, free: 4.359 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005987/0.3107, allocations: 364.1 kB / 0.5416 GB, free: 4.074 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.346e-06/0.3107, allocations: 1.469 kB / 0.5416 GB, free: 4.074 MB / 398.1 MB Notification: Performance of matching and sorting (n=48) (initialization): time 0.0007735/0.3115, allocations: 401.6 kB / 0.542 GB, free: 3.867 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.669e-05/0.3115, allocations: 11.38 kB / 0.542 GB, free: 3.863 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.017e-05/0.3115, allocations: 8.469 kB / 0.542 GB, free: 3.859 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.948e-05/0.3115, allocations: 6.344 kB / 0.542 GB, free: 3.859 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003725/0.3119, allocations: 98.41 kB / 0.5421 GB, free: 3.836 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.165e-05/0.3119, allocations: 10.44 kB / 0.5421 GB, free: 3.832 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002145/0.3121, allocations: 29.95 kB / 0.5421 GB, free: 3.816 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.415e-05/0.3122, allocations: 13.38 kB / 0.5421 GB, free: 3.816 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.0001401/0.3123, allocations: 169.1 kB / 0.5423 GB, free: 3.656 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001015/0.3124, allocations: 25.31 kB / 0.5423 GB, free: 3.645 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.377e-05/0.3125, allocations: 32.2 kB / 0.5424 GB, free: 3.617 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.461e-06/0.3125, allocations: 3.938 kB / 0.5424 GB, free: 3.617 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.384e-06/0.3125, allocations: 6.156 kB / 0.5424 GB, free: 3.613 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.41e-06/0.3125, allocations: 1.188 kB / 0.5424 GB, free: 3.613 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001406/0.3139, allocations: 0.9765 MB / 0.5433 GB, free: 2.797 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.338e-06/0.314, allocations: 4.219 kB / 0.5433 GB, free: 2.793 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000345/0.3143, allocations: 75.39 kB / 0.5434 GB, free: 2.777 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.027e-06/0.3143, allocations: 5.625 kB / 0.5434 GB, free: 2.773 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.404e-05/0.3144, allocations: 12.25 kB / 0.5434 GB, free: 2.766 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.691e-06/0.3144, allocations: 6.656 kB / 0.5434 GB, free: 2.762 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.759e-06/0.3144, allocations: 9.375 kB / 0.5434 GB, free: 2.754 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009672/0.3153, allocations: 0.7221 MB / 0.5441 GB, free: 2.211 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.053e-05/0.3154, allocations: 109 kB / 0.5442 GB, free: 2.094 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.987e-05/0.3155, allocations: 11.72 kB / 0.5443 GB, free: 2.086 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002852/0.3158, allocations: 21.92 kB / 0.5443 GB, free: 2.074 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.888e-05/0.3158, allocations: 22.56 kB / 0.5443 GB, free: 2.062 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.002e-05/0.3159, allocations: 16.05 kB / 0.5443 GB, free: 2.055 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0001539/0.316, allocations: 155.2 kB / 0.5445 GB, free: 1.941 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.316, allocations: 3.938 kB / 0.5445 GB, free: 1.938 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0004708/0.3165, allocations: 67.62 kB / 0.5445 GB, free: 1.926 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.001192/0.3177, allocations: 1.28 MB / 0.5458 GB, free: 0.832 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0006216/0.3183, allocations: 275.2 kB / 0.546 GB, free: 0.7227 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.124e-06/0.3184, allocations: 0 / 0.546 GB, free: 0.7227 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002807/0.3186, allocations: 134.6 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.0006362/0.3193, allocations: 35.67 kB / 0.5462 GB, free: 0.6484 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004081/0.3234, allocations: 3.505 MB / 0.5496 GB, free: 13.15 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000311/0.3237, allocations: 0.772 MB / 0.5504 GB, free: 12.35 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0001389/0.3239, allocations: 34.95 kB / 0.5504 GB, free: 12.32 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001391/0.324, allocations: 91.41 kB / 0.5505 GB, free: 12.23 MB / 414.1 MB Notification: Performance of SimCode: time 4.61e-07/0.324, allocations: 0 / 0.5505 GB, free: 12.23 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02261/0.3466, allocations: 5.463 MB / 0.5558 GB, free: 6.84 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.962/8.309, allocations: 12.09 kB / 0.5558 GB, free: 6.832 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