Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.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.001417/0.001417, allocations: 69.33 kB / 21.24 MB, free: 0.5547 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.001521/0.001521, allocations: 163.3 kB / 24.5 MB, free: 3.711 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.626/1.626, allocations: 177.2 MB / 204.9 MB, free: 9.004 MB / 190.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2087/0.2087, allocations: 32.81 MB / 294.1 MB, free: 15.99 MB / 286.1 MB " [Timeout remaining time 180] Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.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: translateModel(ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|J2.phi|J2.w",fileNamePrefix="ModelicaTest_4.0.0_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.0.0_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain") [Timeout 660] "Notification: ModelicaTest requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002794/0.002794, allocations: 59.91 kB / 440.6 MB, free: 9.43 MB / 414.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4648/0.4676, allocations: 65.44 MB / 0.4941 GB, free: 31.38 MB / 446.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain): time 0.003752/0.4713, allocations: 1.876 MB / 0.496 GB, free: 30.11 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.00111/0.4725, allocations: 0.5269 MB / 0.4965 GB, free: 29.75 MB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001164/0.4726, allocations: 4 kB / 0.4965 GB, free: 29.75 MB / 446.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001723/0.4727, allocations: 26.16 kB / 0.4965 GB, free: 29.73 MB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001234/0.4729, allocations: 41.41 kB / 0.4966 GB, free: 29.7 MB / 446.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002863/0.4732, allocations: 44.42 kB / 0.4966 GB, free: 29.68 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002234/0.4734, allocations: 157.3 kB / 0.4967 GB, free: 29.6 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001738/0.4735, allocations: 47.58 kB / 0.4968 GB, free: 29.57 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001792/0.4737, allocations: 67.97 kB / 0.4969 GB, free: 29.54 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001196/0.4738, allocations: 47.91 kB / 0.4969 GB, free: 29.52 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 2.825e-05/0.4739, allocations: 12.22 kB / 0.4969 GB, free: 29.52 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.65e-05/0.4739, allocations: 27.91 kB / 0.4969 GB, free: 29.51 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 3.403e-05/0.474, allocations: 33.92 kB / 0.497 GB, free: 29.48 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 7.433e-05/0.474, allocations: 57.44 kB / 0.497 GB, free: 29.45 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002463/0.4743, allocations: 155.5 kB / 0.4972 GB, free: 29.39 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.318e-06/0.4743, allocations: 0 / 0.4972 GB, free: 29.39 MB / 446.1 MB Notification: Performance of FrontEnd: time 2.064e-06/0.4743, allocations: 0 / 0.4972 GB, free: 29.39 MB / 446.1 MB Notification: Performance of Transformations before backend: time 7.584e-06/0.4743, allocations: 0 / 0.4972 GB, free: 29.39 MB / 446.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.0006089/0.4749, allocations: 358.2 kB / 0.4975 GB, free: 29.08 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.533e-05/0.475, allocations: 9.562 kB / 0.4975 GB, free: 29.08 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001958/0.4752, allocations: 28.84 kB / 0.4976 GB, free: 29.07 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002795/0.4754, allocations: 160.1 kB / 0.4977 GB, free: 28.91 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.708e-05/0.4755, allocations: 10.69 kB / 0.4977 GB, free: 28.91 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.893e-05/0.4755, allocations: 14.7 kB / 0.4977 GB, free: 28.9 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003041/0.4758, allocations: 126.8 kB / 0.4978 GB, free: 28.83 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.692e-05/0.4758, allocations: 0 / 0.4978 GB, free: 28.83 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.015e-05/0.4758, allocations: 6.953 kB / 0.4979 GB, free: 28.83 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.563e-06/0.4758, allocations: 3.25 kB / 0.4979 GB, free: 28.83 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002422/0.4761, allocations: 94.83 kB / 0.4979 GB, free: 28.79 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007044/0.4768, allocations: 367.3 kB / 0.4983 GB, free: 28.51 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002626/0.4771, allocations: 113.9 kB / 0.4984 GB, free: 28.45 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000129/0.4772, allocations: 51.47 kB / 0.4985 GB, free: 28.43 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.216e-05/0.4772, allocations: 3.938 kB / 0.4985 GB, free: 28.43 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.211e-05/0.4772, allocations: 37.69 kB / 0.4985 GB, free: 28.38 MB / 446.1 MB Notification: Performance of pre-optimization done (n=13): time 1.503e-06/0.4772, allocations: 0 / 0.4985 GB, free: 28.38 MB / 446.1 MB Notification: Performance of matching and sorting (n=19): time 0.001632/0.4789, allocations: 0.6545 MB / 0.4991 GB, free: 27.95 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.297e-05/0.4789, allocations: 51.41 kB / 0.4992 GB, free: 27.89 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.221e-05/0.479, allocations: 131.5 kB / 0.4993 GB, free: 27.78 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 1.284e-05/0.479, allocations: 28.83 kB / 0.4993 GB, free: 27.75 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.163e-05/0.479, allocations: 117.5 kB / 0.4994 GB, free: 27.64 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.606e-05/0.4791, allocations: 72.45 kB / 0.4995 GB, free: 27.58 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.616e-05/0.4792, allocations: 37.39 kB / 0.4996 GB, free: 27.55 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 5.113e-05/0.4792, allocations: 325.4 kB / 0.4999 GB, free: 27.23 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001184/0.4793, allocations: 45.58 kB / 0.4999 GB, free: 27.21 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001301/0.4795, allocations: 76.2 kB / 0.5 GB, free: 27.17 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002777/0.4797, allocations: 140.4 kB / 0.5001 GB, free: 27.08 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.462e-06/0.4797, allocations: 0 / 0.5001 GB, free: 27.08 MB / 446.1 MB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0004446/0.4802, allocations: 196.7 kB / 0.5003 GB, free: 26.98 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.708e-05/0.4802, allocations: 10.41 kB / 0.5003 GB, free: 26.98 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.351e-06/0.4802, allocations: 0 / 0.5003 GB, free: 26.98 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002075/0.4804, allocations: 46.55 kB / 0.5004 GB, free: 26.96 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002166/0.4806, allocations: 40.19 kB / 0.5004 GB, free: 26.95 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001343/0.482, allocations: 1.607 MB / 0.502 GB, free: 25.45 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001025/0.4821, allocations: 15.44 kB / 0.502 GB, free: 25.44 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.59e-05/0.4821, allocations: 10.72 kB / 0.502 GB, free: 25.44 MB / 446.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 9.754e-05/0.4822, allocations: 127.8 kB / 0.5021 GB, free: 25.31 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.041e-05/0.4822, allocations: 10.55 kB / 0.5021 GB, free: 25.31 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.381e-05/0.4823, allocations: 12.78 kB / 0.5021 GB, free: 25.3 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.386e-06/0.4823, allocations: 3.188 kB / 0.5021 GB, free: 25.3 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.71e-06/0.4823, allocations: 0 / 0.5021 GB, free: 25.3 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.252e-06/0.4823, allocations: 7.453 kB / 0.5021 GB, free: 25.29 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008016/0.4831, allocations: 485.2 kB / 0.5026 GB, free: 24.94 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.957e-06/0.4831, allocations: 2.938 kB / 0.5026 GB, free: 24.94 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002209/0.4833, allocations: 36.2 kB / 0.5026 GB, free: 24.93 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001241/0.4834, allocations: 31.73 kB / 0.5027 GB, free: 24.92 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.563e-05/0.4835, allocations: 3.125 kB / 0.5027 GB, free: 24.92 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001058/0.4845, allocations: 1.351 MB / 0.504 GB, free: 23.62 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.553e-06/0.4845, allocations: 0 / 0.504 GB, free: 23.62 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005606/0.4851, allocations: 345.1 kB / 0.5043 GB, free: 23.39 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.006e-05/0.4851, allocations: 22.41 kB / 0.5043 GB, free: 23.38 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.995e-05/0.4851, allocations: 3.312 kB / 0.5043 GB, free: 23.38 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001375/0.4853, allocations: 7.219 kB / 0.5044 GB, free: 23.38 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.122e-05/0.4853, allocations: 10.08 kB / 0.5044 GB, free: 23.38 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.236e-05/0.4853, allocations: 10.34 kB / 0.5044 GB, free: 23.37 MB / 446.1 MB Notification: Performance of sorting global known variables: time 5.642e-05/0.4854, allocations: 95.75 kB / 0.5045 GB, free: 23.29 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.4854, allocations: 4.125 kB / 0.5045 GB, free: 23.29 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.0005247/0.4859, allocations: 46.3 kB / 0.5045 GB, free: 23.28 MB / 446.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 9.965e-05/0.486, allocations: 95.78 kB / 0.5046 GB, free: 23.19 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.0005534/0.4866, allocations: 252.7 kB / 0.5048 GB, free: 23.04 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 2.746e-06/0.4866, allocations: 0 / 0.5048 GB, free: 23.04 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002724/0.4868, allocations: 192.4 kB / 0.505 GB, free: 22.89 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004698/0.4873, allocations: 30.02 kB / 0.5051 GB, free: 22.88 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008823/0.4882, allocations: 445.7 kB / 0.5055 GB, free: 22.56 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.97e-05/0.4883, allocations: 112.6 kB / 0.5056 GB, free: 22.48 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 5.746e-05/0.4883, allocations: 8.266 kB / 0.5056 GB, free: 22.48 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.272e-05/0.4884, allocations: 14.97 kB / 0.5056 GB, free: 22.46 MB / 446.1 MB Notification: Performance of SimCode: time 3.6e-07/0.4884, allocations: 0 / 0.5056 GB, free: 22.46 MB / 446.1 MB Notification: Performance of Templates: time 0.006012/0.4944, allocations: 1.562 MB / 0.5071 GB, free: 22.26 MB / 446.1 MB " [Timeout remaining time 659] make -j1 -f ModelicaTest_4.0.0_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain.makefile [Timeout 660] (rm -f ModelicaTest_4.0.0_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain.sim & ./ModelicaTest_4.0.0_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain -abortSlowSimulation -alarm=480 -s ida -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain.pipe 2>&1) [Timeout 480] diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain_res.mat","/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_4.0.0_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.300862108008005]