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 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001605/0.001605, allocations: 114.5 kB / 21.17 MB, free: 0.6172 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.001937/0.001937, allocations: 206.8 kB / 24.47 MB, free: 4.023 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.542/1.542, allocations: 230.2 MB / 257.8 MB, free: 8.512 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/package.mo): time 0.248/0.248, allocations: 46.89 MB / 361.1 MB, free: 4.637 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-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=5002,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=5002,variableFilter="time|J2.phi|J2.w",fileNamePrefix="ModelicaTest_4.1.0-beta.om_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain") [Timeout 660] "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.00236/0.00236, allocations: 87.86 kB / 0.4967 GB, free: 7.836 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.379/0.3813, allocations: 65.98 MB / 0.5612 GB, free: 5.012 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain): time 0.003629/0.385, allocations: 1.94 MB / 0.5631 GB, free: 3.062 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.001188/0.3862, allocations: 0.5737 MB / 0.5636 GB, free: 2.484 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001136/0.3863, allocations: 0 / 0.5636 GB, free: 2.484 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001567/0.3864, allocations: 19.8 kB / 0.5637 GB, free: 2.465 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001041/0.3865, allocations: 39.64 kB / 0.5637 GB, free: 2.426 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000254/0.3868, allocations: 55.81 kB / 0.5637 GB, free: 2.371 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002219/0.387, allocations: 155.2 kB / 0.5639 GB, free: 2.219 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001626/0.3872, allocations: 49.64 kB / 0.5639 GB, free: 2.168 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001768/0.3873, allocations: 63.78 kB / 0.564 GB, free: 2.105 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001298/0.3875, allocations: 63.7 kB / 0.5641 GB, free: 2.043 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 2.478e-05/0.3875, allocations: 12 kB / 0.5641 GB, free: 2.031 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.114e-05/0.3876, allocations: 15.98 kB / 0.5641 GB, free: 2.016 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 3.116e-05/0.3876, allocations: 27.92 kB / 0.5641 GB, free: 1.988 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 7.9e-05/0.3877, allocations: 75.55 kB / 0.5642 GB, free: 1.914 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002659/0.3879, allocations: 154.2 kB / 0.5643 GB, free: 1.766 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.444e-06/0.3879, allocations: 4 kB / 0.5643 GB, free: 1.762 MB / 398.1 MB Notification: Performance of FrontEnd: time 5.24e-06/0.3879, allocations: 3.984 kB / 0.5643 GB, free: 1.758 MB / 398.1 MB Notification: Performance of Transformations before backend: time 7.093e-06/0.388, allocations: 4 kB / 0.5643 GB, free: 1.754 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.0007026/0.3887, allocations: 434.8 kB / 0.5648 GB, free: 1.281 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.708e-05/0.3887, allocations: 12.03 kB / 0.5648 GB, free: 1.27 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001712/0.3889, allocations: 24.83 kB / 0.5648 GB, free: 1.246 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003473/0.3892, allocations: 208.1 kB / 0.565 GB, free: 1.004 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.654e-05/0.3892, allocations: 12.38 kB / 0.565 GB, free: 0.9922 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.42e-05/0.3893, allocations: 16.33 kB / 0.565 GB, free: 0.9766 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002883/0.3896, allocations: 129.8 kB / 0.5651 GB, free: 0.8438 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.509e-05/0.3896, allocations: 0 / 0.5651 GB, free: 0.8438 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.756e-05/0.3896, allocations: 8 kB / 0.5652 GB, free: 0.8359 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.694e-06/0.3896, allocations: 4 kB / 0.5652 GB, free: 0.832 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001949/0.3898, allocations: 91.88 kB / 0.5652 GB, free: 0.7422 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007753/0.3906, allocations: 460.4 kB / 0.5657 GB, free: 248 kB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002371/0.3908, allocations: 122.4 kB / 0.5658 GB, free: 116 kB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001125/0.3909, allocations: 56.83 kB / 0.5659 GB, free: 56 kB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.435e-05/0.3909, allocations: 0 / 0.5659 GB, free: 56 kB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.627e-05/0.391, allocations: 30.56 kB / 0.5659 GB, free: 16 kB / 398.1 MB Notification: Performance of pre-optimization done (n=13): time 9.92e-07/0.391, allocations: 4 kB / 0.5659 GB, free: 12 kB / 398.1 MB Notification: Performance of matching and sorting (n=19): time 0.001608/0.3926, allocations: 0.8098 MB / 0.5667 GB, free: 15.11 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.036e-05/0.3926, allocations: 51.41 kB / 0.5667 GB, free: 15.04 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001555/0.3928, allocations: 143.8 kB / 0.5669 GB, free: 14.89 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 2.722e-05/0.3928, allocations: 37.64 kB / 0.5669 GB, free: 14.85 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.628e-05/0.3929, allocations: 116.4 kB / 0.567 GB, free: 14.73 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.108e-05/0.393, allocations: 71.39 kB / 0.5671 GB, free: 14.66 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.446e-05/0.393, allocations: 37.7 kB / 0.5671 GB, free: 14.62 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001461/0.3932, allocations: 318.8 kB / 0.5674 GB, free: 14.3 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001037/0.3933, allocations: 39.98 kB / 0.5675 GB, free: 14.26 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001319/0.3934, allocations: 94.66 kB / 0.5675 GB, free: 14.16 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002383/0.3936, allocations: 131.3 kB / 0.5677 GB, free: 14.02 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.483e-06/0.3936, allocations: 0 / 0.5677 GB, free: 14.02 MB / 414.1 MB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0004188/0.3941, allocations: 206.3 kB / 0.5679 GB, free: 13.8 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.856e-05/0.3941, allocations: 11.97 kB / 0.5679 GB, free: 13.79 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.681e-06/0.3941, allocations: 0 / 0.5679 GB, free: 13.79 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001798/0.3943, allocations: 40.84 kB / 0.5679 GB, free: 13.75 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001778/0.3944, allocations: 31.97 kB / 0.568 GB, free: 13.72 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001753/0.3962, allocations: 1.744 MB / 0.5697 GB, free: 11.84 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.099e-05/0.3963, allocations: 8.031 kB / 0.5697 GB, free: 11.83 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.46e-05/0.3963, allocations: 4 kB / 0.5697 GB, free: 11.83 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.000156/0.3965, allocations: 133.9 kB / 0.5698 GB, free: 11.69 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.094e-05/0.3965, allocations: 15.95 kB / 0.5698 GB, free: 11.67 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.573e-05/0.3965, allocations: 21.17 kB / 0.5698 GB, free: 11.65 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.931e-06/0.3965, allocations: 7.938 kB / 0.5698 GB, free: 11.64 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.42e-06/0.3966, allocations: 0 / 0.5698 GB, free: 11.64 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.156e-06/0.3966, allocations: 0 / 0.5698 GB, free: 11.64 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000857/0.3974, allocations: 0.5508 MB / 0.5704 GB, free: 11.03 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.515e-06/0.3974, allocations: 0 / 0.5704 GB, free: 11.03 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001805/0.3976, allocations: 39.91 kB / 0.5704 GB, free: 10.99 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001275/0.3977, allocations: 28.84 kB / 0.5704 GB, free: 10.96 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.313e-05/0.3977, allocations: 4 kB / 0.5704 GB, free: 10.95 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001316/0.3991, allocations: 1.478 MB / 0.5719 GB, free: 9.34 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.102e-06/0.3991, allocations: 0 / 0.5719 GB, free: 9.34 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005245/0.3996, allocations: 353 kB / 0.5722 GB, free: 8.973 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.704e-05/0.3996, allocations: 89.05 kB / 0.5723 GB, free: 8.867 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.822e-05/0.3997, allocations: 0 / 0.5723 GB, free: 8.867 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001002/0.3998, allocations: 11.98 kB / 0.5723 GB, free: 8.855 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.508e-05/0.3998, allocations: 15.92 kB / 0.5723 GB, free: 8.84 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.947e-06/0.3998, allocations: 8.062 kB / 0.5723 GB, free: 8.832 MB / 414.1 MB Notification: Performance of sorting global known variables: time 8.476e-05/0.3999, allocations: 111.2 kB / 0.5724 GB, free: 8.727 MB / 414.1 MB Notification: Performance of sort global known variables: time 6e-08/0.3999, allocations: 0 / 0.5724 GB, free: 8.727 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0003392/0.4002, allocations: 40 kB / 0.5725 GB, free: 8.688 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.0001344/0.4004, allocations: 107.2 kB / 0.5726 GB, free: 8.57 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0005622/0.4009, allocations: 266.8 kB / 0.5728 GB, free: 8.297 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 2.885e-06/0.4009, allocations: 0 / 0.5728 GB, free: 8.297 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002869/0.4012, allocations: 184.9 kB / 0.573 GB, free: 8.105 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003818/0.4016, allocations: 18.67 kB / 0.573 GB, free: 8.09 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009348/0.4026, allocations: 460.5 kB / 0.5735 GB, free: 7.613 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004135/0.403, allocations: 0.7204 MB / 0.5742 GB, free: 6.859 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 5.373e-05/0.403, allocations: 13.42 kB / 0.5742 GB, free: 6.844 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.257e-05/0.4031, allocations: 15.44 kB / 0.5742 GB, free: 6.828 MB / 414.1 MB Notification: Performance of SimCode: time 3.1e-07/0.4031, allocations: 0 / 0.5742 GB, free: 6.828 MB / 414.1 MB Notification: Performance of Templates: time 0.005284/0.4083, allocations: 1.701 MB / 0.5759 GB, free: 5.129 MB / 414.1 MB " [Timeout remaining time 660] 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 -s gbode -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/jenkins1/ws/OpenModelicaLibraryTestingWork_2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/ModelicaTest/Rotational/ForUsersGuide/SimpleDriveTrain/SimpleDriveTrain.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/OpenModelicaLibraryTesting/files/ModelicaTest_4.1.0-beta.om_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 5.359251538757235]