Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Rotational.ForUsersGuide.SupportTorque1.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.SupportTorque1,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Rotational_ForUsersGuide_SupportTorque1",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Rotational.ForUsersGuide.SupportTorque1,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Rotational_ForUsersGuide_SupportTorque1",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001264/0.001264, allocations: 118.8 kB / 17.79 MB, free: 5.281 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001359/0.001359, allocations: 201.2 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.405/1.405, allocations: 227.4 MB / 246.9 MB, free: 10.5 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2201/0.2201, allocations: 46.1 MB / 344.3 MB, free: 11.54 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001591/0.001591, allocations: 71.88 kB / 480.8 MB, free: 4.633 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3028/0.3044, allocations: 62.43 MB / 0.5305 GB, free: 13.43 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.ForUsersGuide.SupportTorque1): time 0.00385/0.3083, allocations: 2.362 MB / 0.5328 GB, free: 11.59 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.001569/0.3099, allocations: 0.9071 MB / 0.5337 GB, free: 10.86 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001987/0.3101, allocations: 7.375 kB / 0.5337 GB, free: 10.86 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002788/0.3104, allocations: 55.66 kB / 0.5337 GB, free: 10.81 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002466/0.3107, allocations: 75.94 kB / 0.5338 GB, free: 10.75 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004078/0.3111, allocations: 151.1 kB / 0.534 GB, free: 10.62 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004185/0.3116, allocations: 349 kB / 0.5343 GB, free: 10.42 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001895/0.3118, allocations: 86.03 kB / 0.5344 GB, free: 10.37 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003113/0.3121, allocations: 156.1 kB / 0.5345 GB, free: 10.28 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002733/0.3124, allocations: 159.7 kB / 0.5347 GB, free: 10.17 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 5.926e-05/0.3124, allocations: 26.91 kB / 0.5347 GB, free: 10.17 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002078/0.3126, allocations: 95.25 kB / 0.5348 GB, free: 10.14 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001167/0.3128, allocations: 71.05 kB / 0.5349 GB, free: 10.08 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001697/0.3129, allocations: 134.1 kB / 0.535 GB, free: 9.988 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005018/0.3135, allocations: 382.9 kB / 0.5354 GB, free: 9.719 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.23e-06/0.3135, allocations: 5.047 kB / 0.5354 GB, free: 9.715 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.513e-06/0.3135, allocations: 4 kB / 0.5354 GB, free: 9.711 MB / 398.1 MB Notification: Performance of Transformations before backend: time 1.535e-05/0.3135, allocations: 0 / 0.5354 GB, free: 9.711 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: 56 * Number of variables: 56 Notification: Performance of Generate backend data structure: time 0.00104/0.3145, allocations: 0.5724 MB / 0.5359 GB, free: 9.188 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.92e-05/0.3146, allocations: 14.48 kB / 0.5359 GB, free: 9.184 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.791e-05/0.3147, allocations: 56.95 kB / 0.536 GB, free: 9.125 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000194/0.3149, allocations: 43.92 kB / 0.536 GB, free: 9.102 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003836/0.3153, allocations: 254.1 kB / 0.5363 GB, free: 8.84 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.487e-05/0.3153, allocations: 18.62 kB / 0.5363 GB, free: 8.832 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.145e-05/0.3154, allocations: 23.47 kB / 0.5363 GB, free: 8.824 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005385/0.3159, allocations: 271.4 kB / 0.5366 GB, free: 8.648 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.698e-05/0.3159, allocations: 1.188 kB / 0.5366 GB, free: 8.648 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.144e-05/0.316, allocations: 9.562 kB / 0.5366 GB, free: 8.641 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.973e-06/0.316, allocations: 9.062 kB / 0.5366 GB, free: 8.637 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005171/0.3165, allocations: 245.5 kB / 0.5368 GB, free: 8.516 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001387/0.3179, allocations: 0.7298 MB / 0.5375 GB, free: 7.906 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005389/0.3185, allocations: 249 kB / 0.5378 GB, free: 7.77 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002705/0.3187, allocations: 135.6 kB / 0.5379 GB, free: 7.699 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.615e-05/0.3188, allocations: 2.125 kB / 0.5379 GB, free: 7.699 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.232e-05/0.3188, allocations: 36.94 kB / 0.5379 GB, free: 7.656 MB / 398.1 MB Notification: Performance of pre-optimization done (n=26): time 1.643e-06/0.3188, allocations: 0 / 0.5379 GB, free: 7.656 MB / 398.1 MB Notification: Performance of matching and sorting (n=34): time 0.003158/0.322, allocations: 1.413 MB / 0.5393 GB, free: 6.625 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.652e-05/0.322, allocations: 54.81 kB / 0.5394 GB, free: 6.562 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002409/0.3223, allocations: 212.5 kB / 0.5396 GB, free: 6.398 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 3.637e-05/0.3223, allocations: 33.05 kB / 0.5396 GB, free: 6.363 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.463e-05/0.3224, allocations: 142.5 kB / 0.5397 GB, free: 6.23 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.892e-05/0.3225, allocations: 123.2 kB / 0.5399 GB, free: 6.121 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001284/0.3227, allocations: 67.66 kB / 0.5399 GB, free: 6.074 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001196/0.3228, allocations: 336.1 kB / 0.5402 GB, free: 5.742 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002616/0.3231, allocations: 118 kB / 0.5404 GB, free: 5.684 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000287/0.3234, allocations: 170.6 kB / 0.5405 GB, free: 5.574 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004271/0.3238, allocations: 237.5 kB / 0.5407 GB, free: 5.438 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.053e-06/0.3238, allocations: 3.938 kB / 0.5408 GB, free: 5.434 MB / 398.1 MB Notification: Performance of matching and sorting (n=43) (initialization): time 0.0009134/0.3247, allocations: 426.8 kB / 0.5412 GB, free: 5.207 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.003e-05/0.3248, allocations: 10 kB / 0.5412 GB, free: 5.203 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.656e-06/0.3248, allocations: 5.125 kB / 0.5412 GB, free: 5.199 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004905/0.3253, allocations: 195.8 kB / 0.5414 GB, free: 5.098 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002333/0.3255, allocations: 57.47 kB / 0.5414 GB, free: 5.082 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007898/0.3263, allocations: 0.7304 MB / 0.5421 GB, free: 4.445 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002866/0.3266, allocations: 34.86 kB / 0.5422 GB, free: 4.43 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.131e-05/0.3267, allocations: 11.91 kB / 0.5422 GB, free: 4.426 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: 8 (bearingFriction1.free,bearingFriction1.mode,$PRE.bearingFriction1.mode,bearingFriction1.locked,bearingFriction1.startBackward,$PRE.bearingFriction1.startBackward,bearingFriction1.startForward,$PRE.bearingFriction1.startForward) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (30): * Single equations (assignments): 29 * 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): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,13)} Notification: Performance of prepare postOptimizeDAE: time 0.0001758/0.3268, allocations: 155.4 kB / 0.5423 GB, free: 4.281 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.427e-05/0.3269, allocations: 24.28 kB / 0.5423 GB, free: 4.27 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.48e-05/0.327, allocations: 34.25 kB / 0.5424 GB, free: 4.238 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.822e-06/0.327, allocations: 7.547 kB / 0.5424 GB, free: 4.234 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.182e-06/0.327, allocations: 1.062 kB / 0.5424 GB, free: 4.234 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.248e-06/0.3271, allocations: 0 / 0.5424 GB, free: 4.234 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001748/0.3288, allocations: 0.9458 MB / 0.5433 GB, free: 3.492 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.336e-06/0.3288, allocations: 1.188 kB / 0.5433 GB, free: 3.492 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002339/0.3291, allocations: 49.59 kB / 0.5434 GB, free: 3.48 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004292/0.3295, allocations: 176.7 kB / 0.5435 GB, free: 3.387 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.611e-05/0.3296, allocations: 6.281 kB / 0.5435 GB, free: 3.383 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008053/0.3304, allocations: 0.6969 MB / 0.5442 GB, free: 2.754 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.945e-06/0.3304, allocations: 1.125 kB / 0.5442 GB, free: 2.754 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001356/0.3317, allocations: 0.6207 MB / 0.5448 GB, free: 2.348 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002152/0.332, allocations: 128.7 kB / 0.5449 GB, free: 2.215 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.198e-05/0.3321, allocations: 12.41 kB / 0.545 GB, free: 2.207 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002997/0.3324, allocations: 33.33 kB / 0.545 GB, free: 2.191 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001428/0.3325, allocations: 47.39 kB / 0.545 GB, free: 2.164 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.737e-05/0.3326, allocations: 6.281 kB / 0.545 GB, free: 2.164 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0001879/0.3328, allocations: 159.1 kB / 0.5452 GB, free: 2.051 MB / 398.1 MB Notification: Performance of sort global known variables: time 3.11e-07/0.3328, allocations: 4.062 kB / 0.5452 GB, free: 2.047 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.000444/0.3332, allocations: 74.81 kB / 0.5453 GB, free: 2.031 MB / 398.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 2 (inertia3.phi,inertia3.w) * Number of discrete variables: 4 (bearingFriction1.startForward,bearingFriction1.startBackward,bearingFriction1.locked,bearingFriction1.mode) * Number of discrete states: 3 (bearingFriction1.mode,bearingFriction1.startBackward,bearingFriction1.startForward) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (24): * Single equations (assignments): 23 * 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): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,10)} Notification: Performance of Backend phase and start with SimCode phase: time 0.002162/0.3354, allocations: 1.385 MB / 0.5466 GB, free: 0.8633 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0007711/0.3362, allocations: 315.6 kB / 0.5469 GB, free: 0.5547 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.736e-06/0.3362, allocations: 0 / 0.5469 GB, free: 0.5547 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003604/0.3366, allocations: 168.2 kB / 0.5471 GB, free: 400 kB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004858/0.3371, allocations: 43.86 kB / 0.5471 GB, free: 356 kB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005112/0.3422, allocations: 3.079 MB / 0.5501 GB, free: 13.16 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003203/0.3425, allocations: 0.7563 MB / 0.5509 GB, free: 12.37 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0001139/0.3427, allocations: 26.3 kB / 0.5509 GB, free: 12.34 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000127/0.3428, allocations: 75.41 kB / 0.551 GB, free: 12.27 MB / 414.1 MB Notification: Performance of SimCode: time 1.022e-06/0.3428, allocations: 0 / 0.551 GB, free: 12.27 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03051/0.3733, allocations: 8.054 MB / 0.5588 GB, free: 4.379 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.8/12.17, allocations: 10.42 kB / 0.5588 GB, free: 4.371 MB / 414.1 MB (rm -f ModelicaTest_trunk_ModelicaTest.Rotational.ForUsersGuide.SupportTorque1.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Rotational.ForUsersGuide.SupportTorque1.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Rotational.ForUsersGuide.SupportTorque1.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Rotational.ForUsersGuide.SupportTorque1.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_trunk_ModelicaTest.Rotational.ForUsersGuide.SupportTorque1_res.mat --tempDir=temp_ModelicaTest_trunk_ModelicaTest_Rotational_ForUsersGuide_SupportTorque1_fmu --startTime=0 --stopTime=1.1 --timeout=50 --tolerance=1e-06 ModelicaTest_trunk_ModelicaTest_Rotational_ForUsersGuide_SupportTorque1.fmu > ModelicaTest_trunk_ModelicaTest.Rotational.ForUsersGuide.SupportTorque1.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_ModelicaTest.Rotational.ForUsersGuide.SupportTorque1_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Rotational/ForUsersGuide/SupportTorque1/SupportTorque1.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_trunk_ModelicaTest.Rotational.ForUsersGuide.SupportTorque1.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches