Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001888/0.001888, allocations: 116.5 kB / 20.44 MB, free: 1.469 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001527/0.001527, allocations: 212.4 kB / 23.74 MB, free: 4.695 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.514/1.514, allocations: 230.5 MB / 257.4 MB, free: 8.023 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2443/0.2443, allocations: 46.92 MB / 360.8 MB, free: 4.199 MB / 286.1 MB " [Timeout remaining time 180] 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.SimpleDriveTrain,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Rotational_ForUsersGuide_SimpleDriveTrain",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Rotational_ForUsersGuide_SimpleDriveTrain",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002438/0.002438, allocations: 79.88 kB / 0.4962 GB, free: 7.785 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3891/0.3915, allocations: 66.08 MB / 0.5607 GB, free: 4.328 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain): time 0.003682/0.3952, allocations: 1.932 MB / 0.5626 GB, free: 2.387 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.001239/0.3964, allocations: 0.5659 MB / 0.5632 GB, free: 1.816 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001442/0.3966, allocations: 7.938 kB / 0.5632 GB, free: 1.809 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001725/0.3968, allocations: 15.8 kB / 0.5632 GB, free: 1.793 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000123/0.3969, allocations: 43.62 kB / 0.5632 GB, free: 1.75 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002861/0.3972, allocations: 55.88 kB / 0.5633 GB, free: 1.695 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002517/0.3974, allocations: 151.2 kB / 0.5634 GB, free: 1.547 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001786/0.3976, allocations: 47.67 kB / 0.5635 GB, free: 1.496 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000203/0.3978, allocations: 71.77 kB / 0.5635 GB, free: 1.426 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001322/0.3979, allocations: 59.7 kB / 0.5636 GB, free: 1.367 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 2.999e-05/0.398, allocations: 12 kB / 0.5636 GB, free: 1.355 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.013e-05/0.398, allocations: 16 kB / 0.5636 GB, free: 1.34 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 3.241e-05/0.3981, allocations: 27.86 kB / 0.5636 GB, free: 1.312 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 8.226e-05/0.3981, allocations: 71.66 kB / 0.5637 GB, free: 1.242 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000291/0.3984, allocations: 159.3 kB / 0.5639 GB, free: 1.086 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.789e-06/0.3984, allocations: 4 kB / 0.5639 GB, free: 1.082 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.603e-06/0.3984, allocations: 0 / 0.5639 GB, free: 1.082 MB / 398.1 MB Notification: Performance of Transformations before backend: time 6.331e-06/0.3984, allocations: 0 / 0.5639 GB, free: 1.082 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.000649/0.3991, allocations: 361.7 kB / 0.5642 GB, free: 0.6992 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.493e-05/0.3991, allocations: 8.031 kB / 0.5642 GB, free: 0.6914 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.701e-05/0.3992, allocations: 50.73 kB / 0.5643 GB, free: 0.6328 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000168/0.3994, allocations: 28.83 kB / 0.5643 GB, free: 0.6055 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003227/0.3997, allocations: 154.3 kB / 0.5644 GB, free: 440 kB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.691e-05/0.3997, allocations: 8.375 kB / 0.5645 GB, free: 432 kB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.368e-05/0.3998, allocations: 20.33 kB / 0.5645 GB, free: 412 kB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002851/0.4, allocations: 129.5 kB / 0.5646 GB, free: 276 kB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.707e-05/0.4001, allocations: 0 / 0.5646 GB, free: 276 kB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.937e-05/0.4001, allocations: 8 kB / 0.5646 GB, free: 268 kB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.811e-06/0.4001, allocations: 0 / 0.5646 GB, free: 268 kB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002088/0.4003, allocations: 91.86 kB / 0.5647 GB, free: 176 kB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008404/0.4011, allocations: 431.5 kB / 0.5651 GB, free: 15.71 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002408/0.4014, allocations: 114.4 kB / 0.5652 GB, free: 15.59 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000116/0.4015, allocations: 56.78 kB / 0.5653 GB, free: 15.53 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.931e-05/0.4015, allocations: 0 / 0.5653 GB, free: 15.53 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.702e-05/0.4015, allocations: 38.56 kB / 0.5653 GB, free: 15.48 MB / 414.1 MB Notification: Performance of pre-optimization done (n=13): time 1.412e-06/0.4015, allocations: 0 / 0.5653 GB, free: 15.48 MB / 414.1 MB Notification: Performance of matching and sorting (n=19): time 0.001568/0.4031, allocations: 0.6577 MB / 0.5659 GB, free: 14.77 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.584e-05/0.4032, allocations: 59.41 kB / 0.566 GB, free: 14.7 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001597/0.4033, allocations: 145.5 kB / 0.5661 GB, free: 14.55 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 2.454e-05/0.4033, allocations: 33.7 kB / 0.5662 GB, free: 14.51 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.508e-05/0.4034, allocations: 116.3 kB / 0.5663 GB, free: 14.39 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.584e-05/0.4035, allocations: 71.38 kB / 0.5664 GB, free: 14.32 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.418e-05/0.4036, allocations: 37.7 kB / 0.5664 GB, free: 14.27 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001503/0.4037, allocations: 322.8 kB / 0.5667 GB, free: 13.95 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001043/0.4038, allocations: 47.97 kB / 0.5667 GB, free: 13.9 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001299/0.404, allocations: 79.34 kB / 0.5668 GB, free: 13.81 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002242/0.4042, allocations: 123.4 kB / 0.5669 GB, free: 13.68 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.102e-06/0.4042, allocations: 0 / 0.5669 GB, free: 13.68 MB / 414.1 MB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0004521/0.4046, allocations: 214.2 kB / 0.5671 GB, free: 13.46 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.3e-05/0.4047, allocations: 7.938 kB / 0.5671 GB, free: 13.45 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.706e-06/0.4047, allocations: 4 kB / 0.5672 GB, free: 13.45 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002039/0.4049, allocations: 40.83 kB / 0.5672 GB, free: 13.41 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001732/0.405, allocations: 31.98 kB / 0.5672 GB, free: 13.38 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001778/0.4068, allocations: 1.641 MB / 0.5688 GB, free: 11.62 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001141/0.4069, allocations: 12.06 kB / 0.5688 GB, free: 11.61 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.599e-05/0.4069, allocations: 8 kB / 0.5688 GB, free: 11.6 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.0001466/0.4071, allocations: 125.8 kB / 0.569 GB, free: 11.47 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.881e-05/0.4071, allocations: 7.953 kB / 0.569 GB, free: 11.46 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.778e-05/0.4072, allocations: 21.12 kB / 0.569 GB, free: 11.44 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.468e-06/0.4072, allocations: 3.938 kB / 0.569 GB, free: 11.44 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.526e-06/0.4072, allocations: 4 kB / 0.569 GB, free: 11.43 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.588e-06/0.4072, allocations: 0 / 0.569 GB, free: 11.43 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008772/0.4081, allocations: 0.5223 MB / 0.5695 GB, free: 10.86 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.386e-06/0.4081, allocations: 3.938 kB / 0.5695 GB, free: 10.85 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002073/0.4083, allocations: 35.92 kB / 0.5695 GB, free: 10.82 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001338/0.4084, allocations: 36.83 kB / 0.5696 GB, free: 10.78 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.271e-05/0.4084, allocations: 4.031 kB / 0.5696 GB, free: 10.77 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001289/0.4097, allocations: 1.385 MB / 0.5709 GB, free: 9.273 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.503e-06/0.4097, allocations: 0 / 0.5709 GB, free: 9.273 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005622/0.4103, allocations: 343.5 kB / 0.5713 GB, free: 8.918 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.686e-05/0.4103, allocations: 15.94 kB / 0.5713 GB, free: 8.902 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.029e-05/0.4103, allocations: 4 kB / 0.5713 GB, free: 8.898 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.886e-05/0.4104, allocations: 8.125 kB / 0.5713 GB, free: 8.891 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.521e-05/0.4105, allocations: 19.91 kB / 0.5713 GB, free: 8.871 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.558e-06/0.4105, allocations: 4 kB / 0.5713 GB, free: 8.867 MB / 414.1 MB Notification: Performance of sorting global known variables: time 9.167e-05/0.4106, allocations: 111.2 kB / 0.5714 GB, free: 8.758 MB / 414.1 MB Notification: Performance of sort global known variables: time 6e-08/0.4106, allocations: 0 / 0.5714 GB, free: 8.758 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0003549/0.411, allocations: 40 kB / 0.5715 GB, free: 8.719 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.0008931/0.4119, allocations: 0.8765 MB / 0.5723 GB, free: 7.812 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0006372/0.4125, allocations: 262.8 kB / 0.5726 GB, free: 7.543 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 3.076e-06/0.4125, allocations: 0 / 0.5726 GB, free: 7.543 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002914/0.4128, allocations: 193.2 kB / 0.5728 GB, free: 7.344 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003828/0.4132, allocations: 19.98 kB / 0.5728 GB, free: 7.324 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002935/0.4161, allocations: 2.055 MB / 0.5748 GB, free: 5.16 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004229/0.4165, allocations: 0.7166 MB / 0.5755 GB, free: 4.414 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 7.537e-05/0.4166, allocations: 13.42 kB / 0.5755 GB, free: 4.398 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.241e-05/0.4167, allocations: 47.42 kB / 0.5755 GB, free: 4.352 MB / 414.1 MB Notification: Performance of SimCode: time 1.843e-06/0.4167, allocations: 3.938 kB / 0.5755 GB, free: 4.348 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0369/0.4536, allocations: 3.619 MB / 0.5791 GB, free: 0.8438 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.25/12.7, allocations: 3.438 kB / 0.5791 GB, free: 0.8438 MB / 414.1 MB " [Timeout remaining time 647] (rm -f ModelicaTest_trunk_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain.sim & python3 -m fmpy simulate --output-file ModelicaTest_trunk_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain_res.csv --start-time 0 --stop-time 1.1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.000219912 ModelicaTest_trunk_ModelicaTest_Rotational_ForUsersGuide_SimpleDriveTrain.fmu > ModelicaTest_trunk_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain.pipe 2>&1) [Timeout 52.5] diffSimulationResults("ModelicaTest_trunk_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/ModelicaTest/Rotational/ForUsersGuide/SimpleDriveTrain/SimpleDriveTrain.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_trunk_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "Error: Could not read variable J2.phi in file ModelicaTest_trunk_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain_res.csv. Warning: Get data of variable J2.phi from file ModelicaTest_trunk_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain_res.csv failed! Error: Could not read variable J2.w in file ModelicaTest_trunk_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain_res.csv. Warning: Get data of variable J2.w from file ModelicaTest_trunk_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain_res.csv failed! " [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 15.925923180002428]