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.001339/0.001339, 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.001527/0.001527, 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.395/1.395, 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.2143/0.2143, allocations: 46.11 MB / 344.3 MB, free: 11.48 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001557/0.001557, allocations: 71.89 kB / 480.8 MB, free: 4.578 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3264/0.328, allocations: 62.42 MB / 0.5305 GB, free: 13.39 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.ForUsersGuide.SupportTorque1): time 0.005784/0.3338, allocations: 2.362 MB / 0.5328 GB, free: 11.55 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.00241/0.3362, allocations: 0.9108 MB / 0.5337 GB, free: 10.82 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002583/0.3365, allocations: 7.844 kB / 0.5337 GB, free: 10.82 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003715/0.3369, allocations: 51.12 kB / 0.5337 GB, free: 10.77 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003428/0.3373, allocations: 75.25 kB / 0.5338 GB, free: 10.71 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005644/0.3379, allocations: 147.8 kB / 0.534 GB, free: 10.59 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006788/0.3386, allocations: 348.6 kB / 0.5343 GB, free: 10.39 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002768/0.3389, allocations: 90 kB / 0.5344 GB, free: 10.33 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004826/0.3394, allocations: 157.5 kB / 0.5345 GB, free: 10.24 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003801/0.3398, allocations: 162.3 kB / 0.5347 GB, free: 10.13 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 6.846e-05/0.3399, allocations: 31.44 kB / 0.5347 GB, free: 10.12 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002863/0.3402, allocations: 83.23 kB / 0.5348 GB, free: 10.11 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001534/0.3403, allocations: 74.73 kB / 0.5349 GB, free: 10.04 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002103/0.3405, allocations: 135.2 kB / 0.535 GB, free: 9.949 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006804/0.3412, allocations: 385.8 kB / 0.5354 GB, free: 9.676 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.42e-06/0.3413, allocations: 1.125 kB / 0.5354 GB, free: 9.676 MB / 398.1 MB Notification: Performance of FrontEnd: time 3.557e-06/0.3413, allocations: 4 kB / 0.5354 GB, free: 9.672 MB / 398.1 MB Notification: Performance of Transformations before backend: time 1.57e-05/0.3413, allocations: 0 / 0.5354 GB, free: 9.672 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.001408/0.3427, allocations: 0.5687 MB / 0.5359 GB, free: 9.152 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.732e-05/0.3428, allocations: 14.19 kB / 0.5359 GB, free: 9.148 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.935e-05/0.3429, allocations: 57.3 kB / 0.536 GB, free: 9.09 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002695/0.3432, allocations: 39.7 kB / 0.536 GB, free: 9.07 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006221/0.3438, allocations: 266.3 kB / 0.5363 GB, free: 8.797 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.714e-05/0.3439, allocations: 18.22 kB / 0.5363 GB, free: 8.789 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.084e-05/0.344, allocations: 23.81 kB / 0.5363 GB, free: 8.781 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007649/0.3447, allocations: 267 kB / 0.5366 GB, free: 8.609 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.402e-05/0.3448, allocations: 5.141 kB / 0.5366 GB, free: 8.605 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.277e-05/0.3448, allocations: 6.25 kB / 0.5366 GB, free: 8.602 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.638e-05/0.3449, allocations: 4.656 kB / 0.5366 GB, free: 8.602 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000803/0.3457, allocations: 241.8 kB / 0.5368 GB, free: 8.484 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002046/0.3477, allocations: 0.7303 MB / 0.5375 GB, free: 7.875 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008059/0.3486, allocations: 264.2 kB / 0.5378 GB, free: 7.723 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003956/0.349, allocations: 138.8 kB / 0.5379 GB, free: 7.652 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.555e-05/0.349, allocations: 2.562 kB / 0.5379 GB, free: 7.652 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.106e-05/0.3491, allocations: 32.88 kB / 0.5379 GB, free: 7.613 MB / 398.1 MB Notification: Performance of pre-optimization done (n=26): time 2.565e-06/0.3491, allocations: 0 / 0.5379 GB, free: 7.613 MB / 398.1 MB Notification: Performance of matching and sorting (n=34): time 0.004697/0.3538, allocations: 1.417 MB / 0.5393 GB, free: 6.578 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.836e-05/0.3538, allocations: 54.34 kB / 0.5394 GB, free: 6.516 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003401/0.3542, allocations: 214.1 kB / 0.5396 GB, free: 6.352 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 5.16e-05/0.3543, allocations: 35.36 kB / 0.5396 GB, free: 6.312 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001323/0.3544, allocations: 138.2 kB / 0.5398 GB, free: 6.184 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001451/0.3546, allocations: 128.9 kB / 0.5399 GB, free: 6.07 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001928/0.3548, allocations: 62.09 kB / 0.5399 GB, free: 6.027 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001678/0.355, allocations: 339.8 kB / 0.5403 GB, free: 5.691 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004164/0.3554, allocations: 114.9 kB / 0.5404 GB, free: 5.637 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004871/0.3559, allocations: 170 kB / 0.5405 GB, free: 5.527 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007229/0.3566, allocations: 237.3 kB / 0.5408 GB, free: 5.391 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.356e-06/0.3566, allocations: 0 / 0.5408 GB, free: 5.391 MB / 398.1 MB Notification: Performance of matching and sorting (n=43) (initialization): time 0.001333/0.358, allocations: 427.9 kB / 0.5412 GB, free: 5.164 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.695e-05/0.358, allocations: 9.781 kB / 0.5412 GB, free: 5.16 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.109e-05/0.3581, allocations: 1.062 kB / 0.5412 GB, free: 5.16 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006843/0.3587, allocations: 196.3 kB / 0.5414 GB, free: 5.059 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000321/0.3591, allocations: 48.41 kB / 0.5414 GB, free: 5.051 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001129/0.3602, allocations: 0.7305 MB / 0.5421 GB, free: 4.41 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004462/0.3607, allocations: 40.02 kB / 0.5422 GB, free: 4.391 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.569e-05/0.3607, allocations: 12.67 kB / 0.5422 GB, free: 4.387 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.0002299/0.361, allocations: 146.8 kB / 0.5423 GB, free: 4.246 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001114/0.3611, allocations: 28.05 kB / 0.5423 GB, free: 4.23 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001163/0.3612, allocations: 43.11 kB / 0.5424 GB, free: 4.191 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.201e-06/0.3613, allocations: 2.875 kB / 0.5424 GB, free: 4.191 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.015e-05/0.3613, allocations: 5.406 kB / 0.5424 GB, free: 4.188 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.172e-06/0.3613, allocations: 0 / 0.5424 GB, free: 4.188 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002626/0.3639, allocations: 0.9456 MB / 0.5433 GB, free: 3.445 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.779e-06/0.3639, allocations: 1.188 kB / 0.5433 GB, free: 3.445 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003481/0.3643, allocations: 45.59 kB / 0.5434 GB, free: 3.438 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005394/0.3649, allocations: 176.6 kB / 0.5435 GB, free: 3.344 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.417e-05/0.3649, allocations: 10.27 kB / 0.5435 GB, free: 3.336 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009138/0.3658, allocations: 0.6891 MB / 0.5442 GB, free: 2.715 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.315e-06/0.3659, allocations: 1.406 kB / 0.5442 GB, free: 2.715 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001686/0.3676, allocations: 0.6173 MB / 0.5448 GB, free: 2.312 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002251/0.3678, allocations: 127.3 kB / 0.5449 GB, free: 2.18 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.179e-05/0.3679, allocations: 12.41 kB / 0.5449 GB, free: 2.172 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004215/0.3683, allocations: 34.08 kB / 0.545 GB, free: 2.156 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001676/0.3685, allocations: 51.7 kB / 0.545 GB, free: 2.125 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.239e-05/0.3686, allocations: 14.17 kB / 0.545 GB, free: 2.117 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0002142/0.3688, allocations: 151.1 kB / 0.5452 GB, free: 2.012 MB / 398.1 MB Notification: Performance of sort global known variables: time 2.51e-07/0.3688, allocations: 4.062 kB / 0.5452 GB, free: 2.008 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0006044/0.3694, allocations: 78.94 kB / 0.5453 GB, free: 1.988 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.003095/0.3725, allocations: 1.384 MB / 0.5466 GB, free: 0.8008 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.000939/0.3735, allocations: 315.6 kB / 0.5469 GB, free: 0.4922 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 3.636e-06/0.3735, allocations: 0 / 0.5469 GB, free: 0.4922 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003687/0.3739, allocations: 168.2 kB / 0.5471 GB, free: 336 kB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004647/0.3743, allocations: 46.09 kB / 0.5471 GB, free: 292 kB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006578/0.3809, allocations: 3.078 MB / 0.5501 GB, free: 13.1 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003397/0.3813, allocations: 0.7602 MB / 0.5509 GB, free: 12.31 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0001135/0.3814, allocations: 30.25 kB / 0.5509 GB, free: 12.28 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001336/0.3816, allocations: 71.41 kB / 0.551 GB, free: 12.21 MB / 414.1 MB Notification: Performance of SimCode: time 6.51e-07/0.3816, allocations: 4 kB / 0.551 GB, free: 12.2 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02941/0.411, allocations: 8.048 MB / 0.5588 GB, free: 4.32 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.24/11.65, allocations: 6.062 kB / 0.5588 GB, free: 4.316 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