Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.0_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.00156/0.00156, allocations: 113.2 kB / 20.43 MB, free: 1.449 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001925/0.001925, allocations: 211.3 kB / 23.74 MB, free: 4.66 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.541/1.541, allocations: 230.6 MB / 257.5 MB, free: 8.004 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo): time 0.2424/0.2424, allocations: 46.95 MB / 360.9 MB, free: 4.34 MB / 286.1 MB " [Timeout remaining time 179] Using package ModelicaTest with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain,fileNamePrefix="ModelicaTest_4_1_0_ModelicaTest_Rotational_ForUsersGuide_SimpleDriveTrain",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain,fileNamePrefix="ModelicaTest_4_1_0_ModelicaTest_Rotational_ForUsersGuide_SimpleDriveTrain",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002059/0.002059, allocations: 63.91 kB / 0.4961 GB, free: 7.906 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.386/0.388, allocations: 66.03 MB / 0.5606 GB, free: 4.48 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain): time 0.003666/0.3917, allocations: 1.94 MB / 0.5625 GB, free: 2.527 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.001191/0.3929, allocations: 0.5698 MB / 0.5631 GB, free: 1.953 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001091/0.393, allocations: 4 kB / 0.5631 GB, free: 1.949 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001459/0.3931, allocations: 19.73 kB / 0.5631 GB, free: 1.93 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001214/0.3933, allocations: 47.62 kB / 0.5631 GB, free: 1.883 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002545/0.3935, allocations: 47.88 kB / 0.5632 GB, free: 1.836 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002538/0.3938, allocations: 155.2 kB / 0.5633 GB, free: 1.684 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001821/0.394, allocations: 47.67 kB / 0.5634 GB, free: 1.633 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001815/0.3941, allocations: 63.83 kB / 0.5634 GB, free: 1.57 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001349/0.3943, allocations: 67.64 kB / 0.5635 GB, free: 1.504 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 2.517e-05/0.3943, allocations: 12 kB / 0.5635 GB, free: 1.492 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.391e-05/0.3944, allocations: 16 kB / 0.5635 GB, free: 1.477 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 4.367e-05/0.3944, allocations: 31.84 kB / 0.5636 GB, free: 1.445 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 8.308e-05/0.3945, allocations: 71.61 kB / 0.5636 GB, free: 1.375 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002859/0.3948, allocations: 159.3 kB / 0.5638 GB, free: 1.219 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.903e-06/0.3948, allocations: 0 / 0.5638 GB, free: 1.219 MB / 398.1 MB Notification: Performance of FrontEnd: time 2.374e-06/0.3948, allocations: 0 / 0.5638 GB, free: 1.219 MB / 398.1 MB Notification: Performance of Transformations before backend: time 7.564e-06/0.3948, allocations: 0 / 0.5638 GB, free: 1.219 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.0006226/0.3954, allocations: 361.7 kB / 0.5641 GB, free: 0.8359 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.185e-05/0.3955, allocations: 8.031 kB / 0.5641 GB, free: 0.8281 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.739e-05/0.3955, allocations: 50.73 kB / 0.5642 GB, free: 0.7695 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001532/0.3957, allocations: 28.83 kB / 0.5642 GB, free: 0.7422 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003024/0.396, allocations: 150.3 kB / 0.5644 GB, free: 0.5703 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.877e-05/0.396, allocations: 8.375 kB / 0.5644 GB, free: 0.5625 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.246e-05/0.396, allocations: 24.33 kB / 0.5644 GB, free: 0.5391 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002876/0.3963, allocations: 130 kB / 0.5645 GB, free: 416 kB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.485e-05/0.3963, allocations: 0 / 0.5645 GB, free: 416 kB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.766e-05/0.3964, allocations: 7.984 kB / 0.5645 GB, free: 408 kB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.133e-06/0.3964, allocations: 7.984 kB / 0.5645 GB, free: 400 kB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001987/0.3966, allocations: 83.94 kB / 0.5646 GB, free: 316 kB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007778/0.3973, allocations: 431.5 kB / 0.565 GB, free: 15.84 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002548/0.3976, allocations: 114.4 kB / 0.5651 GB, free: 15.72 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001156/0.3977, allocations: 52.84 kB / 0.5652 GB, free: 15.67 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.181e-05/0.3977, allocations: 0 / 0.5652 GB, free: 15.67 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.588e-05/0.3978, allocations: 38.56 kB / 0.5652 GB, free: 15.62 MB / 414.1 MB Notification: Performance of pre-optimization done (n=13): time 1.192e-06/0.3978, allocations: 0 / 0.5652 GB, free: 15.62 MB / 414.1 MB Notification: Performance of matching and sorting (n=19): time 0.001575/0.3994, allocations: 0.6651 MB / 0.5659 GB, free: 14.9 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.091e-05/0.3994, allocations: 59.39 kB / 0.5659 GB, free: 14.83 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001537/0.3996, allocations: 139.8 kB / 0.5661 GB, free: 14.69 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 2.705e-05/0.3996, allocations: 33.7 kB / 0.5661 GB, free: 14.65 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.192e-05/0.3997, allocations: 108.4 kB / 0.5662 GB, free: 14.54 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.047e-05/0.3997, allocations: 79.31 kB / 0.5663 GB, free: 14.46 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.249e-05/0.3998, allocations: 37.7 kB / 0.5663 GB, free: 14.41 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001601/0.4, allocations: 322.8 kB / 0.5666 GB, free: 14.09 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.95e-05/0.4001, allocations: 47.97 kB / 0.5667 GB, free: 14.04 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001346/0.4002, allocations: 84.59 kB / 0.5667 GB, free: 13.95 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002232/0.4004, allocations: 127.3 kB / 0.5669 GB, free: 13.81 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.62e-07/0.4004, allocations: 0 / 0.5669 GB, free: 13.81 MB / 414.1 MB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0003999/0.4008, allocations: 210.3 kB / 0.5671 GB, free: 13.6 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.916e-05/0.4008, allocations: 11.88 kB / 0.5671 GB, free: 13.59 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.606e-06/0.4009, allocations: 4 kB / 0.5671 GB, free: 13.58 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001813/0.401, allocations: 40.83 kB / 0.5671 GB, free: 13.54 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001834/0.4012, allocations: 35.92 kB / 0.5672 GB, free: 13.5 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001704/0.4029, allocations: 1.637 MB / 0.5688 GB, free: 11.75 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001075/0.403, allocations: 8 kB / 0.5688 GB, free: 11.75 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.647e-05/0.403, allocations: 4 kB / 0.5688 GB, free: 11.74 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.0001602/0.4032, allocations: 133.8 kB / 0.5689 GB, free: 11.6 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.793e-05/0.4032, allocations: 7.953 kB / 0.5689 GB, free: 11.59 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.482e-05/0.4033, allocations: 21.12 kB / 0.5689 GB, free: 11.57 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.667e-06/0.4033, allocations: 3.938 kB / 0.5689 GB, free: 11.57 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.166e-06/0.4033, allocations: 4 kB / 0.5689 GB, free: 11.57 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.697e-06/0.4033, allocations: 4.062 kB / 0.5689 GB, free: 11.56 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008443/0.4042, allocations: 0.5207 MB / 0.5694 GB, free: 10.99 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.336e-06/0.4042, allocations: 0 / 0.5694 GB, free: 10.99 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001666/0.4043, allocations: 31.98 kB / 0.5695 GB, free: 10.96 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001282/0.4044, allocations: 40.86 kB / 0.5695 GB, free: 10.91 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.111e-05/0.4045, allocations: 0 / 0.5695 GB, free: 10.91 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001382/0.4058, allocations: 1.385 MB / 0.5709 GB, free: 9.414 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.385e-06/0.4058, allocations: 0 / 0.5709 GB, free: 9.414 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005938/0.4064, allocations: 340.9 kB / 0.5712 GB, free: 9.059 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.33e-05/0.4065, allocations: 11.94 kB / 0.5712 GB, free: 9.047 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.991e-05/0.4065, allocations: 12.12 kB / 0.5712 GB, free: 9.035 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.442e-05/0.4066, allocations: 4 kB / 0.5712 GB, free: 9.031 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.547e-05/0.4067, allocations: 19.91 kB / 0.5712 GB, free: 9.012 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.01e-05/0.4067, allocations: 4 kB / 0.5712 GB, free: 9.008 MB / 414.1 MB Notification: Performance of sorting global known variables: time 9.923e-05/0.4068, allocations: 109.7 kB / 0.5713 GB, free: 8.902 MB / 414.1 MB Notification: Performance of sort global known variables: time 7e-08/0.4068, allocations: 0 / 0.5713 GB, free: 8.902 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0003694/0.4071, allocations: 44 kB / 0.5714 GB, free: 8.859 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.0009601/0.4081, allocations: 0.8801 MB / 0.5722 GB, free: 7.949 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0007133/0.4088, allocations: 254.9 kB / 0.5725 GB, free: 7.688 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 3.507e-06/0.4088, allocations: 0 / 0.5725 GB, free: 7.688 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003501/0.4092, allocations: 194.5 kB / 0.5727 GB, free: 7.484 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004157/0.4096, allocations: 23.92 kB / 0.5727 GB, free: 7.461 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003182/0.4128, allocations: 2.059 MB / 0.5747 GB, free: 5.297 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004696/0.4132, allocations: 0.7166 MB / 0.5754 GB, free: 4.551 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 6.692e-05/0.4133, allocations: 21.41 kB / 0.5754 GB, free: 4.527 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.672e-05/0.4134, allocations: 43.42 kB / 0.5755 GB, free: 4.484 MB / 414.1 MB Notification: Performance of SimCode: time 1.994e-06/0.4134, allocations: 0 / 0.5755 GB, free: 4.484 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03454/0.4479, allocations: 3.605 MB / 0.579 GB, free: 1.02 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.23/12.68, allocations: 64 / 0.579 GB, free: 1.02 MB / 414.1 MB " [Timeout remaining time 647] (rm -f ModelicaTest_4.1.0_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain.pipe ; mkfifo ModelicaTest_4.1.0_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain.pipe ; head -c 1048576 < ModelicaTest_4.1.0_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain.pipe >> ../files/ModelicaTest_4.1.0_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain.sim & python3 -m fmpy simulate --output-file ModelicaTest_4.1.0_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_4_1_0_ModelicaTest_Rotational_ForUsersGuide_SimpleDriveTrain.fmu > ModelicaTest_4.1.0_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain.pipe 2>&1) [Timeout 52.5] diffSimulationResults("ModelicaTest_4.1.0_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_4.1.0_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_4.1.0_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain_res.csv. Warning: Get data of variable J2.phi from file ModelicaTest_4.1.0_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain_res.csv failed! Error: Could not read variable J2.w in file ModelicaTest_4.1.0_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain_res.csv. Warning: Get data of variable J2.w from file ModelicaTest_4.1.0_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain_res.csv failed! " [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 15.975379412993789]