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.0019/0.0019, allocations: 103.6 kB / 21.18 MB, free: 0.6445 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.002518/0.002518, allocations: 211.4 kB / 24.48 MB, free: 3.934 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: 230.5 MB / 258.1 MB, free: 7.777 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.2432/0.2432, allocations: 46.95 MB / 361.6 MB, free: 3.91 MB / 286.1 MB " [Timeout remaining time 180] 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.002515/0.002515, allocations: 80.16 kB / 0.4974 GB, free: 7.051 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3622/0.3647, allocations: 66.08 MB / 0.5619 GB, free: 3.949 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain): time 0.003798/0.3685, allocations: 1.862 MB / 0.5637 GB, free: 2.078 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.001141/0.3697, allocations: 0.527 MB / 0.5642 GB, free: 1.547 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.783e-05/0.3698, allocations: 7.938 kB / 0.5642 GB, free: 1.539 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001357/0.3699, allocations: 23.78 kB / 0.5643 GB, free: 1.516 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 9.869e-05/0.37, allocations: 39.58 kB / 0.5643 GB, free: 1.477 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002416/0.3703, allocations: 51.89 kB / 0.5643 GB, free: 1.426 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.000241/0.3705, allocations: 155.3 kB / 0.5645 GB, free: 1.273 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001699/0.3707, allocations: 41.84 kB / 0.5645 GB, free: 1.227 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001858/0.3708, allocations: 71.7 kB / 0.5646 GB, free: 1.156 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001219/0.371, allocations: 55.7 kB / 0.5647 GB, free: 1.102 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 2.793e-05/0.371, allocations: 12 kB / 0.5647 GB, free: 1.09 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.628e-05/0.3711, allocations: 12 kB / 0.5647 GB, free: 1.078 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 3.04e-05/0.3711, allocations: 23.92 kB / 0.5647 GB, free: 1.055 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 7.616e-05/0.3712, allocations: 63.72 kB / 0.5648 GB, free: 0.9922 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002603/0.3714, allocations: 161.7 kB / 0.5649 GB, free: 0.8398 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.381e-06/0.3714, allocations: 0 / 0.5649 GB, free: 0.8398 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.964e-06/0.3714, allocations: 0 / 0.5649 GB, free: 0.8398 MB / 398.1 MB Notification: Performance of Transformations before backend: time 1.196e-05/0.3714, allocations: 0 / 0.5649 GB, free: 0.8398 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.0006514/0.3721, allocations: 365.7 kB / 0.5653 GB, free: 464 kB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.671e-05/0.3721, allocations: 8.031 kB / 0.5653 GB, free: 456 kB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001637/0.3723, allocations: 24.83 kB / 0.5653 GB, free: 432 kB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000307/0.3726, allocations: 154.3 kB / 0.5654 GB, free: 252 kB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.363e-05/0.3726, allocations: 12.38 kB / 0.5655 GB, free: 240 kB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.837e-05/0.3727, allocations: 20.27 kB / 0.5655 GB, free: 220 kB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002909/0.373, allocations: 129.8 kB / 0.5656 GB, free: 84 kB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.461e-05/0.373, allocations: 0 / 0.5656 GB, free: 84 kB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.567e-05/0.373, allocations: 4 kB / 0.5656 GB, free: 80 kB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.003e-06/0.373, allocations: 4 kB / 0.5656 GB, free: 76 kB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003046/0.3733, allocations: 87.92 kB / 0.5657 GB, free: 15.99 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006846/0.374, allocations: 368.1 kB / 0.566 GB, free: 15.6 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002516/0.3742, allocations: 114.5 kB / 0.5662 GB, free: 15.48 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001163/0.3743, allocations: 56.83 kB / 0.5662 GB, free: 15.42 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.096e-05/0.3744, allocations: 3.938 kB / 0.5662 GB, free: 15.41 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.022e-05/0.3744, allocations: 30.56 kB / 0.5662 GB, free: 15.38 MB / 414.1 MB Notification: Performance of pre-optimization done (n=13): time 1.142e-06/0.3744, allocations: 4 kB / 0.5662 GB, free: 15.37 MB / 414.1 MB Notification: Performance of matching and sorting (n=19): time 0.001557/0.376, allocations: 0.6601 MB / 0.5669 GB, free: 14.66 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.174e-05/0.376, allocations: 59.34 kB / 0.5669 GB, free: 14.59 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000122/0.3761, allocations: 125.8 kB / 0.5671 GB, free: 14.46 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 2.64e-05/0.3762, allocations: 33.7 kB / 0.5671 GB, free: 14.42 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.479e-05/0.3763, allocations: 112.4 kB / 0.5672 GB, free: 14.3 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.646e-05/0.3763, allocations: 67.39 kB / 0.5673 GB, free: 14.24 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.153e-05/0.3764, allocations: 37.7 kB / 0.5673 GB, free: 14.2 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001937/0.3766, allocations: 322.8 kB / 0.5676 GB, free: 13.87 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001022/0.3767, allocations: 43.98 kB / 0.5677 GB, free: 13.83 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001285/0.3768, allocations: 71.41 kB / 0.5677 GB, free: 13.75 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002476/0.377, allocations: 147.3 kB / 0.5679 GB, free: 13.59 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.082e-06/0.377, allocations: 0 / 0.5679 GB, free: 13.59 MB / 414.1 MB Notification: Performance of matching and sorting (n=22) (initialization): time 0.00045/0.3775, allocations: 202.2 kB / 0.5681 GB, free: 13.38 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.875e-05/0.3775, allocations: 10.19 kB / 0.5681 GB, free: 13.38 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.229e-06/0.3775, allocations: 0 / 0.5681 GB, free: 13.38 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001766/0.3777, allocations: 40.78 kB / 0.5681 GB, free: 13.33 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001759/0.3779, allocations: 47.94 kB / 0.5682 GB, free: 13.29 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001742/0.3796, allocations: 1.602 MB / 0.5697 GB, free: 11.58 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.657e-05/0.3797, allocations: 11.92 kB / 0.5697 GB, free: 11.57 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.425e-05/0.3797, allocations: 8 kB / 0.5697 GB, free: 11.56 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.0001369/0.3798, allocations: 129.8 kB / 0.5699 GB, free: 11.42 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.492e-05/0.3799, allocations: 11.95 kB / 0.5699 GB, free: 11.41 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.965e-05/0.3799, allocations: 16.78 kB / 0.5699 GB, free: 11.39 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.767e-06/0.3799, allocations: 4 kB / 0.5699 GB, free: 11.39 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.33e-06/0.3799, allocations: 0 / 0.5699 GB, free: 11.39 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.347e-06/0.3799, allocations: 7.922 kB / 0.5699 GB, free: 11.38 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008644/0.3808, allocations: 479.5 kB / 0.5704 GB, free: 10.87 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.305e-05/0.3809, allocations: 4 kB / 0.5704 GB, free: 10.87 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001669/0.381, allocations: 36 kB / 0.5704 GB, free: 10.83 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00011/0.3812, allocations: 32.78 kB / 0.5704 GB, free: 10.8 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.651e-05/0.3812, allocations: 8 kB / 0.5704 GB, free: 10.79 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001498/0.3827, allocations: 1.351 MB / 0.5717 GB, free: 9.332 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.182e-06/0.3827, allocations: 0 / 0.5717 GB, free: 9.332 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005358/0.3832, allocations: 345.1 kB / 0.5721 GB, free: 8.973 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.096e-05/0.3832, allocations: 11.94 kB / 0.5721 GB, free: 8.961 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.972e-05/0.3832, allocations: 4 kB / 0.5721 GB, free: 8.957 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.149e-05/0.3833, allocations: 4 kB / 0.5721 GB, free: 8.953 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.497e-05/0.3834, allocations: 19.97 kB / 0.5721 GB, free: 8.934 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.357e-06/0.3834, allocations: 7.938 kB / 0.5721 GB, free: 8.926 MB / 414.1 MB Notification: Performance of sorting global known variables: time 7.439e-05/0.3835, allocations: 97.66 kB / 0.5722 GB, free: 8.832 MB / 414.1 MB Notification: Performance of sort global known variables: time 6e-08/0.3835, allocations: 0 / 0.5722 GB, free: 8.832 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0003586/0.3838, allocations: 40 kB / 0.5723 GB, free: 8.793 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.0001519/0.384, allocations: 107.2 kB / 0.5724 GB, free: 8.68 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0005378/0.3845, allocations: 250.8 kB / 0.5726 GB, free: 8.422 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 4.459e-06/0.3845, allocations: 4 kB / 0.5726 GB, free: 8.418 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003411/0.3849, allocations: 186.5 kB / 0.5728 GB, free: 8.223 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000345/0.3852, allocations: 21.94 kB / 0.5728 GB, free: 8.203 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001001/0.3862, allocations: 485.4 kB / 0.5733 GB, free: 7.699 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001516/0.3864, allocations: 103.7 kB / 0.5734 GB, free: 7.574 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.507e-05/0.3864, allocations: 19.44 kB / 0.5734 GB, free: 7.555 MB / 414.1 MB Notification: Performance of SimCode: time 3.81e-07/0.3864, allocations: 0 / 0.5734 GB, free: 7.555 MB / 414.1 MB Notification: Performance of Templates: time 0.005567/0.392, allocations: 2.469 MB / 0.5758 GB, free: 5.086 MB / 414.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 -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: 8.090298010967672]