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.001539/0.001539, allocations: 80.44 kB / 21.25 MB, free: 0.543 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.002082/0.002082, allocations: 161.2 kB / 24.5 MB, free: 3.723 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.468/1.468, allocations: 177.1 MB / 204.7 MB, free: 8.957 MB / 190.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.2087/0.2087, allocations: 34.26 MB / 295.4 MB, free: 14.48 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: translateModel(ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|J2.phi|J2.w",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain") translateModel(ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|J2.phi|J2.w",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.003209/0.003209, allocations: 83.88 kB / 443.1 MB, free: 6.5 MB / 414.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3523/0.3555, allocations: 66.05 MB / 0.4972 GB, free: 29.82 MB / 446.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain): time 0.002588/0.3581, allocations: 1.878 MB / 0.4991 GB, free: 28.55 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.0007533/0.3588, allocations: 0.5263 MB / 0.4996 GB, free: 28.2 MB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.162e-05/0.3589, allocations: 3.125 kB / 0.4996 GB, free: 28.2 MB / 446.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001126/0.359, allocations: 22.7 kB / 0.4996 GB, free: 28.18 MB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 7.949e-05/0.3591, allocations: 45.59 kB / 0.4997 GB, free: 28.15 MB / 446.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001975/0.3593, allocations: 44.3 kB / 0.4997 GB, free: 28.12 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001445/0.3594, allocations: 158.9 kB / 0.4999 GB, free: 28.04 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000134/0.3596, allocations: 41.25 kB / 0.4999 GB, free: 28.02 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001331/0.3597, allocations: 63.36 kB / 0.5 GB, free: 27.99 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 9.236e-05/0.3598, allocations: 62.42 kB / 0.5 GB, free: 27.96 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 1.967e-05/0.3598, allocations: 9.812 kB / 0.5 GB, free: 27.96 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.062e-05/0.3599, allocations: 19.91 kB / 0.5 GB, free: 27.96 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 2.108e-05/0.3599, allocations: 26.69 kB / 0.5001 GB, free: 27.94 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 4.688e-05/0.3599, allocations: 57.27 kB / 0.5001 GB, free: 27.91 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001776/0.3601, allocations: 159.3 kB / 0.5003 GB, free: 27.85 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.438e-06/0.3601, allocations: 0 / 0.5003 GB, free: 27.85 MB / 446.1 MB Notification: Performance of FrontEnd: time 1.593e-06/0.3601, allocations: 4 kB / 0.5003 GB, free: 27.84 MB / 446.1 MB Notification: Performance of Transformations before backend: time 1.111e-05/0.3601, allocations: 0 / 0.5003 GB, free: 27.84 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.0004795/0.3606, allocations: 366.1 kB / 0.5006 GB, free: 27.52 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.72e-05/0.3607, allocations: 9.719 kB / 0.5006 GB, free: 27.52 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001482/0.3608, allocations: 25.03 kB / 0.5007 GB, free: 27.52 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001947/0.361, allocations: 153.5 kB / 0.5008 GB, free: 27.36 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.056e-05/0.361, allocations: 10.84 kB / 0.5008 GB, free: 27.36 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.075e-05/0.361, allocations: 14.73 kB / 0.5008 GB, free: 27.35 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002167/0.3613, allocations: 131.2 kB / 0.501 GB, free: 27.28 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.73e-05/0.3613, allocations: 0 / 0.501 GB, free: 27.28 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.593e-05/0.3613, allocations: 4 kB / 0.501 GB, free: 27.28 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.135e-06/0.3613, allocations: 3.094 kB / 0.501 GB, free: 27.28 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001722/0.3615, allocations: 93.61 kB / 0.501 GB, free: 27.24 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005703/0.362, allocations: 372 kB / 0.5014 GB, free: 26.96 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001957/0.3622, allocations: 114.5 kB / 0.5015 GB, free: 26.9 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001027/0.3623, allocations: 60.75 kB / 0.5016 GB, free: 26.87 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.469e-05/0.3624, allocations: 7.188 kB / 0.5016 GB, free: 26.87 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.7e-05/0.3624, allocations: 30.56 kB / 0.5016 GB, free: 26.83 MB / 446.1 MB Notification: Performance of pre-optimization done (n=13): time 1.182e-06/0.3624, allocations: 0 / 0.5016 GB, free: 26.83 MB / 446.1 MB Notification: Performance of matching and sorting (n=19): time 0.001273/0.3637, allocations: 0.6531 MB / 0.5022 GB, free: 26.4 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.154e-05/0.3637, allocations: 58.41 kB / 0.5023 GB, free: 26.33 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.796e-05/0.3638, allocations: 132.5 kB / 0.5024 GB, free: 26.22 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 1.163e-05/0.3638, allocations: 25.7 kB / 0.5025 GB, free: 26.19 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.529e-05/0.3638, allocations: 118 kB / 0.5026 GB, free: 26.08 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.37e-05/0.3638, allocations: 71.48 kB / 0.5026 GB, free: 26.02 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.457e-05/0.3639, allocations: 37.55 kB / 0.5027 GB, free: 26 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 4.704e-05/0.3639, allocations: 321.4 kB / 0.503 GB, free: 25.68 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.148e-05/0.364, allocations: 41.7 kB / 0.503 GB, free: 25.67 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.224e-05/0.3641, allocations: 77.17 kB / 0.5031 GB, free: 25.62 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001756/0.3643, allocations: 141.8 kB / 0.5032 GB, free: 25.53 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.032e-06/0.3643, allocations: 0 / 0.5032 GB, free: 25.53 MB / 446.1 MB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0002985/0.3646, allocations: 205.3 kB / 0.5034 GB, free: 25.43 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.288e-05/0.3646, allocations: 5.375 kB / 0.5034 GB, free: 25.43 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.171e-06/0.3646, allocations: 2.906 kB / 0.5034 GB, free: 25.43 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001462/0.3647, allocations: 42.95 kB / 0.5035 GB, free: 25.41 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001524/0.3649, allocations: 39.41 kB / 0.5035 GB, free: 25.4 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009977/0.3659, allocations: 1.601 MB / 0.5051 GB, free: 23.91 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.17e-05/0.366, allocations: 14.36 kB / 0.5051 GB, free: 23.9 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.137e-05/0.366, allocations: 6 kB / 0.5051 GB, free: 23.9 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 7.134e-05/0.3661, allocations: 124.4 kB / 0.5052 GB, free: 23.77 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.087e-05/0.3661, allocations: 10.14 kB / 0.5052 GB, free: 23.77 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.231e-05/0.3661, allocations: 24.09 kB / 0.5052 GB, free: 23.75 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.354e-06/0.3661, allocations: 3.031 kB / 0.5052 GB, free: 23.75 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.938e-06/0.3661, allocations: 256 / 0.5052 GB, free: 23.75 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.568e-06/0.3661, allocations: 7.406 kB / 0.5052 GB, free: 23.75 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000556/0.3667, allocations: 490.1 kB / 0.5057 GB, free: 23.39 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.144e-06/0.3667, allocations: 0 / 0.5057 GB, free: 23.39 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001521/0.3668, allocations: 42.61 kB / 0.5058 GB, free: 23.38 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.23e-05/0.3669, allocations: 31.95 kB / 0.5058 GB, free: 23.36 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.234e-05/0.3669, allocations: 4 kB / 0.5058 GB, free: 23.36 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006896/0.3676, allocations: 1.352 MB / 0.5071 GB, free: 22.06 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.453e-06/0.3676, allocations: 0 / 0.5071 GB, free: 22.06 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003767/0.368, allocations: 344.8 kB / 0.5074 GB, free: 21.84 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 1.451e-05/0.368, allocations: 15.08 kB / 0.5075 GB, free: 21.82 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.57e-05/0.368, allocations: 7.5 kB / 0.5075 GB, free: 21.82 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.819e-05/0.3681, allocations: 7.219 kB / 0.5075 GB, free: 21.82 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.547e-05/0.3682, allocations: 10.06 kB / 0.5075 GB, free: 21.82 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.528e-06/0.3682, allocations: 10.31 kB / 0.5075 GB, free: 21.81 MB / 446.1 MB Notification: Performance of sorting global known variables: time 3.853e-05/0.3682, allocations: 98.28 kB / 0.5076 GB, free: 21.73 MB / 446.1 MB Notification: Performance of sort global known variables: time 8e-08/0.3682, allocations: 0 / 0.5076 GB, free: 21.73 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.0003182/0.3685, allocations: 42.22 kB / 0.5076 GB, free: 21.73 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 8.559e-05/0.3686, allocations: 95.28 kB / 0.5077 GB, free: 21.64 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.0004022/0.369, allocations: 258.5 kB / 0.508 GB, free: 21.48 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 1.844e-06/0.369, allocations: 0 / 0.508 GB, free: 21.48 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002055/0.3692, allocations: 187.8 kB / 0.5081 GB, free: 21.34 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003133/0.3695, allocations: 24.45 kB / 0.5082 GB, free: 21.33 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006172/0.3702, allocations: 444.2 kB / 0.5086 GB, free: 21.02 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 7.067e-05/0.3702, allocations: 113.6 kB / 0.5087 GB, free: 20.93 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 4.244e-05/0.3703, allocations: 11.09 kB / 0.5087 GB, free: 20.93 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.097e-05/0.3703, allocations: 14.53 kB / 0.5087 GB, free: 20.92 MB / 446.1 MB Notification: Performance of SimCode: time 3.11e-07/0.3703, allocations: 0 / 0.5087 GB, free: 20.92 MB / 446.1 MB Notification: Performance of Templates: time 0.004365/0.3747, allocations: 1.57 MB / 0.5103 GB, free: 20.7 MB / 446.1 MB " [Timeout remaining time 660] make -j1 -f ModelicaTest_trunk_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain.makefile [Timeout 660] (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 & ./ModelicaTest_trunk_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain -abortSlowSimulation -alarm=480 -s ida -emit_protected -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain.pipe 2>&1) [Timeout 480] diffSimulationResults("ModelicaTest_trunk_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain_res.mat","/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] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 5.097011610050686]