Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Rotational.ForUsersGuide.Directions2.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.Directions2,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Rotational_ForUsersGuide_Directions2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Rotational.ForUsersGuide.Directions2,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Rotational_ForUsersGuide_Directions2",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: 118.2 kB / 17.78 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.001454/0.001454, allocations: 205.2 kB / 18.74 MB, free: 4.312 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.443/1.443, allocations: 227.4 MB / 246.9 MB, free: 10.45 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2181/0.2181, allocations: 46.11 MB / 344.3 MB, free: 11.5 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001572/0.001572, allocations: 75.88 kB / 480.8 MB, free: 4.586 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3453/0.3469, allocations: 62.43 MB / 0.5305 GB, free: 13.42 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.ForUsersGuide.Directions2): time 0.003997/0.351, allocations: 2.857 MB / 0.5333 GB, free: 11.17 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.001398/0.3524, allocations: 0.7715 MB / 0.534 GB, free: 10.53 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002149/0.3526, allocations: 10.81 kB / 0.5341 GB, free: 10.53 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00021/0.3529, allocations: 62.25 kB / 0.5341 GB, free: 10.47 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002618/0.3532, allocations: 126 kB / 0.5342 GB, free: 10.36 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003421/0.3535, allocations: 109.5 kB / 0.5343 GB, free: 10.27 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004819/0.354, allocations: 435.2 kB / 0.5348 GB, free: 10.01 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000256/0.3543, allocations: 142.2 kB / 0.5349 GB, free: 9.93 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000311/0.3546, allocations: 181.4 kB / 0.5351 GB, free: 9.828 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002169/0.3548, allocations: 176.1 kB / 0.5352 GB, free: 9.711 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 4.935e-05/0.3549, allocations: 31.91 kB / 0.5353 GB, free: 9.711 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.517e-05/0.355, allocations: 38.75 kB / 0.5353 GB, free: 9.707 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 6.768e-05/0.355, allocations: 82.69 kB / 0.5354 GB, free: 9.637 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001796/0.3552, allocations: 196.4 kB / 0.5356 GB, free: 9.512 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004801/0.3557, allocations: 449.6 kB / 0.536 GB, free: 9.191 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.619e-06/0.3557, allocations: 1.156 kB / 0.536 GB, free: 9.191 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.673e-06/0.3557, allocations: 0 / 0.536 GB, free: 9.191 MB / 398.1 MB Notification: Performance of Transformations before backend: time 8.145e-06/0.3558, allocations: 0 / 0.536 GB, free: 9.191 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: 93 * Number of variables: 93 Notification: Performance of Generate backend data structure: time 0.0009295/0.3567, allocations: 0.6648 MB / 0.5366 GB, free: 8.605 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.015e-05/0.3567, allocations: 9.062 kB / 0.5367 GB, free: 8.605 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.805e-05/0.3568, allocations: 74.56 kB / 0.5367 GB, free: 8.535 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002661/0.3571, allocations: 57.19 kB / 0.5368 GB, free: 8.512 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004306/0.3575, allocations: 287 kB / 0.5371 GB, free: 8.227 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.575e-05/0.3576, allocations: 27.81 kB / 0.5371 GB, free: 8.211 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.802e-05/0.3577, allocations: 46.52 kB / 0.5371 GB, free: 8.191 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006554/0.3583, allocations: 390.5 kB / 0.5375 GB, free: 7.918 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.758e-05/0.3584, allocations: 10.39 kB / 0.5375 GB, free: 7.91 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.458e-05/0.3584, allocations: 19.84 kB / 0.5375 GB, free: 7.895 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.452e-05/0.3584, allocations: 10.19 kB / 0.5375 GB, free: 7.895 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004429/0.3589, allocations: 221.9 kB / 0.5377 GB, free: 7.793 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002146/0.3611, allocations: 1.719 MB / 0.5394 GB, free: 6.242 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004225/0.3615, allocations: 262.1 kB / 0.5397 GB, free: 6.008 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001844/0.3617, allocations: 98.39 kB / 0.5398 GB, free: 5.922 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.546e-05/0.3617, allocations: 4.203 kB / 0.5398 GB, free: 5.922 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.972e-05/0.3618, allocations: 41.88 kB / 0.5398 GB, free: 5.875 MB / 398.1 MB Notification: Performance of pre-optimization done (n=26): time 1.884e-06/0.3618, allocations: 3.938 kB / 0.5398 GB, free: 5.871 MB / 398.1 MB Notification: Performance of matching and sorting (n=26): time 0.0007113/0.3625, allocations: 269.8 kB / 0.5401 GB, free: 5.727 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001007/0.3626, allocations: 213.1 kB / 0.5403 GB, free: 5.473 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00027/0.3629, allocations: 276.2 kB / 0.5405 GB, free: 5.277 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 2.615e-05/0.3629, allocations: 32.11 kB / 0.5406 GB, free: 5.242 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001437/0.3631, allocations: 244.8 kB / 0.5408 GB, free: 5.02 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.333e-05/0.3632, allocations: 124.4 kB / 0.5409 GB, free: 4.91 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001231/0.3633, allocations: 97.27 kB / 0.541 GB, free: 4.848 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001292/0.3634, allocations: 358.3 kB / 0.5414 GB, free: 4.496 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001996/0.3636, allocations: 98.72 kB / 0.5415 GB, free: 4.453 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003922/0.364, allocations: 430.4 kB / 0.5419 GB, free: 3.953 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006344/0.3647, allocations: 0.5683 MB / 0.5424 GB, free: 3.367 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.205e-06/0.3647, allocations: 7.5 kB / 0.5424 GB, free: 3.363 MB / 398.1 MB Notification: Performance of matching and sorting (n=71) (initialization): time 0.0008421/0.3655, allocations: 0.5237 MB / 0.5429 GB, free: 3.09 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.121e-05/0.3656, allocations: 9.719 kB / 0.5429 GB, free: 3.09 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.343e-05/0.3656, allocations: 12.59 kB / 0.543 GB, free: 3.09 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.093e-05/0.3657, allocations: 14.88 kB / 0.543 GB, free: 3.09 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004424/0.3661, allocations: 149.7 kB / 0.5431 GB, free: 3.055 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.593e-05/0.3661, allocations: 23.59 kB / 0.5431 GB, free: 3.047 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000332/0.3665, allocations: 74.98 kB / 0.5432 GB, free: 2.996 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.935e-05/0.3665, allocations: 30.94 kB / 0.5432 GB, free: 2.992 MB / 398.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 52 * 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 (71): * Single equations (assignments): 71 * 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.0001907/0.3667, allocations: 184.4 kB / 0.5434 GB, free: 2.824 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001639/0.3669, allocations: 36.98 kB / 0.5434 GB, free: 2.805 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.451e-05/0.367, allocations: 34.77 kB / 0.5435 GB, free: 2.781 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.065e-06/0.367, allocations: 8.266 kB / 0.5435 GB, free: 2.777 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.397e-06/0.367, allocations: 2.438 kB / 0.5435 GB, free: 2.777 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.462e-06/0.367, allocations: 5.109 kB / 0.5435 GB, free: 2.773 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001261/0.3683, allocations: 0.6487 MB / 0.5441 GB, free: 2.207 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.949e-06/0.3683, allocations: 6.719 kB / 0.5441 GB, free: 2.203 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000451/0.3687, allocations: 84.09 kB / 0.5442 GB, free: 2.188 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.875e-06/0.3688, allocations: 3.812 kB / 0.5442 GB, free: 2.188 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.7e-05/0.3688, allocations: 13.25 kB / 0.5442 GB, free: 2.18 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.001e-05/0.3688, allocations: 11.25 kB / 0.5442 GB, free: 2.172 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.597e-06/0.3688, allocations: 6.25 kB / 0.5442 GB, free: 2.168 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007422/0.3696, allocations: 0.8315 MB / 0.5451 GB, free: 1.445 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00013/0.3697, allocations: 107 kB / 0.5452 GB, free: 1.332 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.103e-05/0.3698, allocations: 17.23 kB / 0.5452 GB, free: 1.32 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003479/0.3701, allocations: 9.156 kB / 0.5452 GB, free: 1.316 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.826e-05/0.3702, allocations: 26.44 kB / 0.5452 GB, free: 1.301 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.576e-05/0.3702, allocations: 6.938 kB / 0.5452 GB, free: 1.301 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0001756/0.3704, allocations: 189 kB / 0.5454 GB, free: 1.168 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.21e-07/0.3704, allocations: 0 / 0.5454 GB, free: 1.168 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0007924/0.3712, allocations: 99.61 kB / 0.5455 GB, free: 1.148 MB / 398.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 9 * Number of states: 18 (inertia2.phi,inertia2.w,inertia1.phi,inertia1.w,inertia5.phi,inertia5.w,inertia6.phi,inertia6.w,inertia3.phi,inertia3.w,inertia4.phi,inertia4.w,J6.phi,J6.w,J4.phi,J4.w,J2.phi,J2.w) * 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 (26): * Single equations (assignments): 26 * 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.0009964/0.3722, allocations: 1.39 MB / 0.5469 GB, free: 15.88 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0005882/0.3728, allocations: 291.5 kB / 0.5471 GB, free: 15.76 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 2.605e-06/0.3728, allocations: 0 / 0.5471 GB, free: 15.76 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001672/0.373, allocations: 87.23 kB / 0.5472 GB, free: 15.73 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001019/0.374, allocations: 76.14 kB / 0.5473 GB, free: 15.69 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005543/0.3796, allocations: 4.958 MB / 0.5521 GB, free: 10.31 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003613/0.38, allocations: 0.7989 MB / 0.5529 GB, free: 9.484 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0001736/0.3802, allocations: 47.25 kB / 0.553 GB, free: 9.434 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001467/0.3803, allocations: 115.4 kB / 0.5531 GB, free: 9.32 MB / 414.1 MB Notification: Performance of SimCode: time 6.22e-07/0.3803, allocations: 4 kB / 0.5531 GB, free: 9.316 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02811/0.4084, allocations: 6.641 MB / 0.5596 GB, free: 2.793 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.562/8.971, allocations: 13.44 kB / 0.5596 GB, free: 2.785 MB / 414.1 MB (rm -f ModelicaTest_trunk_ModelicaTest.Rotational.ForUsersGuide.Directions2.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Rotational.ForUsersGuide.Directions2.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Rotational.ForUsersGuide.Directions2.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Rotational.ForUsersGuide.Directions2.sim & python3 -m fmpy simulate --output-file ModelicaTest_trunk_ModelicaTest.Rotational.ForUsersGuide.Directions2_res.csv --start-time 0 --stop-time 2 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0008 ModelicaTest_trunk_ModelicaTest_Rotational_ForUsersGuide_Directions2.fmu > ModelicaTest_trunk_ModelicaTest.Rotational.ForUsersGuide.Directions2.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_ModelicaTest.Rotational.ForUsersGuide.Directions2_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Rotational/ForUsersGuide/Directions2/Directions2.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_trunk_ModelicaTest.Rotational.ForUsersGuide.Directions2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches