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.001531/0.001531, allocations: 113.1 kB / 21.85 MB, free: 64 kB / 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.001768/0.001768, allocations: 204.1 kB / 25.13 MB, free: 3.578 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.438/1.438, allocations: 230.4 MB / 258.7 MB, free: 8.062 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.2423/0.2423, allocations: 46.94 MB / 362 MB, free: 4.234 MB / 286.1 MB " [Timeout remaining time 180] 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.002397/0.002397, allocations: 83.84 kB / 0.4978 GB, free: 7.406 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3467/0.3491, allocations: 66.08 MB / 0.5623 GB, free: 4.254 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain): time 0.003184/0.3523, allocations: 1.924 MB / 0.5642 GB, free: 2.32 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009999/0.3533, allocations: 0.5659 MB / 0.5648 GB, free: 1.75 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.089e-05/0.3534, allocations: 3.938 kB / 0.5648 GB, free: 1.746 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001132/0.3535, allocations: 23.8 kB / 0.5648 GB, free: 1.723 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 9.338e-05/0.3536, allocations: 43.62 kB / 0.5648 GB, free: 1.68 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002358/0.3538, allocations: 51.88 kB / 0.5649 GB, free: 1.629 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002143/0.3541, allocations: 155.2 kB / 0.565 GB, free: 1.477 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001598/0.3542, allocations: 45.83 kB / 0.5651 GB, free: 1.426 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001552/0.3544, allocations: 63.78 kB / 0.5651 GB, free: 1.363 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001154/0.3545, allocations: 63.7 kB / 0.5652 GB, free: 1.301 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 2.343e-05/0.3545, allocations: 12 kB / 0.5652 GB, free: 1.289 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.949e-05/0.3546, allocations: 27.98 kB / 0.5652 GB, free: 1.262 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 3.094e-05/0.3546, allocations: 27.86 kB / 0.5652 GB, free: 1.234 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 6.997e-05/0.3547, allocations: 63.67 kB / 0.5653 GB, free: 1.172 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002338/0.3549, allocations: 169.7 kB / 0.5655 GB, free: 1.012 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.927e-06/0.3549, allocations: 0 / 0.5655 GB, free: 1.012 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.062e-06/0.3549, allocations: 0 / 0.5655 GB, free: 1.012 MB / 398.1 MB Notification: Performance of Transformations before backend: time 6.322e-06/0.3549, allocations: 0 / 0.5655 GB, free: 1.012 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.0005802/0.3555, allocations: 357.7 kB / 0.5658 GB, free: 0.6328 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.886e-05/0.3555, allocations: 12.03 kB / 0.5658 GB, free: 0.6211 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001649/0.3557, allocations: 28.83 kB / 0.5658 GB, free: 0.5938 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002789/0.356, allocations: 153.6 kB / 0.566 GB, free: 432 kB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.579e-05/0.356, allocations: 8.375 kB / 0.566 GB, free: 424 kB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.683e-05/0.356, allocations: 20.33 kB / 0.566 GB, free: 404 kB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002632/0.3563, allocations: 130.3 kB / 0.5661 GB, free: 268 kB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.458e-05/0.3563, allocations: 0 / 0.5661 GB, free: 268 kB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.758e-05/0.3563, allocations: 8 kB / 0.5662 GB, free: 260 kB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.16e-06/0.3563, allocations: 0 / 0.5662 GB, free: 260 kB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001898/0.3565, allocations: 91.92 kB / 0.5662 GB, free: 168 kB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007158/0.3572, allocations: 427.4 kB / 0.5667 GB, free: 15.7 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002281/0.3575, allocations: 118.4 kB / 0.5668 GB, free: 15.58 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000113/0.3576, allocations: 56.78 kB / 0.5668 GB, free: 15.52 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.518e-05/0.3576, allocations: 0 / 0.5668 GB, free: 15.52 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.686e-05/0.3576, allocations: 38.55 kB / 0.5669 GB, free: 15.47 MB / 414.1 MB Notification: Performance of pre-optimization done (n=13): time 9.02e-07/0.3576, allocations: 0 / 0.5669 GB, free: 15.47 MB / 414.1 MB Notification: Performance of matching and sorting (n=19): time 0.001441/0.3591, allocations: 0.6606 MB / 0.5675 GB, free: 14.76 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.112e-05/0.3591, allocations: 55.41 kB / 0.5676 GB, free: 14.69 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001401/0.3593, allocations: 141.6 kB / 0.5677 GB, free: 14.54 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 2.143e-05/0.3593, allocations: 25.7 kB / 0.5677 GB, free: 14.51 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.08e-05/0.3594, allocations: 124.3 kB / 0.5678 GB, free: 14.38 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.069e-05/0.3594, allocations: 71.38 kB / 0.5679 GB, free: 14.31 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.979e-05/0.3595, allocations: 41.66 kB / 0.5679 GB, free: 14.27 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001349/0.3596, allocations: 318.8 kB / 0.5682 GB, free: 13.95 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.676e-05/0.3597, allocations: 47.97 kB / 0.5683 GB, free: 13.9 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001383/0.3598, allocations: 79.34 kB / 0.5684 GB, free: 13.81 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002279/0.3601, allocations: 139.3 kB / 0.5685 GB, free: 13.66 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.032e-06/0.3601, allocations: 0 / 0.5685 GB, free: 13.66 MB / 414.1 MB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0003835/0.3605, allocations: 206.3 kB / 0.5687 GB, free: 13.45 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.652e-05/0.3605, allocations: 7.938 kB / 0.5687 GB, free: 13.44 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.274e-06/0.3605, allocations: 3.984 kB / 0.5687 GB, free: 13.44 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001743/0.3607, allocations: 48.83 kB / 0.5688 GB, free: 13.39 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001611/0.3608, allocations: 27.98 kB / 0.5688 GB, free: 13.36 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00155/0.3624, allocations: 1.633 MB / 0.5704 GB, free: 11.61 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.472e-05/0.3624, allocations: 11.92 kB / 0.5704 GB, free: 11.6 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.188e-05/0.3625, allocations: 4 kB / 0.5704 GB, free: 11.6 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.0001106/0.3626, allocations: 125.8 kB / 0.5705 GB, free: 11.46 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.664e-05/0.3626, allocations: 11.95 kB / 0.5705 GB, free: 11.45 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.755e-05/0.3626, allocations: 13.12 kB / 0.5705 GB, free: 11.44 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.707e-06/0.3626, allocations: 12.25 kB / 0.5705 GB, free: 11.43 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.647e-06/0.3626, allocations: 0 / 0.5705 GB, free: 11.43 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.785e-06/0.3627, allocations: 7.984 kB / 0.5706 GB, free: 11.42 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007697/0.3634, allocations: 0.5184 MB / 0.5711 GB, free: 10.85 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.844e-06/0.3634, allocations: 0 / 0.5711 GB, free: 10.85 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001669/0.3636, allocations: 43.91 kB / 0.5711 GB, free: 10.8 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001125/0.3637, allocations: 28.88 kB / 0.5711 GB, free: 10.77 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.273e-05/0.3637, allocations: 11.94 kB / 0.5711 GB, free: 10.76 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001138/0.3649, allocations: 1.373 MB / 0.5725 GB, free: 9.273 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.333e-06/0.3649, allocations: 0 / 0.5725 GB, free: 9.273 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004918/0.3653, allocations: 351.2 kB / 0.5728 GB, free: 8.91 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.639e-05/0.3654, allocations: 15.94 kB / 0.5728 GB, free: 8.895 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.694e-05/0.3654, allocations: 0 / 0.5728 GB, free: 8.895 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.274e-05/0.3655, allocations: 8 kB / 0.5728 GB, free: 8.887 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.555e-05/0.3655, allocations: 15.91 kB / 0.5729 GB, free: 8.871 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.107e-05/0.3655, allocations: 8 kB / 0.5729 GB, free: 8.863 MB / 414.1 MB Notification: Performance of sorting global known variables: time 7.84e-05/0.3656, allocations: 111.2 kB / 0.573 GB, free: 8.754 MB / 414.1 MB Notification: Performance of sort global known variables: time 9e-08/0.3656, allocations: 0 / 0.573 GB, free: 8.754 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0003179/0.3659, allocations: 36 kB / 0.573 GB, free: 8.719 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.0001097/0.366, allocations: 99.31 kB / 0.5731 GB, free: 8.613 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0004916/0.3665, allocations: 259.3 kB / 0.5733 GB, free: 8.348 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 1.753e-06/0.3665, allocations: 3.938 kB / 0.5733 GB, free: 8.344 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002647/0.3668, allocations: 194.7 kB / 0.5735 GB, free: 8.141 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003109/0.3671, allocations: 23.48 kB / 0.5736 GB, free: 8.121 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007921/0.3679, allocations: 454.9 kB / 0.574 GB, free: 7.652 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003316/0.3682, allocations: 0.7244 MB / 0.5747 GB, free: 6.898 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 5.005e-05/0.3683, allocations: 13.42 kB / 0.5747 GB, free: 6.883 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.585e-05/0.3683, allocations: 15.44 kB / 0.5747 GB, free: 6.867 MB / 414.1 MB Notification: Performance of SimCode: time 2.91e-07/0.3683, allocations: 0 / 0.5747 GB, free: 6.867 MB / 414.1 MB Notification: Performance of Templates: time 0.004862/0.3732, allocations: 1.733 MB / 0.5764 GB, free: 5.133 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/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-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.0305805241223425]