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: translateModel(ModelicaTest.Rotational.ForUsersGuide.SupportTorque1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|inertia4.phi|inertia4.w|bearingFriction1.mode|bearingFriction1.startBackward|bearingFriction1.startForward",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Rotational.ForUsersGuide.SupportTorque1") translateModel(ModelicaTest.Rotational.ForUsersGuide.SupportTorque1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|inertia4.phi|inertia4.w|bearingFriction1.mode|bearingFriction1.startBackward|bearingFriction1.startForward",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Rotational.ForUsersGuide.SupportTorque1") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001203/0.001203, allocations: 113 kB / 18.45 MB, free: 4.645 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.00124/0.00124, allocations: 212.9 kB / 19.4 MB, free: 3.695 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.27/1.27, allocations: 227.4 MB / 247.6 MB, free: 10.48 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2064/0.2064, allocations: 46.1 MB / 344.9 MB, free: 11.49 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001254/0.001254, allocations: 71.88 kB / 482 MB, free: 4.082 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2992/0.3004, allocations: 62.43 MB / 0.5316 GB, free: 13.59 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.ForUsersGuide.SupportTorque1): time 0.003564/0.304, allocations: 2.366 MB / 0.5339 GB, free: 11.75 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.001373/0.3054, allocations: 0.9098 MB / 0.5348 GB, free: 11.02 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001167/0.3056, allocations: 4.125 kB / 0.5348 GB, free: 11.02 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002569/0.3059, allocations: 55.75 kB / 0.5349 GB, free: 10.97 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001803/0.306, allocations: 71.78 kB / 0.535 GB, free: 10.91 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003237/0.3064, allocations: 156.4 kB / 0.5351 GB, free: 10.78 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003306/0.3067, allocations: 349 kB / 0.5354 GB, free: 10.58 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001908/0.3069, allocations: 78.05 kB / 0.5355 GB, free: 10.53 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002371/0.3072, allocations: 156.9 kB / 0.5357 GB, free: 10.44 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002244/0.3074, allocations: 166.5 kB / 0.5358 GB, free: 10.33 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 4.738e-05/0.3075, allocations: 27.69 kB / 0.5359 GB, free: 10.33 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001579/0.3076, allocations: 86.52 kB / 0.5359 GB, free: 10.3 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001096/0.3077, allocations: 75.14 kB / 0.536 GB, free: 10.24 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001315/0.3079, allocations: 134.4 kB / 0.5361 GB, free: 10.15 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004578/0.3083, allocations: 386.3 kB / 0.5365 GB, free: 9.879 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.28e-06/0.3084, allocations: 1.219 kB / 0.5365 GB, free: 9.879 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.222e-06/0.3084, allocations: 0 / 0.5365 GB, free: 9.879 MB / 398.1 MB Notification: Performance of Transformations before backend: time 6.282e-06/0.3084, allocations: 0 / 0.5365 GB, free: 9.879 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.0008838/0.3093, allocations: 0.5809 MB / 0.5371 GB, free: 9.348 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.493e-05/0.3093, allocations: 10.08 kB / 0.5371 GB, free: 9.348 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001707/0.3095, allocations: 31.72 kB / 0.5371 GB, free: 9.336 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003408/0.3098, allocations: 261.8 kB / 0.5374 GB, free: 9.066 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.112e-05/0.3099, allocations: 21.78 kB / 0.5374 GB, free: 9.055 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.901e-05/0.3099, allocations: 24.09 kB / 0.5374 GB, free: 9.047 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004907/0.3104, allocations: 275.7 kB / 0.5377 GB, free: 8.867 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.972e-05/0.3105, allocations: 4 kB / 0.5377 GB, free: 8.863 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.687e-05/0.3105, allocations: 6.469 kB / 0.5377 GB, free: 8.859 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.227e-06/0.3105, allocations: 5.781 kB / 0.5377 GB, free: 8.859 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004888/0.311, allocations: 237.6 kB / 0.5379 GB, free: 8.746 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001257/0.3123, allocations: 0.7374 MB / 0.5386 GB, free: 8.129 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005342/0.3128, allocations: 243.2 kB / 0.5389 GB, free: 8 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002538/0.3131, allocations: 151.9 kB / 0.539 GB, free: 7.914 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.252e-05/0.3131, allocations: 3.125 kB / 0.539 GB, free: 7.914 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.091e-05/0.3131, allocations: 35.69 kB / 0.539 GB, free: 7.871 MB / 398.1 MB Notification: Performance of pre-optimization done (n=26): time 1.573e-06/0.3131, allocations: 0 / 0.539 GB, free: 7.871 MB / 398.1 MB Notification: Performance of matching and sorting (n=34): time 0.002984/0.3161, allocations: 1.404 MB / 0.5404 GB, free: 6.848 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.813e-05/0.3162, allocations: 62.59 kB / 0.5405 GB, free: 6.777 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000225/0.3164, allocations: 213.2 kB / 0.5407 GB, free: 6.613 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 3.448e-05/0.3165, allocations: 37.61 kB / 0.5407 GB, free: 6.574 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.606e-05/0.3166, allocations: 133.8 kB / 0.5408 GB, free: 6.449 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001004/0.3167, allocations: 123.5 kB / 0.541 GB, free: 6.34 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001139/0.3168, allocations: 62.88 kB / 0.541 GB, free: 6.297 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001223/0.3169, allocations: 340.3 kB / 0.5413 GB, free: 5.961 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002512/0.3172, allocations: 118.8 kB / 0.5415 GB, free: 5.902 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002629/0.3174, allocations: 164.5 kB / 0.5416 GB, free: 5.797 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004252/0.3179, allocations: 240.8 kB / 0.5418 GB, free: 5.656 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.633e-06/0.3179, allocations: 1.344 kB / 0.5418 GB, free: 5.656 MB / 398.1 MB Notification: Performance of matching and sorting (n=43) (initialization): time 0.0008242/0.3187, allocations: 430.5 kB / 0.5423 GB, free: 5.426 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.823e-05/0.3187, allocations: 5.938 kB / 0.5423 GB, free: 5.426 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.596e-06/0.3188, allocations: 5.125 kB / 0.5423 GB, free: 5.422 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00045/0.3192, allocations: 192.8 kB / 0.5424 GB, free: 5.324 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002158/0.3194, allocations: 51.88 kB / 0.5425 GB, free: 5.312 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007191/0.3202, allocations: 0.7279 MB / 0.5432 GB, free: 4.676 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002342/0.3204, allocations: 34.05 kB / 0.5432 GB, free: 4.66 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.935e-05/0.3204, allocations: 12.84 kB / 0.5433 GB, free: 4.656 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.0001624/0.3206, allocations: 161.4 kB / 0.5434 GB, free: 4.504 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.996e-05/0.3207, allocations: 23.94 kB / 0.5434 GB, free: 4.492 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.435e-05/0.3208, allocations: 34.5 kB / 0.5435 GB, free: 4.461 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.31e-06/0.3208, allocations: 3.688 kB / 0.5435 GB, free: 4.461 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.934e-06/0.3208, allocations: 1.656 kB / 0.5435 GB, free: 4.461 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.362e-06/0.3208, allocations: 3.984 kB / 0.5435 GB, free: 4.457 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001556/0.3224, allocations: 0.938 MB / 0.5444 GB, free: 3.723 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.438e-06/0.3224, allocations: 4 kB / 0.5444 GB, free: 3.719 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002112/0.3226, allocations: 53.22 kB / 0.5444 GB, free: 3.703 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003552/0.323, allocations: 181.5 kB / 0.5446 GB, free: 3.605 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.793e-05/0.323, allocations: 10.36 kB / 0.5446 GB, free: 3.598 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.000613/0.3236, allocations: 0.6888 MB / 0.5453 GB, free: 2.977 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.242e-06/0.3236, allocations: 1.219 kB / 0.5453 GB, free: 2.977 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001039/0.3247, allocations: 0.6173 MB / 0.5459 GB, free: 2.574 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001189/0.3248, allocations: 128.4 kB / 0.546 GB, free: 2.441 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.865e-05/0.3249, allocations: 11.56 kB / 0.546 GB, free: 2.434 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002426/0.3251, allocations: 41.61 kB / 0.5461 GB, free: 2.41 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000111/0.3252, allocations: 48.12 kB / 0.5461 GB, free: 2.375 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.747e-05/0.3253, allocations: 15.98 kB / 0.5461 GB, free: 2.359 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0001238/0.3254, allocations: 149.5 kB / 0.5463 GB, free: 2.215 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.3254, allocations: 0 / 0.5463 GB, free: 2.215 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0003467/0.3257, allocations: 71.98 kB / 0.5463 GB, free: 2.145 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.000818/0.3266, allocations: 365.2 kB / 0.5467 GB, free: 1.898 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0006822/0.3273, allocations: 315.4 kB / 0.547 GB, free: 1.59 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 1.984e-06/0.3273, allocations: 0 / 0.547 GB, free: 1.59 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000318/0.3276, allocations: 151.9 kB / 0.5471 GB, free: 1.441 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003844/0.328, allocations: 50.33 kB / 0.5472 GB, free: 1.395 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001742/0.3297, allocations: 0.7863 MB / 0.548 GB, free: 0.5703 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003303/0.3301, allocations: 0.7642 MB / 0.5487 GB, free: 15.78 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.363e-05/0.3302, allocations: 23.44 kB / 0.5487 GB, free: 15.76 MB / 414.1 MB Notification: Performance of SimCode: time 2.3e-07/0.3302, allocations: 11.81 kB / 0.5487 GB, free: 15.75 MB / 414.1 MB Notification: Performance of Templates: time 0.00651/0.3367, allocations: 4.494 MB / 0.5531 GB, free: 11.25 MB / 414.1 MB make -j1 -f ModelicaTest_trunk_ModelicaTest.Rotational.ForUsersGuide.SupportTorque1.makefile (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 & ./ModelicaTest_trunk_ModelicaTest.Rotational.ForUsersGuide.SupportTorque1 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > 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