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.001665/0.001665, allocations: 110.5 kB / 21.1 MB, free: 0.7695 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.002114/0.002114, allocations: 205 kB / 24.38 MB, free: 4.188 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.516/1.516, allocations: 230.2 MB / 257.7 MB, free: 8.285 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.2528/0.2528, allocations: 46.89 MB / 361 MB, free: 4.461 MB / 286.1 MB " [Timeout remaining time 179] 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.002406/0.002406, allocations: 79.86 kB / 0.4962 GB, free: 8.211 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4479/0.4504, allocations: 66.02 MB / 0.5606 GB, free: 4.699 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain): time 0.003854/0.4542, allocations: 1.934 MB / 0.5625 GB, free: 2.758 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.001326/0.4555, allocations: 0.5659 MB / 0.5631 GB, free: 2.188 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001447/0.4557, allocations: 4 kB / 0.5631 GB, free: 2.184 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001655/0.4558, allocations: 27.72 kB / 0.5631 GB, free: 2.156 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001279/0.456, allocations: 43.62 kB / 0.5632 GB, free: 2.113 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002852/0.4563, allocations: 47.89 kB / 0.5632 GB, free: 2.066 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002485/0.4565, allocations: 155.2 kB / 0.5633 GB, free: 1.914 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001834/0.4567, allocations: 47.66 kB / 0.5634 GB, free: 1.863 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000204/0.4569, allocations: 63.84 kB / 0.5635 GB, free: 1.801 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001368/0.457, allocations: 63.69 kB / 0.5635 GB, free: 1.738 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 2.776e-05/0.4571, allocations: 15.94 kB / 0.5635 GB, free: 1.723 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.643e-05/0.4571, allocations: 20 kB / 0.5635 GB, free: 1.703 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 3.711e-05/0.4572, allocations: 31.86 kB / 0.5636 GB, free: 1.672 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001608/0.4573, allocations: 67.66 kB / 0.5636 GB, free: 1.605 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003091/0.4576, allocations: 159.3 kB / 0.5638 GB, free: 1.449 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.944e-06/0.4576, allocations: 0 / 0.5638 GB, free: 1.449 MB / 398.1 MB Notification: Performance of FrontEnd: time 2.224e-06/0.4576, allocations: 0 / 0.5638 GB, free: 1.449 MB / 398.1 MB Notification: Performance of Transformations before backend: time 8.767e-06/0.4577, allocations: 0 / 0.5638 GB, free: 1.449 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.0007255/0.4584, allocations: 434.8 kB / 0.5642 GB, free: 0.9766 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.223e-05/0.4584, allocations: 8.031 kB / 0.5642 GB, free: 0.9688 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.843e-05/0.4585, allocations: 50.73 kB / 0.5643 GB, free: 0.9102 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001755/0.4587, allocations: 32.83 kB / 0.5643 GB, free: 0.8789 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003779/0.459, allocations: 208.1 kB / 0.5645 GB, free: 0.6367 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.614e-05/0.4591, allocations: 8.375 kB / 0.5645 GB, free: 0.6289 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.729e-05/0.4591, allocations: 24.27 kB / 0.5645 GB, free: 0.6055 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002923/0.4594, allocations: 130 kB / 0.5647 GB, free: 484 kB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.687e-05/0.4594, allocations: 4 kB / 0.5647 GB, free: 480 kB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.135e-05/0.4594, allocations: 7.984 kB / 0.5647 GB, free: 472 kB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.643e-06/0.4594, allocations: 8 kB / 0.5647 GB, free: 464 kB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002019/0.4596, allocations: 83.92 kB / 0.5648 GB, free: 380 kB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008233/0.4605, allocations: 456.4 kB / 0.5652 GB, free: 15.88 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000247/0.4607, allocations: 118.4 kB / 0.5653 GB, free: 15.75 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001356/0.4608, allocations: 56.83 kB / 0.5654 GB, free: 15.69 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.325e-05/0.4609, allocations: 4 kB / 0.5654 GB, free: 15.69 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.309e-05/0.4609, allocations: 34.56 kB / 0.5654 GB, free: 15.64 MB / 414.1 MB Notification: Performance of pre-optimization done (n=13): time 1.723e-06/0.4609, allocations: 0 / 0.5654 GB, free: 15.64 MB / 414.1 MB Notification: Performance of matching and sorting (n=19): time 0.001668/0.4626, allocations: 0.8118 MB / 0.5662 GB, free: 14.74 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.105e-05/0.4626, allocations: 55.41 kB / 0.5662 GB, free: 14.68 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001772/0.4628, allocations: 152.2 kB / 0.5664 GB, free: 14.52 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 2.131e-05/0.4628, allocations: 25.7 kB / 0.5664 GB, free: 14.49 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.619e-05/0.4629, allocations: 116.3 kB / 0.5665 GB, free: 14.37 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.678e-05/0.463, allocations: 67.39 kB / 0.5666 GB, free: 14.3 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.245e-05/0.463, allocations: 41.7 kB / 0.5666 GB, free: 14.25 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001606/0.4632, allocations: 322.8 kB / 0.5669 GB, free: 13.93 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001081/0.4633, allocations: 47.97 kB / 0.567 GB, free: 13.88 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000134/0.4635, allocations: 78.72 kB / 0.567 GB, free: 13.8 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002226/0.4637, allocations: 131.4 kB / 0.5672 GB, free: 13.66 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.363e-06/0.4637, allocations: 0 / 0.5672 GB, free: 13.66 MB / 414.1 MB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0004169/0.4641, allocations: 206.2 kB / 0.5674 GB, free: 13.45 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.313e-05/0.4641, allocations: 10.12 kB / 0.5674 GB, free: 13.44 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.635e-06/0.4641, allocations: 4 kB / 0.5674 GB, free: 13.43 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000203/0.4643, allocations: 40.83 kB / 0.5674 GB, free: 13.39 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001865/0.4645, allocations: 43.95 kB / 0.5675 GB, free: 13.35 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001822/0.4663, allocations: 1.737 MB / 0.5692 GB, free: 11.47 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001072/0.4664, allocations: 7.984 kB / 0.5692 GB, free: 11.46 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.653e-05/0.4665, allocations: 8 kB / 0.5692 GB, free: 11.46 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.0001486/0.4666, allocations: 125.8 kB / 0.5693 GB, free: 11.32 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.353e-05/0.4667, allocations: 7.953 kB / 0.5693 GB, free: 11.32 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.184e-05/0.4667, allocations: 25.06 kB / 0.5693 GB, free: 11.29 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.208e-06/0.4667, allocations: 8 kB / 0.5693 GB, free: 11.29 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.398e-05/0.4667, allocations: 4 kB / 0.5693 GB, free: 11.28 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.366e-06/0.4667, allocations: 3.984 kB / 0.5693 GB, free: 11.28 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008982/0.4676, allocations: 0.5506 MB / 0.5699 GB, free: 10.66 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.547e-06/0.4676, allocations: 0 / 0.5699 GB, free: 10.66 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001722/0.4678, allocations: 32.02 kB / 0.5699 GB, free: 10.63 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001345/0.4679, allocations: 36.84 kB / 0.5699 GB, free: 10.59 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.579e-05/0.468, allocations: 3.984 kB / 0.5699 GB, free: 10.59 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001472/0.4694, allocations: 1.481 MB / 0.5714 GB, free: 8.969 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.754e-06/0.4694, allocations: 0 / 0.5714 GB, free: 8.969 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005717/0.47, allocations: 349 kB / 0.5717 GB, free: 8.605 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.162e-05/0.4701, allocations: 93.03 kB / 0.5718 GB, free: 8.496 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.216e-05/0.4701, allocations: 8 kB / 0.5718 GB, free: 8.488 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.445e-05/0.4702, allocations: 0 / 0.5718 GB, free: 8.488 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.746e-05/0.4703, allocations: 19.91 kB / 0.5718 GB, free: 8.469 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.054e-05/0.4703, allocations: 4 kB / 0.5718 GB, free: 8.465 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0001135/0.4704, allocations: 109.8 kB / 0.572 GB, free: 8.359 MB / 414.1 MB Notification: Performance of sort global known variables: time 7.1e-08/0.4704, allocations: 0 / 0.572 GB, free: 8.359 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0003775/0.4708, allocations: 40 kB / 0.572 GB, free: 8.32 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.0009606/0.4717, allocations: 0.878 MB / 0.5728 GB, free: 7.41 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0006574/0.4724, allocations: 258.9 kB / 0.5731 GB, free: 7.145 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 6.342e-06/0.4724, allocations: 7.938 kB / 0.5731 GB, free: 7.137 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002982/0.4727, allocations: 184.6 kB / 0.5733 GB, free: 6.945 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004118/0.4731, allocations: 20 kB / 0.5733 GB, free: 6.926 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002985/0.4761, allocations: 2.062 MB / 0.5753 GB, free: 4.754 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004352/0.4765, allocations: 0.7206 MB / 0.576 GB, free: 4.004 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 7.628e-05/0.4766, allocations: 13.41 kB / 0.576 GB, free: 3.988 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001122/0.4767, allocations: 43.42 kB / 0.5761 GB, free: 3.945 MB / 414.1 MB Notification: Performance of SimCode: time 2.444e-06/0.4767, allocations: 3.938 kB / 0.5761 GB, free: 3.941 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03487/0.5116, allocations: 3.563 MB / 0.5796 GB, free: 484 kB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.61/11.12, allocations: 6.672 kB / 0.5796 GB, free: 480 kB / 414.1 MB " [Timeout remaining time 649] (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.0.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: 14.36845492804423]