Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.0-beta.om_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 90] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 90] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 90] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/package.mo", uses=false) [Timeout 90] Using package ModelicaTest with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/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.SimpleDriveTrain,tolerance=1e-06,outputFormat="mat",numberOfIntervals=500,variableFilter="time|J2.phi|J2.w",fileNamePrefix="ModelicaTest_4.1.0-beta.om_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain") translateModel(ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain,tolerance=1e-06,outputFormat="mat",numberOfIntervals=500,variableFilter="time|J2.phi|J2.w",fileNamePrefix="ModelicaTest_4.1.0-beta.om_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain") [Timeout 660] Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001709/0.001709, allocations: 113.4 kB / 18.79 MB, free: 3.562 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001943/0.001943, allocations: 215.1 kB / 19.8 MB, free: 2.559 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.487/1.487, allocations: 230.2 MB / 250.8 MB, free: 8.777 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/package.mo): time 0.2798/0.2798, allocations: 46.88 MB / 351.8 MB, free: 7.316 MB / 286.1 MB Warning: Requested package Modelica of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Notification: Performance of FrontEnd - loaded program: time 0.002436/0.002436, allocations: 83.86 kB / 496.5 MB, free: 11.32 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.412/0.4145, allocations: 65.97 MB / 0.5493 GB, free: 5.402 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain): time 0.003916/0.4184, allocations: 1.946 MB / 0.5512 GB, free: 3.738 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.00121/0.4196, allocations: 0.561 MB / 0.5517 GB, free: 3.172 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.647e-05/0.4197, allocations: 0 / 0.5517 GB, free: 3.172 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001742/0.4199, allocations: 31.72 kB / 0.5517 GB, free: 3.141 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 9.458e-05/0.4199, allocations: 35.64 kB / 0.5518 GB, free: 3.105 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002539/0.4202, allocations: 51.88 kB / 0.5518 GB, free: 3.055 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.000245/0.4204, allocations: 151.3 kB / 0.552 GB, free: 2.906 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001764/0.4206, allocations: 45.59 kB / 0.552 GB, free: 2.859 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001742/0.4208, allocations: 71.77 kB / 0.5521 GB, free: 2.789 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001316/0.4209, allocations: 63.7 kB / 0.5521 GB, free: 2.727 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 2.568e-05/0.421, allocations: 12 kB / 0.5521 GB, free: 2.715 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.537e-05/0.421, allocations: 12 kB / 0.5522 GB, free: 2.703 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 3.43e-05/0.421, allocations: 31.91 kB / 0.5522 GB, free: 2.672 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 7.868e-05/0.4211, allocations: 75.59 kB / 0.5523 GB, free: 2.598 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002568/0.4214, allocations: 152.3 kB / 0.5524 GB, free: 2.449 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.359e-06/0.4214, allocations: 0 / 0.5524 GB, free: 2.449 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.212e-06/0.4214, allocations: 0 / 0.5524 GB, free: 2.449 MB / 398.1 MB Notification: Performance of Transformations before backend: time 5.871e-06/0.4214, allocations: 4 kB / 0.5524 GB, free: 2.445 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: 32 * Number of variables: 32 Notification: Performance of Generate backend data structure: time 0.0006891/0.4221, allocations: 438.8 kB / 0.5528 GB, free: 1.969 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.824e-05/0.4221, allocations: 12.03 kB / 0.5528 GB, free: 1.957 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001562/0.4223, allocations: 20.84 kB / 0.5529 GB, free: 1.938 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002928/0.4226, allocations: 215.6 kB / 0.5531 GB, free: 1.691 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.389e-05/0.4226, allocations: 12.38 kB / 0.5531 GB, free: 1.68 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.885e-05/0.4226, allocations: 16.33 kB / 0.5531 GB, free: 1.664 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003039/0.4229, allocations: 133.7 kB / 0.5532 GB, free: 1.527 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.674e-05/0.4229, allocations: 4 kB / 0.5532 GB, free: 1.523 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.874e-05/0.423, allocations: 4 kB / 0.5532 GB, free: 1.52 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.706e-06/0.423, allocations: 4 kB / 0.5532 GB, free: 1.516 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001918/0.4232, allocations: 83.94 kB / 0.5533 GB, free: 1.434 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008187/0.424, allocations: 456.4 kB / 0.5537 GB, free: 0.9375 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002483/0.4242, allocations: 126.3 kB / 0.5539 GB, free: 0.8047 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001202/0.4243, allocations: 56.83 kB / 0.5539 GB, free: 0.7461 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.775e-05/0.4244, allocations: 0 / 0.5539 GB, free: 0.7461 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.075e-05/0.4244, allocations: 38.56 kB / 0.554 GB, free: 0.6992 MB / 398.1 MB Notification: Performance of pre-optimization done (n=13): time 8.72e-07/0.4244, allocations: 0 / 0.554 GB, free: 0.6992 MB / 398.1 MB Notification: Performance of matching and sorting (n=19): time 0.001586/0.426, allocations: 0.8111 MB / 0.5547 GB, free: 15.79 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.564e-05/0.426, allocations: 51.41 kB / 0.5548 GB, free: 15.73 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001462/0.4262, allocations: 144.2 kB / 0.5549 GB, free: 15.58 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 2.456e-05/0.4262, allocations: 29.7 kB / 0.555 GB, free: 15.55 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.285e-05/0.4263, allocations: 120.4 kB / 0.5551 GB, free: 15.42 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.127e-05/0.4264, allocations: 71.38 kB / 0.5551 GB, free: 15.35 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.149e-05/0.4264, allocations: 37.7 kB / 0.5552 GB, free: 15.31 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001711/0.4266, allocations: 318.8 kB / 0.5555 GB, free: 14.99 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.641e-05/0.4267, allocations: 39.98 kB / 0.5555 GB, free: 14.95 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001324/0.4268, allocations: 90.84 kB / 0.5556 GB, free: 14.85 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002343/0.4271, allocations: 131.3 kB / 0.5557 GB, free: 14.71 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.61e-07/0.4271, allocations: 0 / 0.5557 GB, free: 14.71 MB / 414.1 MB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0003817/0.4274, allocations: 202.3 kB / 0.5559 GB, free: 14.5 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.057e-05/0.4275, allocations: 7.938 kB / 0.5559 GB, free: 14.5 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.142e-06/0.4275, allocations: 0 / 0.5559 GB, free: 14.5 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001795/0.4276, allocations: 48.86 kB / 0.556 GB, free: 14.45 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001682/0.4278, allocations: 31.92 kB / 0.556 GB, free: 14.41 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00183/0.4296, allocations: 1.741 MB / 0.5577 GB, free: 12.53 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.125e-05/0.4297, allocations: 11.97 kB / 0.5577 GB, free: 12.52 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.443e-05/0.4297, allocations: 4 kB / 0.5577 GB, free: 12.52 MB / 414.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: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (17): * Single equations (assignments): 16 * 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): 1 system {(1,5,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0001715/0.4299, allocations: 137.8 kB / 0.5579 GB, free: 12.37 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.343e-05/0.43, allocations: 15.91 kB / 0.5579 GB, free: 12.36 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.26e-05/0.43, allocations: 21.17 kB / 0.5579 GB, free: 12.34 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.756e-06/0.43, allocations: 7.938 kB / 0.5579 GB, free: 12.33 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.521e-06/0.43, allocations: 0 / 0.5579 GB, free: 12.33 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.088e-06/0.43, allocations: 0 / 0.5579 GB, free: 12.33 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009079/0.4309, allocations: 0.553 MB / 0.5584 GB, free: 11.72 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.324e-06/0.4309, allocations: 0 / 0.5584 GB, free: 11.72 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001705/0.4311, allocations: 31.98 kB / 0.5585 GB, free: 11.69 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001141/0.4312, allocations: 40.86 kB / 0.5585 GB, free: 11.64 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.315e-05/0.4312, allocations: 0 / 0.5585 GB, free: 11.64 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001586/0.4328, allocations: 1.482 MB / 0.56 GB, free: 10.02 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.102e-06/0.4328, allocations: 0 / 0.56 GB, free: 10.02 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005769/0.4334, allocations: 353 kB / 0.5603 GB, free: 9.652 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.862e-05/0.4335, allocations: 89.05 kB / 0.5604 GB, free: 9.547 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.973e-05/0.4335, allocations: 4 kB / 0.5604 GB, free: 9.543 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.399e-05/0.4336, allocations: 4 kB / 0.5604 GB, free: 9.539 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.231e-05/0.4337, allocations: 23.91 kB / 0.5604 GB, free: 9.516 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.472e-06/0.4337, allocations: 0 / 0.5604 GB, free: 9.516 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0001006/0.4338, allocations: 114.6 kB / 0.5605 GB, free: 9.406 MB / 414.1 MB Notification: Performance of sort global known variables: time 8e-08/0.4338, allocations: 0 / 0.5605 GB, free: 9.406 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0003457/0.4341, allocations: 40 kB / 0.5606 GB, free: 9.367 MB / 414.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 2 (J1.phi,J1.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 (16): * Single equations (assignments): 15 * 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): 1 system {(1,3,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0001912/0.4343, allocations: 103.2 kB / 0.5607 GB, free: 9.258 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0006236/0.4349, allocations: 254.9 kB / 0.5609 GB, free: 8.996 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 2.816e-06/0.4349, allocations: 4.062 kB / 0.5609 GB, free: 8.992 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003206/0.4353, allocations: 190.6 kB / 0.5611 GB, free: 8.793 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003935/0.4356, allocations: 16.22 kB / 0.5611 GB, free: 8.777 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009749/0.4366, allocations: 464 kB / 0.5615 GB, free: 8.301 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004398/0.4371, allocations: 0.7166 MB / 0.5622 GB, free: 7.551 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 5.808e-05/0.4371, allocations: 17.36 kB / 0.5623 GB, free: 7.535 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.442e-05/0.4372, allocations: 11.44 kB / 0.5623 GB, free: 7.523 MB / 414.1 MB Notification: Performance of SimCode: time 5.31e-07/0.4372, allocations: 8 kB / 0.5623 GB, free: 7.516 MB / 414.1 MB Notification: Performance of Templates: time 0.005623/0.4428, allocations: 1.676 MB / 0.5639 GB, free: 5.84 MB / 414.1 MB make -j1 -f ModelicaTest_4.1.0-beta.om_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain.makefile [Timeout 660] (rm -f ModelicaTest_4.1.0-beta.om_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain.pipe ; mkfifo ModelicaTest_4.1.0-beta.om_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain.pipe ; head -c 1048576 < ModelicaTest_4.1.0-beta.om_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain.pipe >> ../files/ModelicaTest_4.1.0-beta.om_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain.sim & ./ModelicaTest_4.1.0-beta.om_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.1.0-beta.om_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain.pipe 2>&1) [Timeout 480] diffSimulationResults("ModelicaTest_4.1.0-beta.om_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/ModelicaTest/Rotational/ForUsersGuide/SimpleDriveTrain/SimpleDriveTrain.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.1.0-beta.om_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] Reference file matches